rich Posted December 3, 2014 Share Posted December 3, 2014 Hi all, I'm please to announce that this new book is now out. The Scale Manager is a powerful part of the Phaser game framework. By learning how to use it properly you can explore the different scale modes on offer and ensure your game looks great no matter what screen size it appears on. The guide covers: Picking a resolution for your gameThe different Scaling Concepts used in PhaserSetting a Phaser Scale Mode with a detailed look at the 5 modes on offerGame AlignmentScaling on MobileForcing OrientationUsing the Fullscreen APIImportant Scale Manager PropertiesChanges in Phaser 2.2Source Code The book is available from here in PDF, iPad and Kindle formats. It's released as "pay what you want" as I want the knowledge to be out there, so if money is tight then you're welcome to get it for free. However if you can afford a few dollars it will go towards writing the next guide. samme, wayfinder, end3r and 1 other 4 Link to comment Share on other sites More sharing options...
wayfinder Posted December 3, 2014 Share Posted December 3, 2014 See I knew there was an upside to staying up til 4 am edit: small typo on p.32, where a " is missing in the game call edit 2: very comprehensive, i was not considering a making a mobile version of my game precisely because of the scaling issues, now i am. cheers! Link to comment Share on other sites More sharing options...
markusT Posted December 3, 2014 Share Posted December 3, 2014 Awesome work, thank you Rich! Link to comment Share on other sites More sharing options...
end3r Posted December 3, 2014 Share Posted December 3, 2014 That's the most important part in the mobile game development and for many the greatest source of bugs or issues. Thank you Rich for publishing the guide, I'm sure it will be invaluable for many gamedevs! Link to comment Share on other sites More sharing options...
rich Posted December 3, 2014 Author Share Posted December 3, 2014 Thanks for the feedback guys I've made some edits today and will publish a new version - so if anyone spots something else, please let me know! I've been so encouraged by the number of people getting this Guide that I'm starting the next one tomorrow Lonan and jackwkinsey 2 Link to comment Share on other sites More sharing options...
oddskill Posted December 3, 2014 Share Posted December 3, 2014 Very nice book ,yeah do more guides. Btw, when will the premium plugins be available ?best regardsoddskill Link to comment Share on other sites More sharing options...
wayfinder Posted December 3, 2014 Share Posted December 3, 2014 Thanks for the feedback guys I've made some edits today and will publish a new version - so if anyone spots something else, please let me know! I've been so encouraged by the number of people getting this Guide that I'm starting the next one tomorrow Will it include a section on the windowConstraints? Link to comment Share on other sites More sharing options...
codevinsky Posted December 3, 2014 Share Posted December 3, 2014 Purchased.. Thanks, rich! Link to comment Share on other sites More sharing options...
rich Posted December 3, 2014 Author Share Posted December 3, 2014 Will it include a section on the windowConstraints? Yes and a new part on screen.orientation (which is now available in Chrome on Android for locking screens!) wayfinder 1 Link to comment Share on other sites More sharing options...
Dragonfire Posted December 3, 2014 Share Posted December 3, 2014 Nice book Great work ...But Fullscreen API on mobile is not working in Phaser 2.2.0 https://github.com/photonstorm/phaser/issues/1406(but in Phaser 2.0.1 and Pahser 2.1.3 is worked) And the bug is mainly for Phaser 2.2.0 ... BTW.:Percentage based Dimensions -> WOW, that is very very great Link to comment Share on other sites More sharing options...
alikoo Posted December 3, 2014 Share Posted December 3, 2014 It's a very helpful book,thanks a lot. Link to comment Share on other sites More sharing options...
Michael Docker Posted December 4, 2014 Share Posted December 4, 2014 Hi Rich I found this very useful and am looking forward to more in due course. I noticed a few minor typos whilst reading and in the spirit of Lean Pub please see below for a list. I have also uploaded an annotated version to my Dropbox (which I will remove in due course) to make it easier to see the typos in context. https://dl.dropboxusercontent.com/u/20488777/scale-manager-annotated.pdf I hope this is useful. Regards Mike Page 2 - 2 typos (you've --> you) (is --> it)Page 3 - missing apostrophe in "player's bandwidth"Page 5 - suggested re-wording and missing apostrophe in "game's parent container"Page 6 - missing letter "e" in "the"Page 11 - missing apostrophe in "parent's dimensions"Page 13 - missing apostrophe in "sprite's width"Page 13 - typo (regadless --> regardless)Page 17 - typo (depending --> depend)Page 22 - "straightforward" is one wordPage 23 - missing apostrophe in "device's screen"Page 23 - "Fullscreen mode" inconsistently capitalised compared to elsewhere on the pagePage 23 - "MouseEvent" inconsistently capitalised compared to page 24Page 24 - Fullscreen and FullScreen both usedPage 25 - "Fullscreen mode" should be "fullscreen mode" Link to comment Share on other sites More sharing options...
rich Posted December 4, 2014 Author Share Posted December 4, 2014 Thanks for the feedback Michael - I've incorporated all of your changes into the new release I published today. Also everyone - here is my new book: A Guide to the Phaser Tween Manager. You can get emailed when it's ready from that page. I'm 20% through and it's already quite large, so this will be a bigger and more detailed book than the Scale Manager one, with more creative source code too. Looking forward to releasing it next week gaelbeltran 1 Link to comment Share on other sites More sharing options...
JustPaul Posted December 5, 2014 Share Posted December 5, 2014 Cool, I've just bought it... I have to say that there appears to be a great thought process behind Phaser. Even thinking about scaling issues in other frameworks is a PITA so hopefully this will enlighten me as to the true way. Link to comment Share on other sites More sharing options...
MichaelD Posted December 5, 2014 Share Posted December 5, 2014 Just bought it, it will a nice read through the holidays Link to comment Share on other sites More sharing options...
spencerTL Posted December 9, 2014 Share Posted December 9, 2014 Finding the book really useful thanks. Couple of typos that could cause confusion in the code:Pg 36 update function backslash at end of minHeight and and maxHeight shouldn't be there.s = s.concat("minWidth: " + game.scale.minWidth + " - minHeight: " + game.scale.minHeight\+ "\n");s = s.concat("maxWidth: " + game.scale.maxWidth + " - maxHeight: " + game.scale.maxHeight\+ "\n"); Link to comment Share on other sites More sharing options...
rich Posted December 9, 2014 Author Share Posted December 9, 2014 Those are added automatically by Leadpub to denote a wrapped line in print but should be a single line in code. Link to comment Share on other sites More sharing options...
spencerTL Posted December 9, 2014 Share Posted December 9, 2014 oh sorry. I'd copy and pasted the code and then it errored from them. Link to comment Share on other sites More sharing options...
rich Posted December 9, 2014 Author Share Posted December 9, 2014 Yeah I've contacted support about it but not sure if it can be disabled yet. Link to comment Share on other sites More sharing options...
spencerTL Posted December 9, 2014 Share Posted December 9, 2014 Once you know it is easy to deal with but could be confusing for a beginner. If support can't fix it maybe put note about it at the start of the books? Link to comment Share on other sites More sharing options...
wayfinder Posted December 9, 2014 Share Posted December 9, 2014 workaround?s = s.concat("minWidth: " + game.scale.minWidth + " - minHeight: " + game.scale.minHeight + "\n");s = s.concat("maxWidth: " + game.scale.maxWidth + " - maxHeight: " + game.scale.maxHeight + "\n");code formatting is stupid Link to comment Share on other sites More sharing options...
Mario Posted July 28, 2015 Share Posted July 28, 2015 Do you plan to update A Guide to the Phaser Scale Manager to reflect the changes that came with Phaser 2.4? Thx jdnichollsc 1 Link to comment Share on other sites More sharing options...
jdnichollsc Posted September 21, 2016 Share Posted September 21, 2016 Hi @rich What do you think about to add more examples to create games/websites like http://flashvhtml.com/ and http://www.goodboydigital.com/runpixierun/ using Phaser? Because the scaling is fullScreen, we need more examples about that... (using assets with different sizes according on the size of the device) Thanks in advance, Nicholls Link to comment Share on other sites More sharing options...
Recommended Posts