HTML5 swipe controlled Sokoban game made with Phaser featuring unlimited undos updated to 2.7.5

Time to renew and update to latest Phaser version another old classic of this blog: after updating – and improving – Space is Key, String Avoider and drag and match engine prototypes, now it’s time to update Sokoban.

It works exactly as the example published in the post HTML5 swipe controlled Sokoban game made with Phaser step 2: adding keyboard controls and unlimited undos, but I removed the keyboard control.

Now you can move the player with a swipe, and undo moves with double tap. If you have a mobile device, you can play the game directly at this link.

And here is the source code, you can find comments and information in older posts about Sokoban:

Next time I will add more levels, a level selection screen and a control to check when a level is solved, meanwhile download the source code.

  • Pajama_Guy

    This tutorial is fantastic! But im curious how to add a victory condition i tried doing it in the isWalkable and isCrate functions handling no success im very eager to find out how to do it ! im excitd to see how far this tutorial can go

    • Emanuele Feronato

      just published the new step… have a look!