Tom Atom Posted September 21, 2016 Share Posted September 21, 2016 Hi, I am proud to announce I finally finished my first Phaser book: Create procedural endless runner in Phaser with TypeScript. Book is one big tutorial on creating procedurally generated endless runner from setting up project to full game with various features like spikes, in-air bonus jumps, gold to gather. Full game developed through the book can be played here: http://sbc.littlecolor.com/goblinrun Currently, book is available at Gumroad. You can also read short blog post about it here: http://sbcgamesdev.blogspot.com/2016/09/phaser-book-on-making-procedural.html This book is not for absolute beginners, who are learning what is variable and how to make loop. It is for people who have some basic knowledge what is Phaser, how to make something simple with it and now want to make something “bigger”, what will be beyond simple how-to examples. All aspects of game are covered, including evergreen topic on scaling for various window sizes : Quote Link to comment Share on other sites More sharing options...
lumoludo Posted September 24, 2016 Share Posted September 24, 2016 Just an FYI, but the link you included in the post has a typo. I was able to figure it out and give the game a play though. Really polished looking game you have here! Definitely a good job done with the scaling too, which you mentioned. I know getting the scaling to work just the way I wanted it was a little tough the first time around, so I'm sure the book will be a valuable resource for those looking for help. I hope you have a lot of success with it! Tom Atom 1 Quote Link to comment Share on other sites More sharing options...
Tom Atom Posted September 25, 2016 Author Share Posted September 25, 2016 21 hours ago, lumoludo said: Just an FYI, but the link you included in the post has a typo. I was able to figure it out and give the game a play though. Thanks a lot! Link is corrected. 21 hours ago, lumoludo said: Really polished looking game you have here! Definitely ... Thanks again. In the beginning I was looking for universal scaling solution, but it is game what is in center. Game genre or gameplay determines what scaling strategy to use. And if you have clear picture how you want it work, then coding it is easy For book, my weakest point is marketing. Fortunately, it is listed at Phaser site shop page, which may bring some customers. So far, there is 15 sales, but I believe there will be more people interested in it ... especially now, when link is corrected and they can see what is result of coding in book Quote Link to comment Share on other sites More sharing options...
jamesgeorgedunn Posted September 28, 2016 Share Posted September 28, 2016 Hey Tom, I purchased your book the other day and so far, so good. I was however wondering how it would be possible to add the final score to the end menu so you could congratulate the player for example. Thanks and keep up the great work! Quote Link to comment Share on other sites More sharing options...
Tom Atom Posted September 28, 2016 Author Share Posted September 28, 2016 @jamesgeorgedunn Hi, I think the best way would be to make score persistent across states changes. For it, add it into Preferences (Chapter 16, 17) and save it along with other settings. You can make more variables like last score, highest score,... You can then read it back anywhere in game. For displaying: if you want just to display number, then use Phaser.BitmapText. Or, if you also want gold icon like in game UI, you can reuse class ScoreUI. Just create instance of it and set its score property to desired value: let scoreUI = new ScoreUI(this.game, this.world); scoreUI.score = Preferences.instance.hiScore; // or last score ... whatever you want and added into prefs Another way would be to question Play state for score. You can add getter to get value of private property _score into Play state: public get score(): number { return this._score; } Then you can question it from other states like this: let score = (<Play>this.game.state.states["Play"]).score; Score will be kept there until next game is started. Hope, it helps... Quote Link to comment Share on other sites More sharing options...
farhan Posted October 5, 2018 Share Posted October 5, 2018 That looks great, does the book include information on how to publish and sell the game on steam or for mobiles? As well as adding ads etc etc for Free games/apps? Quote Link to comment Share on other sites More sharing options...
Matty77 Posted October 6, 2018 Share Posted October 6, 2018 I just get a black screen but music plays. On Samsung 9.6 inch tablet. Screenshots in thread looks good though Quote Link to comment Share on other sites More sharing options...
Tom Atom Posted October 8, 2018 Author Share Posted October 8, 2018 @farhan selling / publishing is not covered in book. In fact, implementing sponsor APIs is usually very easy (despite the fact, every sponsor has different API). The hard part is to find sponsor interested in publishing your game and it is about writing emails... Also publishing on Google Play or Apple Appstore is easy - I used Cordova for this for some of our games and for ads I used Heyzap mediation (mediation between Heyzap, Chartboost, AdMob, Unity Ads). While sponsor implementation is easy, hard part is to keep single codebase for many different sponsors. I am writing small series about making maintainable games with Phaser 3. Currently it has 5 parts: http://sbcgames.io/category/blog/ @Matty77 not sure, why... Some slightly adjusted versions of game were published by sponsors, who made deep testing. But, no matter how deep testing is, there is always at least one device, that does not work! Sounds like some kind of game development law ? 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.