nExt Posted April 16, 2014 Share Posted April 16, 2014 Hello,i'm a newbie, and today i know phaser framework.. i very interest it.and now i read tutorial how do make flappy bird HTML5.i have a problem : in tutorial and demo code, have this line : var space_key = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR); space_key.onDown.add(this.jump, this); it set event when user press space in keyboard.. but i develop for mobile device. so i wan't using touch event replace for space key press.. how do i can change it.. - and i have question : How do i build this app to android application (apk) and ios app (.ipa) ...etc..i know intel xda can build more platform.. so can i using phaser with intel xdk tools ?? Thanks you for reading , and please help me.. ! Link to comment Share on other sites More sharing options...
hugo Posted April 16, 2014 Share Posted April 16, 2014 in the flappy bird tutorial replace the // var space_key = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR);// space_key.onDown.add(this.jump, this); for this.input.onDown.add(this.jump, this); in the browser work with the mouseand i think it work with touch on mobilebut i'm not sure i never tested let me know if it works Link to comment Share on other sites More sharing options...
nExt Posted April 17, 2014 Author Share Posted April 17, 2014 in the flappy bird tutorial replace the // var space_key = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR);// space_key.onDown.add(this.jump, this); for this.input.onDown.add(this.jump, this); in the browser work with the mouseand i think it work with touch on mobilebut i'm not sure i never tested let me know if it works ok.. it work : game.input.onDown.add(this.jump, this); orthis.input.onDown.add(this.jump, this); and i have a question.how do build game to ios app or android app..i if i build to smartphone device , need i change some function ? if have tools build to ipa file , or apk file , please share me ..! Link to comment Share on other sites More sharing options...
Recommended Posts