https://myfun2048.herokuapp.com/
2048 is a one player 2D sliding block puzzle game where blocks with numbers are combined to add their values.
The rules are that on each turn the player must choose a direction (up, down, left or right) and all tiles move as far as possible in that direction, some more than others. Two adjacent tiles (in that direction only) with matching numbers combine into one tile bearing the sum of those numbers. A move is valid when at least one tile can be moved, if only by combination. A new tile with the value of 2 is spawned at the end of each turn at a randomly chosen empty square, if there is one. To win the player must create a tile with the number 2048. The player loses if no valid moves are possible.
2048 is primarily built with JavaScript,React Html and CSS.
-
Hosting on Heroku ()
-
Rendering the game (1 day)
- setup
- Grid and tiles
- Game logic (1 day)
- game mouvement in one direction
- game mouvement in four directions
- game logic
- CSS styling (1 day)
- game end and score
- different colors for each type of tile
- style and animation with canvas
- Production README ()
2048 is built with JavaScript, React, Html and CSS.
- CSS and canvas
- Storing the score
- Implementing the game rules
Feb 3rd & 4th -
game rendering
Feb 5th - game logic
Feb 6th - Styling and CSS