A modern, modular implementation of the classic 2048 game with neon aesthetics, cyberpunk visuals, advanced features, and clean architecture.
๐ฎ Play Now
- Classic 2048 Mechanics - Merge tiles to reach 2048 and beyond
- Cyberpunk Visual Theme - Dark scanned grid background with neon aesthetics
- Neon Title Animation - Flashing title effect mimicking real neon signs
- 24 Unique Merge Animations - Random animation effects for each merge
- Responsive Design - Optimized for desktop and mobile devices
- Persistent Progress - Game state saved in localStorage
- ๐ป Ghost Mode - Overlay your best game to track progress
- ๐ฅ Streak System - Bonus points for consecutive merges (3, 5, 7, 10, 15+ streaks)
- โก Special Cards - Lightning, Star, and Diamond tiles with unique effects
- ๐ฏ Milestones - Bonus points and celebrations for reaching tile values
- ๐ช Power-Ups - Undo (3 uses), Hint (5 uses), Remove (2 uses)
- ๐ Multi-Language - Full Turkish and English support with first-visit selection
- ๐ฌ Feedback System - In-game feedback modal with webhook integration
Version 2.4.1+ - Modular structure now active by default:
- 1,800+ lines of JavaScript โ 16 clean ES6 modules
- 2,000+ lines of CSS โ 14 organized files
- Maintainable, Testable, Scalable - Easy to understand and extend
- Modern Standards - ES6 imports/exports with full module support
src/js/
โโโ main.js # Entry point
โโโ config/ # Configuration
โ โโโ translations.js # TR/EN translations
โ โโโ constants.js # Game constants
โโโ core/ # Core game logic
โ โโโ GameState.js # State management
โ โโโ TileManager.js # Tile creation & rendering
โ โโโ MovementEngine.js # Movement logic
โ โโโ ScoreManager.js # Score tracking
โ โโโ GameController.js # Main game loop
โโโ features/ # Game features
โ โโโ Feedback.js # Feedback system
โ โโโ Streaks.js # Streak tracking
โ โโโ Milestones.js # Milestone rewards
โ โโโ PowerUps.js # Power-up system
โ โโโ GhostMode.js # Ghost overlay
โโโ ui/ # User interface
โโโ Notifications.js # Notifications
โโโ Menu.js # Hamburger menu
โโโ Modals.js # Info & language modals
โโโ EventHandlers.js # Input events
src/css/
โโโ main.css # Entry point
โโโ animations.css # Title flash & grid background
โโโ base/ # Reset & variables
โโโ layout/ # Grid & container
โโโ components/ # Tiles, buttons, modals
โโโ features/ # Power-ups, menu
โโโ animations/ # 24 merge animations
- Modern web browser
- Local web server required (ES6 modules)
# Clone repository
git clone https://github.com/aethrox/2048-neon.git
cd 2048-neon
# Option 1: Live Server (recommended)
npm install -g live-server
live-server
# Option 2: Python
python -m http.server 8000
# Option 3: Node.js
npm install -g http-server
http-server -p 8000- Arrow Keys - Move tiles
- N - New game
- G - Toggle ghost mode
- Menu (โฐ) - Access all features
- Swipe - Move tiles
- Tap - Use buttons and menu
- Create module in appropriate directory
- Export using ES6 syntax
- Import in
main.js - Update documentation
Example:
// src/js/features/NewFeature.js
class NewFeature {
init() { /* logic */ }
}
export default new NewFeature();
// src/js/main.js
import NewFeature from './features/NewFeature.js';
NewFeature.init();Initialization order in main.js:
- Managers (TileManager, ScoreManager, GameController)
- Features (GhostMode, PowerUps, Streaks, Milestones)
- UI (Menu, Modals, EventHandlers)
- Language setup
- Game start
- 60 FPS animations
- <100ms language switching
- <50ms tile movement response
- ~200KB total size (uncompressed)
- GPU-accelerated CSS animations
- Lightweight background effects - No performance impact
โ Chrome, Firefox, Safari, Edge (Desktop & Mobile)
MIT License - see LICENSE file
Aethrox
- GitHub: @aethrox
- Website: aethrox.com
- Support: buymeacoffee.com
- CHANGELOG.md - Version history
- CORE_MEMORY.md - Core mechanics
- ANIMATIONS.md - Animation system
- MODULAR_STRUCTURE.md - Architecture
- DEVELOPMENT_RULES.md - Guidelines
- Use in-game feedback (โฐ โ Give Feedback)
- Or create a GitHub issue
# Netlify (netlify.toml configured)
netlify deploy --prod
# Vercel (vercel.json configured)
vercel --prod- Sound effects
- Theme customization
- Leaderboard system
- Achievement badges
- Additional languages
- โญ Star the repository
- ๐ Report bugs
- ๐ก Suggest features
- โ Buy me a coffee
Version 2.4.1 - Modular Structure Active
Made with โก neon lights, ๐ cyberpunk aesthetics, and ๐๏ธ modern architecture