The full source code to the 2048 clone, written in Phaser 3.

Article by Richard Davey. Posted on 9th May 2018.   @photonstorm

image

Emanuele Feronato has released the code to his game 4096: "Built with Phaser 3, it’s the good old “2048” game but you can only get up to 4096. Once you have a 4096 tile, you can make it grow bigger.

I want to share with you the uncommented source code, a commented version will follow, meanwhile this is a good way to learn stuff like:

  • game scenes
  • scale management
  • buttons
  • tweens
  • sprites
  • sounds
  • bitmap texts

and more"

Read More