Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
create(x, y) {
this.text = game.add.text(x, y, endGameText)
this.text.font = 'Fugaz One'
this.text.fontSize = 40
this.text.align = 'center'
this.text.fill = '#babb9d'
this.text.smoothed = false
this.text.anchor.setTo(0.5)
this.throwKey = game.input.keyboard.addKey(Phaser.Keyboard.Z);
this.throwKey.onDown.add((e)=>{ window.location = window.location })
}