๐น๏ธ Play your favorite classic games anytime, anywhere! A collection of interactive browser-based games built with vanilla JavaScript, HTML5, and CSS3. No downloads required - just click and play!
This repository features a curated collection of classic arcade games recreated using modern web technologies. Perfect for entertainment, learning game development, or nostalgic gaming sessions. All games are fully responsive and work seamlessly across desktop, tablet, and mobile devices.
- ๐ฎ Pure Vanilla JavaScript - No frameworks or libraries required
- ๐ฑ Fully Responsive - Play on any device, any screen size
- ๐ต Sound Effects - Immersive audio experience (where applicable)
- ๐ Score Tracking - Challenge yourself and beat your high scores
- ๐จ Modern UI/UX - Clean, intuitive game interfaces
- โก Fast Loading - Optimized for quick game sessions
- ๐ Cross-Browser - Compatible with all modern browsers
- ๐ง Easy to Customize - Well-structured, commented code
Status: โ Complete | Difficulty: Classic | Players: Single
๐ฏ Game Details
- Objective: Control the snake to eat food and grow longer
- Controls: Arrow keys or WASD
- Features:
- Progressive difficulty increase
- High score tracking
- Sound effects
- Smooth animations
- Game over detection
- Tech Stack: HTML5 Canvas, Vanilla JavaScript, CSS3
- Files:
Games/SnakeGame/
Status: โ Complete | Difficulty: Challenging | Players: Single
๐ฏ Game Details
- Objective: Navigate the bird through pipes without collision
- Controls: Spacebar or Click/Tap
- Features:
- Physics-based gameplay
- Score tracking
- Collision detection
- Responsive design
- Game over screen
- Tech Stack: HTML5 Canvas, JavaScript, CSS3
- Files:
Games/flappy-bird-master/
Status: โ Complete | Difficulty: Easy | Players: Two Player
๐ฏ Game Details
- Objective: Get three in a row before your opponent
- Controls: Click on empty squares
- Features:
- Two-player mode
- Win detection
- Draw detection
- Game reset functionality
- Turn indicators
- Tech Stack: HTML, JavaScript, CSS
- Files:
Games/tic tac toe/
- ๐งฉ Tetris - Classic block puzzle game
- ๐ Pong - Retro table tennis game
- ๐ฏ Space Invaders - Arcade shooter classic
- ๐งฉ 2048 - Number puzzle game
- ๐ Memory Card Game - Test your memory skills
Experience all games live: Play Now!
- ๐ Snake Game
- ๐ฆ Flappy Bird
- โญ Tic Tac Toe
Simply visit our live website and start playing immediately!
- Clone the repository
git clone https://github.com/Chandrakant-Mane/JavaScript-Games.git
cd JavaScript-Games- Serve the files
# Using Python 3
python -m http.server 8000
# Using Python 2
python -m SimpleHTTPServer 8000
# Using Node.js (install http-server first)
npx http-server
# Or simply open index.html in your browser- Open in browser
Navigate to
http://localhost:8000or openindex.htmldirectly
JavaScript-Games/
โ
โโโ ๐ฎ Games/
โ โโโ SnakeGame/ # Snake game implementation
โ โ โโโ css/ # Game styles
โ โ โโโ js/ # Game logic
โ โ โโโ img/ # Game assets
โ โ โโโ music/ # Sound effects
โ โ โโโ index.html # Game entry point
โ โ
โ โโโ flappy-bird-master/ # Flappy Bird game
โ โ โโโ [game files] # Complete game implementation
โ โ โโโ index.html # Game entry point
โ โ
โ โโโ tic tac toe/ # Tic Tac Toe game
โ โโโ [game files] # Game implementation
โ โโโ index.html # Game entry point
โ
โโโ ๐ Website/
โ โโโ gamesPage/ # Games showcase page
โ โโโ Contact_Us_Page/ # Contact form
โ โโโ assets/ # Website assets
โ โโโ Videos/ # Promotional videos
โ โโโ style.css # Main website styles
โ
โโโ ๐ Documentation/
โ โโโ README.md # This file
โ โโโ CONTRIBUTING.md # Contribution guidelines
โ โโโ CODE_OF_CONDUCT.md # Community guidelines
โ โโโ LICENSE # MIT License
โ
โโโ โ๏ธ Configuration/
โโโ .github/ # GitHub templates
โโโ .gitignore # Git ignore rules
- Mobile-First Approach: Optimized for touch devices
- Adaptive Layout: Scales perfectly on all screen sizes
- Touch Controls: Full support for mobile gameplay
- Lightweight Code: Minimal dependencies, maximum performance
- Efficient Rendering: Smooth 60fps gameplay
- Fast Loading: Optimized assets and code splitting
- Intuitive Controls: Easy to learn, hard to master
- Visual Feedback: Clear game states and transitions
- Accessibility: Keyboard and screen reader friendly
| Technology | Purpose | Version |
|---|---|---|
| HTML5 | Game structure and Canvas API | Latest |
| CSS3 | Styling, animations, responsiveness | Latest |
| JavaScript | Game logic and interactivity | ES6+ |
| Canvas API | 2D game rendering (Snake, Flappy Bird) | HTML5 |
| Web Audio API | Sound effects and music | Modern browsers |
| LocalStorage | High score persistence | HTML5 |
This repository is perfect for:
- Study clean, commented game code
- Learn HTML5 Canvas techniques
- Understand game loop implementation
- Explore collision detection algorithms
- Practice vanilla JavaScript skills
- Learn responsive design patterns
- Understand modern CSS techniques
- Explore browser API usage
Each game includes:
- ๐ Well-commented source code
- ๐๏ธ Modular architecture
- ๐ฏ Best practices implementation
- ๐ง Easy customization options
We welcome contributions from developers of all skill levels! Here's how you can help:
- Implement classic arcade games
- Create original game concepts
- Port existing games to web
- Fix gameplay issues
- Optimize performance
- Improve accessibility
- Add game tutorials
- Improve code comments
- Create development guides
- Improve game visuals
- Create better animations
- Design new game assets
๐ See our Contributing Guidelines for detailed instructions.
- ๐ฎ Games: 3 complete, 5+ planned
- ๐ป Languages: HTML (39.1%), CSS (30.9%), JavaScript (30.0%)
- ๐ฑ Platform: Web-based, cross-platform
- ๐ Difficulty: Beginner to Intermediate
- ๐ License: MIT - Free for personal and commercial use
| Game | Difficulty | Multiplayer | Mobile | Sound | High Score |
|---|---|---|---|---|---|
| Snake | โญโญโญ | โ | โ | โ | โ |
| Flappy Bird | โญโญโญโญ | โ | โ | โ | โ |
| Tic Tac Toe | โญโญ | โ | โ | โ | โ |
- Multiplayer online support
- Achievement system
- Leaderboards
- Game statistics tracking
- Tetris implementation
- Pong multiplayer
- Space Invaders
- Memory card game
- User accounts
- Social sharing
- Game tournaments
- Mobile app version
Perfect for:
- ๐ Student Projects - Demonstrate web development skills
- ๐ผ Portfolio Pieces - Show interactive development capabilities
- ๐ฎ Game Development Learning - Study game mechanics and implementation
- ๐ข Company Training - JavaScript and web development workshops
- ๐ป GitHub Issues: Report bugs or request features
- ๐ฌ Discussions: Join our community discussions
- ๐ง Email: [email protected]
- ๐ Website: Play Live Games
If you enjoy these games or find the code helpful:
- โญ Star this repository
- ๐ด Fork for your own modifications
- ๐ข Share with fellow developers
- ๐ฎ Play and provide feedback
- ๐ค Contribute new games or improvements
This project is licensed under the MIT License - see the LICENSE file for details.
MIT License - Feel free to use this code for personal and commercial projects!
- ๐ฎ Classic Game Developers - For inspiring timeless game mechanics
- ๐ Web Development Community - For amazing tutorials and resources
- ๐ฅ๏ธ MDN Web Docs - For comprehensive web API documentation
- ๐จ Open Source Community - For tools and inspiration
- ๐ฅ Contributors - Everyone who helps improve these games
๐ฎ Ready to Play? Start Gaming Now! ๐
"The best way to learn programming is by building something fun!"