A modern implementation of the classic 2048 game, built with Next.js 15 and enhanced with contemporary web technologies.
-
Modern UI/UX
- Smooth animations with Framer Motion
- Responsive design for all devices
- Dark/Light theme support
- Custom animated tile designs
-
Progressive Web App
- Offline support
- Installable on mobile devices & desktop
- Optimized asset caching
-
Game Features
- Touch/Swipe support
- Keyboard controls (Arrow keys & WASD)
- Score tracking
- Best score persistence
- Animated transitions
- Clone the repository:
git clone https://github.com/bekione/nextjs-2048-tiles.git
- Install dependencies:
cd nextjs-2048-tiles
npm install
- Create a
.env
file:
NEXT_PUBLIC_CLOUDINARY_BASE_URL=your_cloudinary_url
- Run the development server:
npm run dev
- Use arrow keys or WASD to move tiles
- Swipe on mobile devices
- Combine matching numbers to reach 2048
- Game over when no more moves are possible
- Offline gameplay
- Add to home screen
- Fast loading times
- Automatic updates
- Desktop: Arrow keys or WASD
- Mobile: Swipe gestures
- New Game: Click "New Game" button
- Theme: Toggle between light/dark modes
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Original 2048 game by Gabriele Cirulli
- Next.js team for the amazing framework
- Open source community for the tools and libraries