bartje01 Posted May 10, 2016 Share Posted May 10, 2016 Hello everyone, I've been following a tutorial for making a flappy bird clone in Phaser. However, I don't know how to stretch the game to fullscreen on any device. I've read that Phaser can do it for you. The tutorial I followed can be found here: http://www.lessmilk.com/tutorial/flappy-bird-phaser-1 Can anyone help me with the stretching part? is it easy? Thanks in advance Link to comment Share on other sites More sharing options...
drhayes Posted May 10, 2016 Share Posted May 10, 2016 You're probably looking for http://phaser.io/docs/2.4.7/Phaser.ScaleManager.html#scaleMode, and probably want to set that to SHOW_ALL. totallybueno 1 Link to comment Share on other sites More sharing options...
bartje01 Posted May 10, 2016 Author Share Posted May 10, 2016 5 minutes ago, drhayes said: You're probably looking for http://phaser.io/docs/2.4.7/Phaser.ScaleManager.html#scaleMode, and probably want to set that to SHOW_ALL. I am using it. It does fill up the width of my device but not the height. I also want it to be stretched in height. I've also tried EXACT_FIT which didn't do anything different then show_all Link to comment Share on other sites More sharing options...
drhayes Posted May 10, 2016 Share Posted May 10, 2016 Hmm, EXACT_FIT should stretch your game the way you describe and not maintain aspect ratio. I'm kinda stumped. Are you on a mobile device, using a wrapper? Link to comment Share on other sites More sharing options...
bartje01 Posted May 10, 2016 Author Share Posted May 10, 2016 17 minutes ago, drhayes said: Hmm, EXACT_FIT should stretch your game the way you describe and not maintain aspect ratio. I'm kinda stumped. Are you on a mobile device, using a wrapper? Not using a wrapper. http://pastebin.com/Thpvi1Mu That;s my JS file if you're interested. It's not much. Link to comment Share on other sites More sharing options...
Recommended Posts