This project is a recreation of the popular 2048 puzzle game, implemented using clean JavaScript, HTML, and CSS. It features smooth tile movement, score tracking, keyboard controls, and a responsive UI.
The goal is simple: combine matching tiles to reach 2048 — or go even further!
Live Demo
Play the live version of the game here: 👉 2048 Game Demo
- HTML5 — game layout and structure
- CSS3 — styling and animations
- JavaScript (ES6) — game logic and interactions
- Smooth tile animations
- Responsive layout
- Keyboard arrow-key support
- Dynamic tile generation
- Score counting and game-over logic
- Git / GitHub — version control and deployment
- VS Code — development environment
Follow these steps to run the project locally:
git clone https://github.com/lublubuterbrodi/2048-Game.git
cd 2048-GameThis project does not require any dependencies or build tools. You can skip this step.
Simply open index.html in your browser:
- Double-click
index.html, or - Right-click → Open With → your preferred browser
- Classic 2048 mechanics — swipe/arrow-key movement
- Smooth animations — tiles slide and merge fluidly
- Responsive layout — playable on desktop and mobile
- Random tile generation — ensuring replayability
- Score tracking — live updates with each merge
- Game over detection — informs you when no moves are left
- Clean & minimalist UI inspired by the original 2048
Feel free to fork the project, open issues, or submit pull requests with improvements, bug fixes, or new features.