LZY Posted August 29, 2014 Share Posted August 29, 2014 Hi folks!I decided to make the modification of the @thomaspalef's "Discover Phaser" book example game.It still in progress with adding more levels, enemies types, etc. But it's ready in general.http://dmaslov.github.io/super-coin-boxWhat you think about?Any feedback!Thanks in advance! Link to comment Share on other sites More sharing options...
JUL Posted August 30, 2014 Share Posted August 30, 2014 I think it's just perfect like that for a beginner "live tuto".Few levels yes, eventually, to show the reset and switch state, as long as it doesn't become too long/complex for a beginner.But it's not that necessary since there's the transition between the game and the presentation page. What's really a "wall" for beginners, is the mobile port, that, is full of tricks and traps. So if your project comes with a CLEAR AND SIMPLE step by step "how to convert to mobile, and monetize your game like a pro", that would make a huge difference, IMO. Edit: Just 1 more featureWhile putting the browser in full screen manually in firefox for instance, make the game go > auto center/ scale mode show all < and when exiting full screen, go back to the current display, like a real game. if (game.device.desktop){ window.onresize = function(){ screenResizeHandler() } }; //.... function screenResizeHandler() { if((window.fullScreen) || (window.innerWidth == screen.width && window.innerHeight == screen.height)) { game.scale.scaleMode = Phaser.ScaleManager.SHOW_ALL; game.scale.minWidth = MinWidth; game.scale.minHeight = MinHeight; game.scale.maxWidth = screen.width; game.scale.maxHeight = screen.height-24;} else { game.scale.scaleMode = Phaser.ScaleManager.NO_SCALE; game.scale.minWidth = MinWidth; game.scale.minHeight = MinHeight; game.scale.maxWidth = MinWidth; game.scale.maxHeight = MinHeight;} game.scale.pageAlignHorizontally = true; game.scale.pageAlignVertically = true; game.scale.setScreenSize(true); }; Link to comment Share on other sites More sharing options...
LZY Posted September 1, 2014 Author Share Posted September 1, 2014 @JUL,Thanks for response and for hint about scaling! Link to comment Share on other sites More sharing options...
Recommended Posts