Search the Community
Showing results for tags 'scale mode'.
-
Hi, I want my game to be always in 16:9 with letterboxing when neccessary. I'm using this code in the very first state: this.game.scale.aspectRatio = 1.77; this.game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; this.game.scale.align(true, true); When I now start the game after I resized the browser to a quadratic format the aspect ratio is different, close to 1. As if the aspect ratio I set is just being ignored and the canvas is scaled to the complete window. I'm not in the browser full screen mode. When I start in a format close to 16:9 everything works as expected, thus I guess only at startup something goes wrong. Am I missing something?
- 3 replies
-
- fixed
- aspect ratio
-
(and 1 more)
Tagged with:
-
Hi all, Hopefully, this is just something quick I'm missing... I have initialized my game with the resolution of 500x800 and SCALE_MODE is set to RESIZE; In portrait orientation, the game is the correct size of 500x800, however, when I rotate the device and would expect the game to now be 800x500 it is actually 500x313. I'm thinking I'm just missing something that I need to manually resize or update or something, but I'm having trouble finding what I need by searching around. Anyone know how to accomplish what I'm expecting? Thanks.
-
Hi friends! Could you please help with a couple of questions? What is the correct way to handle the scale in landscape mode with CocoonJS? (I greatly appreciate some code sample).What size images advised for multiple platforms and how these are load depending on the screen? (I greatly appreciate some code sample). I did a presentation: http://slides.com/juandavidnicholls/juegos-en-javascript#/ I have a group on facebook: https://www.facebook.com/groups/javascriptgames/ The next week I will publish a good article of Phaser in my blog: http://www.nicholls.co/blog Any help will be much appreciated, Thanks in advance, Nicholls
-
- cocoonjs
- scale mode
-
(and 3 more)
Tagged with: