gaelbeltran Posted March 2, 2014 Share Posted March 2, 2014 Hi, I just read the documentation about scaling methods: http://www.pandajs.net/docs/classes/game.System.html#attr_idtkScale But this says it is a CocoonJS method, I was wondering if the different methods can work with html5/non-packaged games? I tried changing the variable in my code, but it doesn't seem to work so I guess it really only works in CocoonJS. By default, I see that pandajs scales your game to fit the screen, and this works great. But is there a way to make pandajs scale your game to fill? stretching your game. Phaser has a different scaling modes that work like that. Quote Link to comment Share on other sites More sharing options...
jotaSe Posted March 3, 2014 Share Posted March 3, 2014 It works for web browser and cocoonjs as well, Quote Link to comment Share on other sites More sharing options...
gaelbeltran Posted March 5, 2014 Author Share Posted March 5, 2014 Really? I've tried changing it but it scales the same with the three options. Quote Link to comment Share on other sites More sharing options...
enpu Posted March 5, 2014 Share Posted March 5, 2014 No idtkScale is only for CocoonJS. So you want to stretch your game to fill every screen size?Then there will be parts of your game that will be hidden on some screens. Quote Link to comment Share on other sites More sharing options...
Warspawn Posted March 6, 2014 Share Posted March 6, 2014 I want to know how to scale the app like ImpactJS does, there wouldn't be stuff missing from the screen. It'd just blow things up so that 16x16 tiles don't look super tiny. Quote Link to comment Share on other sites More sharing options...
Warspawn Posted March 6, 2014 Share Posted March 6, 2014 nevermind, I see you could do this:game.scene.stage.scale.set(2,2) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.