Skip to content

annaskobara/js_game_2048

Repository files navigation

2048 Game — Classic Number Puzzle Challenge

A simple, browser-based 2048 game built with vanilla JavaScript. Use your arrow keys to slide tiles, combine matching numbers, and try to reach the 2048 tile!

🔗 Live Demo

https://annaskobara.github.io/js_game_2048/

🧩 Description

This is an educational project I built to practice writing game logic from scratch. I focused on handling grid movements, merging identical tiles, and updating the UI dynamically when the game state changes.

🛠 Technologies

  • HTML5 – structure of the game and interface layout.
  • SCSS – clean and responsive styling using the BEM methodology.
  • JavaScript – core game mechanics, tile movement grid logic, and score tracking.
  • Gulp / Parcel – asset bundling and development workflow automation.

🎯 Key Features

  • Arrow key controls — easily slide tiles up, down, left, or right.
  • Score System — your score updates in real-time as tiles merge.
  • Responsive Design — fully playable on both desktop and mobile devices.
  • Dynamic Generation — random tile generation (2 or 4) after every valid move.

▶️ How to run

  • Clone repository: git clone https://github.com/annaskobara/js_game_2048.git
  • Navigate into the project directory: cd js_game_2048
  • Install the dependencies: npm install
  • Run the app: npm start

About

No description, website, or topics provided.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors