The Sokoban tutorial gets another update to add unlimited undos, camera effects, double tap and more.
Phaser 3 is getting updated very often with new features added each time. Now it reached version 3.2.0 and I updated my Sokoban prototype using the latest Phaser 3 version, as well as adding or rewriting features such as:
- Unlimited undos
- Flashing camera when undoing a move, giving a “flashback” effect
- Double click/tap check
- Scale each pixel to its closest neighbour to give a pixel art effect, remember the game is only 320×320
- Unlike previous versions, undo does not destroy and redraw a level from scratch, also destroying and recreating all sprites on the fly, what a waste of resources!! Now I only place the moving items (the player and the crates) in their previous position, leaving the rest of the level unchanged, as the walls, the crate goals and the floor never change during the game.
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