emile Posted February 15, 2015 Share Posted February 15, 2015 I'm trying to scale one of the pandajs demo games to fit a parent container on a webpage, I've been trying to use: game.scene.stage.scale.set(0.5,0.5), where my thinking was that I would have to calculate the scale factor using the difference between the parent's dimensions and the game's resolution. This doesn't feel like the right solution. I also have to scale the game for each scene, which also doesn't feel right. I'm not sure if I'm missing some kind of feature like phaser where you can state the game's parent then set the game to "SHOW_ALL" or something? I'm really trying to get the hang of Pandajs seems like a cool framework. Any help would be really appreciated. Quote Link to comment Share on other sites More sharing options...
Ninjadoodle Posted February 15, 2015 Share Posted February 15, 2015 Hi @emile I think your question is similar to something I've asked about a little while ago ... http://www.html5gamedevs.com/topic/11559-panda-indexhtml/?hl=iframe (scroll down for the scaling part) Hopefully, this helps Quote Link to comment Share on other sites More sharing options...
emile Posted February 16, 2015 Author Share Posted February 16, 2015 Hey @Ninjadoodle Thanks for the help, it seems to be working now, its just a matter of understanding how it all works... to quote "Man, I have so much to learn " Thanks again. 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.