DELETE THIS ACC PLS Posted August 10, 2014 Share Posted August 10, 2014 (edited) Hello,I'd like to share with you my Public Domain game, Flappy Box.I'm sharing this game only for others to learn from it. So don't judge it because it's a flappy bird clone.Change log:v0.1 Old game added with new Phaser and some code tweaks.v0.2 More coding to fix bugs.v0.3 No bugs so far.v0.4 Controls added, Tap to jump!v0.5 Added sound plus fixed double-jumps only on mobiles.v0.6 Fixed sound plus added pipes.v0.7 Pipes are normally generated (no bugs) Better view on mobiles.v0.8 Better gameplay, Score text works.v0.9 Commented version and minified version available, Game can be paused by pressing P key on keyboard and resumed by pressing R (Doesn't work on mobiles).v1.0 On-Screen pause/resume. On-Screen Mute/Un-Mute.v1.1 Better and more realistic scoring.-Coming soon:v1.2 Menu state with a Play button, Losing state with a retry and menu buttons.v1.3 Fullscreen mobile scaling.The current version is 1.1Therefore it might not be the last version.This isn't a book or a long tutorial but I tried to comment every line of code. Through studying the code of this game you'll learn most of Phaser's basics including:- Creating a Phaser game.- Pre-loading assets.- Creating and playing states.- Loading and playing sounds.- Adding keyboard keys.- Basic use of Arcade physics (Velocity, Gravity, etc.)- Using groups and timers.- Pausing/Resuming game (Not fancy at the moment.)- And many more.A screenshot :Note: Screenshot was taken when game was paused Special thanks to Thomas Palef (For his tutorial and assets), @Dumtard and @lewster32 for their awesome help in the forums!Whole code is CC0, While Thomas Palef gave me permission to use his assets. View his tutorial here.Play link: Here (STABLE v1.1)Download: See attachment (STABLE v1.1)Hope someone will learn Phaser from this.Please post your suggestions, improvements or thoughts in comments.Cheers,Hady Hayman (IamHadzy)FlappyBox-v1.1.zip Edited August 12, 2014 by Hady Hayman Quote Link to comment Share on other sites More sharing options...
DELETE THIS ACC PLS Posted August 10, 2014 Author Share Posted August 10, 2014 Version 1.0 released! Contains On screen pause/resume and On screen mute/un-mute! Quote Link to comment Share on other sites More sharing options...
DELETE THIS ACC PLS Posted August 12, 2014 Author Share Posted August 12, 2014 Updated original post containing Play link. Quote Link to comment Share on other sites More sharing options...
DELETE THIS ACC PLS Posted August 12, 2014 Author Share Posted August 12, 2014 Version 1.1 is released! Contains better scoring (When you reach pipes, you score a point). Quote Link to comment Share on other sites More sharing options...
Haddy22 Posted September 18, 2014 Share Posted September 18, 2014 Learning Phaser now- I read through the original tutorial and I appreciate you doing this work and sharing it! Very helpful. 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.