How to use the phaser-ce/build/custom/phaser-split.Keyboard function in phaser-ce

To help you get started, we’ve selected a few phaser-ce examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github bamsarker / bmrng / src / sprites / EndGame.js View on Github external
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 })
    }

phaser-ce

Phaser CE (Community Edition) is a fast, free and fun HTML5 Game Framework for Desktop and Mobile web browsers.

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis