How to create a Phaser button in Facebook instant games for a mobile device
I am trying to create a button with Phaser 2 CE on a mobile device but it doesn't fires, even if it works fine on desktop, the entiere code will be on my github repository but for the moment i can just display an image like in the code bellow var game = new Phaser.Game(640, 480, Phaser.AUTO, 'game', { preload: preload, create: create, update: update }); function preload () { game.load.image('logo', 'assets/phaser2.png'); game.load.image("upArrow", "assets/up.png"); } function create () { // Initialize player //player = game.add.sprite(20, 20, 'logo'); game.device.desktop || addMobileInputs();