Sokoban is a puzzle video game genre in which the player pushes crates or boxes around in a warehouse, trying to get them to storage locations. Click for more info.
This is another Sokoban game. I've made it in JavaScript (ES6) + HTML (Canvas API) + CSS (SCSS).
It was a challenge, because I built the prototype in a few hours with simple arrays, a canvas and color blocks. Then, took me two weeks to finally finish it complete with the graphics that I've made in pixel art and only three levels (believe me, make levels it's really hard).
You can play the game online.
Controls:
- Use W, A, S, D or Arrow Keys to move the character arround the map.
- Use R to reset the level.
- Use M to toggle the Background Music.
- Use X to toggle the Sound Effects.
- Use Esc to pause the game and show the main menu.
Rules:
- You NEED to push all the available boxes to fit each one on a goal destination.
- You CAN'T pull the boxes.
- You CAN'T undo a movement.
- You CAN restart the level (R) as many times you want without punishment in the statistics.
- Howler.js for the audio controller.
- KeyboardController to properly handle the key binding in the game.
- Juan Manuel Flecha: Programming & Pixel Art graphics.
- Sound Image: Background music & SFX