Learn how to make the game Bricks using Arcade Physics and Tweens.
Emanuele Feronato writes: "In “Bricks” the aim of the game is simple, as you can expect from any game developed by Ketchapp. You have to match bricks of the same color to clear lines and prevent them to reach the top of the screen.
To clear lines, simply tap the column whose top brick matches the color of the lone brick. How long will you resist?
It might seem the classic tile based game, and actually it is, but I wanted to try a different approach not relying on any array to check for matches, and using massively overlapRect method instead.
This method will search the given rectangular area and return an array of all physics bodies that overlap with it. Exactly what we need."
Learn to code and lead your intrepid crew on a mission to save The Cloud in TwilioQuest, a PC role-playing game inspired by classics of the 16-bit era. Free forever, and available now for Windows, Mac, and Linux.
The first book on the creation of HTML5 cross platform games using Phaser 3 and other free software.
- By Emanuele Feronato
- 155 Pages
- 28 Source Code Examples
- Build a complete game from start to finish
- Cross Platform
- Scaling for devices
Buy Now
$19