This is the repository for the empty projects and necessary assets for the book Developing an HTML5 Brick-breaker game with Phaser
The book can be purchased or read on the following channels:
Creating a Brick-breaker Game With Phaser is the result of teaching HTML5 game development by example at a local institute, focused on web technologies with a philosophy of teaching concepts, methodologies and standards in a practical way.
This book is intended to be a hands-on introduction to HTML5 game development using the Phaser framework by developing a complete game with well-known mechanics. It is bundled with all the necessary assets, so we can focus on the code and not finding extra resources or developing "programmer artwork".
By the end of the book, you'll have learned to:
- Set up an organized file structure for developing games for the web
- Create a blank game and test everything runs OK
- Import images and sounds
- Show and move sprites on the screen
- Manage a group of sprites
- Play sound effects and background music
- Show text on the screen with custom web fonts
- Handle touch and keyboard input
- Detect collisions and use the Arcade physics system
- How to start using the particle system
- Manage game states
- Create a "loading" screen
- Optimize the game for mobile devices
You can play a version of this game on itch.io, where you can also find the Android version.
It is aimed to programmers with some experience with JavaScript and want to learn by doing (and finishing). It is not a guide to JavaScript, but each step is explained and the source code is well-commented so you can get it right away and keep focusing on the big picture.
The following people helped in the development of thes book or the game associated with it:
- Richard Davey - creator of Phaser
- Christian Chomiak - editing and title page
- Kenney - artwork and some sound effects
- Joe Powell, courtesy of Freesound - background music (Electric Air)
- Sergio Marin, and the whole team at Escuela Web, for giving me a place to unite two of my passions; game development and teaching
- Luis Miguel Delgado - content review
- Ángel León - technical review