phaser-node-kit
Version:
Rapid Game Development with PhaserJS and Node for Modern Browsers
24 lines (16 loc) • 326 B
JavaScript
class MenuState {
preload() { }
create() {
let logo = this.add.image(
this.world.centerX,
this.world.centerY,
'logo')
logo.anchor.set(.5)
this.input.onTap.addOnce((pointer) => {
this.state.start('Game')
})
}
update() { }
render() { }
}
module.exports = MenuState