Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

353 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽฎ Web Games Collection

Web Games HTML5 CSS3 JavaScript Python

A collection of fun and interactive games built with modern web technologies and Python! ๐ŸŽฏ

๐ŸŒ Live Demo

Play all games together on our live website: https://web-games-collection.onrender.com ๐Ÿš€

๐ŸŽฎ Games Overview โ€ข ๐Ÿ“– Quick Start โ€ข ๐ŸŽฏ Game Details โ€ข ๐Ÿ› ๏ธ Installation โ€ข ๐Ÿค Contributing


๐ŸŽฎ Games Overview

This repository contains 20 exciting games that you can play right in your browser or on desktop:

Game Type Tech Players Status
๐ŸŽฒ Number Guessing Python CLI Python 3 1 โœ… Ready
๐ŸŽฒ Ludo Game Browser Game HTML/CSS/JS 2-4 โœ… Ready
๐Ÿ Snake & Ladder Browser Game HTML/CSS/JS 1-4 โœ… Ready
๐Ÿชฑ Worm Game Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿฆ Flappy Bird Browser Game HTML/CSS/JS 1 โœ… Ready
โœ‚๏ธ Rock Paper Scissors Browser Game HTML/CSS/JS 1 โœ… Ready
๐ŸŽจ Image Playground Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿงฑ Tetris Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿ‘ป Pac-Man Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿƒ Memory Card Browser Game HTML/CSS/JS 1 โœ… Ready
โŒ Tic Tac Toe Browser Game HTML/CSS/JS 2 โœ… Ready
๐ŸŒ€ Maze Game Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿ“ Hangman Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿš€ Space Invaders Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿงฑ Brick Breaker Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿ”จ Whack-a-Mole Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿฐ Castle Defenders Browser Game HTML/CSS/JS 1 โœ… Ready
๐Ÿƒ UNO Card Game Browser Game HTML/CSS/JS 2-4 โœ… Ready
๐Ÿ™๏ธ Skyline Sprint Browser Game HTML/CSS/JS 1 โœ… Ready

๐ŸŽฏ Quick Start

For Web Games (Ludo, Snake & Ladder, Worm)

  1. Navigate to the game folder
  2. Double-click the .html file
  3. Start playing! ๐ŸŽฎ

For Python Games (Number Guessing)

  1. Navigate to Game1/
  2. Run: python main.py
  3. Start guessing! ๐ŸŽฏ

๐ŸŽฒ Game Details


๐ŸŽฒ Game 1: Number Guessing Game

๐Ÿ“ Location: Game1/

๐ŸŽฎ Game Overview

A simple and fun Python game where you try to guess a randomly generated number between 1 and 100!

๐Ÿ“‹ How to Play

  1. Run the game:
    python main.py
  2. The computer will generate a random number between 1 and 100
  3. Enter your guess when prompted
  4. The game will tell you if your guess is:
    • Too high โฌ†๏ธ
    • Too low โฌ‡๏ธ
    • Correct! ๐ŸŽฏ
  5. Keep guessing until you find the right number

โœจ Features

  • ๐Ÿ”ข Random number generation
  • ๐Ÿค” Interactive gameplay
  • ๐Ÿ›ก๏ธ Input validation (checks for valid integers)
  • ๐Ÿ’ก Helpful hints after each guess
  • ๐Ÿ”„ Continuous play until correct guess

๐Ÿ› ๏ธ Requirements

  • Python 3.x
  • random module (included in Python standard library)

๐Ÿš€ Quick Start

  1. Make sure Python is installed on your system
  2. Navigate to the game directory:
    cd Game1
  3. Run the game:
    python main.py

๐ŸŽฏ Game Logic

  1. The game generates a random number between 1 and 100
  2. Player inputs their guess
  3. Game provides feedback:
    • "Too high!" if the guess is above the target
    • "Too low!" if the guess is below the target
    • "Congratulations!" when the correct number is guessed

๐Ÿ’ป Code Example

import random

number_to_guess = random.randint(1, 100)
# Game continues until correct guess

๐Ÿ”ง Error Handling

  • โœ… Validates numeric input
  • โŒ Gracefully handles non-integer inputs
  • ๐Ÿ”„ Allows continuous attempts after invalid inputs

๐Ÿ’ก Tips to Win

  1. Start with 50 as your first guess
  2. Use the feedback to narrow down the range
  3. Keep track of your previous guesses
  4. Use binary search strategy for optimal guessing

๐ŸŽฒ Game 2: Ludo Game - Classic Board Game

๐Ÿ“ Location: Game2/

๐ŸŽฎ Game Overview

A fully functional, browser-based Ludo game with beautiful animations and multiplayer support! Experience the classic board game with stunning visuals and smooth gameplay.

๐ŸŒŸ Features

โœจ Core Gameplay
  • ๐ŸŽฒ Classic Ludo Rules - Authentic Ludo experience with all traditional rules
  • ๐Ÿ‘ฅ 2-4 Players - Play with 2, 3, or 4 players
  • ๐ŸŽจ Color Selection - Choose your favorite color before starting
  • ๐Ÿ”’ Unlock Mechanic - Roll a 6 to unlock your pieces from home
  • โšก Extra Turn on 6 - Get another roll when you hit a 6!
  • ๐ŸŽฏ Safe Zones - Strategic star positions where pieces can't be captured
  • ๐Ÿ’ฅ Capture System - Land on opponents to send them back home
  • ๐Ÿ  Home Stretch - Colored paths leading to victory
  • ๐Ÿ† Win Detection - First player to get all 4 pieces home wins!
๐ŸŽจ Visual Excellence
  • โœจ Smooth Animations - Jumping pieces with step-by-step movement
  • ๐ŸŒˆ Beautiful Gradients - Eye-catching color schemes
  • โญ Twinkling Stars - Animated safe zones
  • ๐ŸŽญ Dice Animation - Realistic rolling dice effect
  • ๐Ÿ“ฑ Responsive Design - Perfect on desktop, tablet, and mobile
  • ๐ŸŽฏ Clear Indicators - Highlighted playable pieces
  • ๐Ÿ”„ Rotating Center Star - Animated victory zone
๐Ÿ“ฑ Mobile Optimized
  • ๐Ÿ‘† Touch Controls - Full touch support for mobile devices
  • ๐Ÿ“ Adaptive Layout - Scales perfectly to any screen size
  • ๐Ÿ” No Zoom Issues - Optimized viewport settings
  • ๐Ÿ’ซ Smooth Touch Animations - Responsive feedback on every tap

๐ŸŽฎ How to Play

๐ŸŽฏ Game Objective

Be the first player to move all 4 of your pieces from home, around the board, through the home stretch, and into the center finish area!

๐Ÿ“‹ Game Rules

Starting the Game

  1. Select the number of players (2, 3, or 4)
  2. Each player chooses their color (Red, Green, Yellow, or Blue)
  3. Click "Start Game" to begin
  4. Players take turns rolling the dice

Moving Pieces

๐Ÿ”’ Unlocking Pieces

  • All pieces start in their home area (colored corners)
  • You must roll a 6 to unlock your first piece
  • Rolling a 6 allows you to move a piece from home to your starting position
  • After at least one piece is on the board, any number works

โšก Special Rule: Roll Again on 6

  • Whenever you roll a 6, you get an extra turn!
  • This works throughout the entire game, not just at the start
  • Use this strategically to move faster or unlock more pieces

๐ŸŽฏ Moving Around the Board

  • Click/tap your dice to roll
  • Clickable pieces will be highlighted with a golden glow
  • Select which piece to move
  • Pieces move step-by-step with jumping animation
  • Each color follows a specific path around the board

โญ Safe Zones

  • Star-marked positions are safe zones
  • Pieces on stars cannot be captured
  • Use these for strategic positioning

๐Ÿ’ฅ Capturing Opponents

  • Landing on an opponent's piece (not on a star) captures it
  • Captured pieces return to their home area
  • They must roll a 6 again to re-enter

๐Ÿ  Home Stretch

  • After completing a full circuit, enter your colored path
  • This leads directly to the center
  • You must move exactly into the center (no overshoot)

๐Ÿ† Winning

  • First player to get all 4 pieces into the center wins!
  • The game announces the winner with a victory message

๐Ÿš€ Installation

Method 1: Quick Start (No Installation Required)

  1. Download or clone this repository
  2. Navigate to Game2/
  3. Double-click ludo.html
  4. Start playing! ๐ŸŽฎ

Method 2: Using a Local Server (Recommended for Development)

# Using Python 3
python -m http.server 8000

# Using Node.js (if you have http-server installed)
npx http-server

Then open http://localhost:8000/ludo.html in your browser.

๐ŸŽฏ Game Controls

Action Desktop Mobile
Roll Dice Click "Roll Dice" button Tap "Roll Dice" button
Select Piece Click on highlighted piece Tap on highlighted piece
Reset Game Click "Reset Game" button Tap "Reset Game" button

๐ŸŽจ Color Guide

Color Starting Position Arrow Direction
๐ŸŸข Green Left side of middle cross โ† (Left)
๐ŸŸก Yellow Top side of middle cross โ†‘ (Up)
๐Ÿ”ด Red Bottom side of middle cross โ†‘ (Up)
๐Ÿ”ต Blue Right side of middle cross โ† (Left)

๐Ÿ’ก Pro Tips & Strategies

  1. Spread Your Pieces - Don't keep all pieces together, spread them for better chances
  2. Use Safe Zones - Plan moves to land on star positions when opponents are nearby
  3. Capture Wisely - Sometimes it's better to advance than to capture
  4. Block Opponents - Position pieces strategically to block opponent movements
  5. Home Stretch Timing - Enter home stretch when you have pieces trailing for support
  6. Save a Piece - Keep one piece near opponents' starting area for capturing
  7. 6 Strategy - Use extra turns from rolling 6 to unlock multiple pieces or advance one piece rapidly

๐ŸŒ Browser Compatibility

Browser Supported Version
Chrome โœ… 90+
Firefox โœ… 88+
Safari โœ… 14+
Edge โœ… 90+
Opera โœ… 76+

๐Ÿ“ File Structure

Game2/
โ”œโ”€โ”€ ๐Ÿ“„ ludo.html          # Main HTML file
โ”œโ”€โ”€ ๐ŸŽจ ludo.css           # Styles and animations
โ”œโ”€โ”€ โš™๏ธ ludo.js            # Game logic and mechanics
โ””โ”€โ”€ ๐Ÿ“– README.md          # Game documentation

๐Ÿ Game 3: Snake & Ladder Game

๐Ÿ“ Location: Game3/

๐ŸŽฎ Game Overview

A classic Snake and Ladder game built with modern web technologies! Experience the beloved board game with beautiful design and smooth animations.

โญ Features

  • ๐ŸŽฒ Classic Snake and Ladder gameplay
  • ๐ŸŽฏ Interactive dice rolling
  • ๐Ÿšถ Smooth piece movement animations
  • ๐ŸŽจ Beautiful board design with numbered squares
  • ๐Ÿ Animated snakes that slide players down
  • ๐Ÿชœ Ladders to climb up for quick advancement
  • ๐ŸŽฎ Easy-to-use controls
  • ๐Ÿ“ฑ Mobile-friendly design
  • ๐ŸŽฏ Win detection and celebration
  • ๐Ÿ”„ Restart game option

๐ŸŽฎ How to Play

๐ŸŽฏ Game Objective

Be the first player to reach square 100 by rolling the dice and using ladders to climb up while avoiding snakes!

๐Ÿ“‹ Game Rules
  1. Start the Game

    • Open snake_ladder.html in your web browser
    • Choose the number of players
    • Click "Start Game" to begin
  2. Game Rules

    • Players take turns rolling the dice
    • Move your piece according to the dice number
    • Land on a ladder to climb up โฌ†๏ธ
    • Land on a snake head to slide down โฌ‡๏ธ
    • First player to reach square 100 wins! ๐Ÿ†
  3. Controls

    • Click/Tap the dice to roll
    • Pieces move automatically based on dice value
    • Follow on-screen instructions for your turn

๐ŸŽฏ Board Features

๐ŸŽฒ Board Layout
  • 10ร—10 grid (100 squares)
  • Numbered squares for easy tracking
  • Colorful design for better visibility
  • Strategic snake and ladder placements
๐ŸŽฎ Gameplay Elements
  • Random dice rolls (1-6)
  • Automatic piece movement
  • Turn-based gameplay
  • Clear player indicators
  • Win condition detection
๐ŸŽจ Visual Elements
  • Smooth animations
  • Responsive design
  • Clear visual feedback
  • Easy-to-read numbers
  • Player position indicators

๐Ÿ› ๏ธ Setup

  1. Download the Files

    • Download all three files:
      • snake_ladder.html
      • snake_ladder.css
      • snake_ladder.js
  2. Run Locally

    • Keep all files in the same folder
    • Double-click snake_ladder.html to open in browser
    • No server required - runs offline!
  3. Host Online

    • Upload files to any web hosting
    • Or use GitHub Pages for free hosting

๐Ÿ“ฑ Compatibility

  • โœ… Desktop Chrome, Firefox, Safari, Edge
  • โœ… Mobile browsers
  • โœ… Tablets
  • โœ… Touch-screen devices
  • โœ… Responsive design adapts to screen size

๐Ÿ’ป Technical Details

  • Pure HTML5/CSS3/JavaScript
  • No external dependencies
  • Lightweight and fast-loading
  • Cross-browser compatible
  • Mobile-responsive design

๐Ÿ”ง Customization

You can customize the game by modifying:

  • Board colors in CSS
  • Snake and ladder positions in JavaScript
  • Number of players
  • Board size
  • Animation speeds

๐Ÿ“ File Structure

Game3/
โ”œโ”€โ”€ ๐Ÿ“„ snake_ladder.html  # Main HTML file
โ”œโ”€โ”€ ๐ŸŽจ snake_ladder.css   # Styles and animations
โ”œโ”€โ”€ โš™๏ธ snake_ladder.js    # Game logic and mechanics
โ””โ”€โ”€ ๐Ÿ“– README.md          # Game documentation

๐Ÿชฑ Game 4: Worm Game - Classic Snake-Style Gameplay

๐Ÿ“ Location: Game4/

๐ŸŽฎ Game Overview

A fun and addictive browser-based Worm game with smooth animations! Guide your worm to eat food and grow longer without colliding with walls or yourself.

โญ Features

  • ๐ŸŽฎ Classic worm/snake gameplay
  • ๐ŸŽฏ Progressive difficulty levels
  • ๐ŸŽจ Colorful, vibrant graphics with animations
  • ๐ŸŒŸ Bonus food with time-slow power-up
  • โฑ๏ธ Time manipulation mechanics
  • ๐Ÿ“ฑ Mobile-friendly controls
  • ๐Ÿ† Score tracking and level system
  • โŒจ๏ธ Keyboard controls (Arrow Keys / WASD)
  • ๐ŸŽญ Smooth animations and visual effects
  • ๐ŸŽฎ Play/Pause functionality

๐ŸŽฎ How to Play

๐ŸŽฏ Game Objective

Guide your worm to eat food and grow longer without colliding with the walls or yourself!

๐Ÿ“‹ Game Rules
  1. Movement

    • Use arrow keys or WASD to control the worm
    • The worm continuously moves in the current direction
    • Change direction using keyboard controls
  2. Eating Food

    • Worms grow when they eat red food (๐ŸŽ)
    • Each red food increases your score by 10 ร— Level
    • Bonus golden food (โญ) grants time-slow ability for 5 seconds
    • Bonus food awards 50 ร— Level points
    • New food appears randomly after being eaten
  3. Power-ups

    • โญ Bonus Food (Golden Star) - Activates time-slow mode
    • When collected, the game slows down 2x for 5 seconds
    • Appears randomly (15% chance) after eating regular food
    • Perfect for dodging tight situations!
  4. Collision

    • Avoid hitting the walls of the game area
    • Don't collide with your own body
    • Game ends on collision
  5. Difficulty

    • Game speed increases as you level up (every 5 foods eaten)
    • Longer worms are harder to control
    • Challenge yourself for high scores!

๐ŸŽฎ Controls

Action Key
Move Up โ†‘ or W
Move Down โ†“ or S
Move Left โ† or A
Move Right โ†’ or D
Pause/Resume P
Start Game Click "Start Game" button
Restart Click "Restart Game" button

๐Ÿ› ๏ธ Installation

Method 1: Quick Start (No Installation Required)

  1. Download the files
  2. Navigate to Game4/
  3. Double-click index.html
  4. Start playing! ๐ŸŽฎ

Method 2: Using a Local Server

# Using Python 3
python -m http.server 8000

# Using Python 2
python -m SimpleHTTPServer 8000

# Using Node.js
npx http-server

Then open http://localhost:8000/index.html in your browser.

๐ŸŽจ Game Elements

Element Description Points
๐Ÿ› Worm Your player character that grows with each food -
๐ŸŽ Red Food Regular food to collect and grow 10 ร— Level
โญ Golden Food Bonus food that slows time for 5 seconds 50 ร— Level
โฌœ Walls Game boundaries - don't touch! Game Over
๐Ÿ“Š Score Track your current score Increases per food
๐ŸŽš๏ธ Level Current difficulty level (increases every 5 foods) -
๐Ÿ› Length Current worm length -

๐Ÿ’ก Pro Tips & Strategies

Beginner Tips (Score: 50-150)

  1. Start with slow, deliberate movements
  2. Plan your routes before moving
  3. Keep the worm in the middle of the board
  4. Learn basic turning mechanics
  5. Focus on survival first, scoring second

Intermediate Tips (Score: 150-500)

  1. Create efficient paths to collect food
  2. Maintain 3-4 segments distance from walls
  3. Adapt to speed increases at each level
  4. Start collecting bonus foods
  5. Use time-slow strategically

Advanced Tips (Score: 500+)

  1. Master the spiral technique for maneuvering
  2. Hunt bonus foods efficiently
  3. Optimize time-slow usage
  4. React within 100-150ms at high speeds
  5. Plan 3-4 moves ahead

Bonus Food Strategy

  • Hunt when worm is short (3-8 segments)
  • Skip when worm is long (15+ segments)
  • Collect before entering dangerous areas
  • Use time-slow to escape tight situations

Time-Slow Power-Up Optimization

  • Collect before danger appears
  • Chain collection of 2-3 foods during slow
  • Navigate tight corners safely
  • Create separation from your body
  • Reposition for better angles

๐Ÿ› Troubleshooting

Game doesn't load?

  • Make sure all files are in the same directory
  • Check browser console for errors (F12)
  • Try a different browser

Controls not working?

  • Make sure the game window is focused
  • Try arrow keys or WASD alternatively
  • Restart browser if needed

Performance issues?

  • Close other browser tabs
  • Update your browser
  • Try a different browser

๐ŸŒ Browser Compatibility

Browser Supported Version
Chrome โœ… 90+
Firefox โœ… 88+
Safari โœ… 14+
Edge โœ… 90+
Opera โœ… 76+

๐Ÿ“ File Structure

Game4/
โ”œโ”€โ”€ ๐Ÿ“„ index.html          # Main HTML file with UI
โ”œโ”€โ”€ ๐ŸŽจ worm.css           # Styling and animations
โ”œโ”€โ”€ ๐Ÿ”ง worm.js            # Game logic and mechanics
โ””โ”€โ”€ ๐Ÿ“– README.md          # Game documentation

๐Ÿ”ฎ Future Enhancements

  • Additional power-ups (speed boost, shield, etc.)
  • Multiple game modes (Classic, Endless, Timed)
  • Obstacle-filled levels
  • Sound effects and background music
  • Leaderboard system with local storage
  • Different worm skins and themes
  • Level progression with unique challenges
  • Difficulty settings (Easy, Normal, Hard)
  • Multiplayer mode
  • Mobile app version

๐Ÿš€ Game 14: Space Invaders

๐Ÿ“ Location: Game14/

๐ŸŽฎ Game Overview

A classic arcade shooter where you defend Earth from waves of alien invaders! Experience the nostalgia of one of gaming's most iconic titles, reimagined with modern web technologies.

๐Ÿ“‹ How to Play

  1. Open index.html in your browser
  2. Click "START GAME" button
  3. Use arrow keys to move your ship left and right
  4. Press SPACEBAR to shoot bullets at the aliens
  5. Destroy all aliens to advance to the next level
  6. Protect your ship and don't let aliens reach the bottom!

โœจ Features

๐ŸŽฎ Classic Arcade Gameplay

  • ๐Ÿ›ธ 5 rows of aliens - Different types worth 10, 20, and 30 points
  • ๐Ÿ‘พ Progressive difficulty - Game speeds up as you eliminate aliens
  • ๐ŸŽฏ Level system - Complete waves to advance through levels
  • โค๏ธ Lives system - 3 lives to defend Earth
  • ๐Ÿ›ธ Mystery ship - Bonus ship worth 100 points appears randomly
  • ๐Ÿ›ก๏ธ Defensive barriers - 4 barriers that absorb damage

๐ŸŽจ Visual Excellence

  • Retro aesthetic with modern CSS effects
  • Animated starfield background
  • Smooth animations for all elements
  • Glowing effects and explosions
  • Color-coded aliens with emoji graphics

๐Ÿ† Scoring System

  • Bottom Aliens ๐Ÿ‘พ: 10 points
  • Middle Aliens ๐Ÿ›ธ: 20 points
  • Top Aliens ๐Ÿ‘ฝ: 30 points
  • Mystery Ship ๐Ÿ›ธ: 100 points

๐Ÿ“ฑ Mobile Support

  • Touch controls - Tap to shoot
  • Swipe to move ship
  • Responsive design for all devices

๐ŸŽฎ Controls

Desktop:

  • โ† โ†’ Arrow Keys - Move ship left/right
  • SPACE - Shoot bullets
  • P - Pause/Resume game

Mobile:

  • Tap screen - Shoot
  • Swipe left/right - Move ship

๐ŸŽฏ Game Elements

Element Description Effect
๐Ÿš€ Player Ship Your defense against invasion Control with arrows
๐Ÿ‘พ๐Ÿ›ธ๐Ÿ‘ฝ Aliens Three types of invaders 10-30 points each
๐Ÿ›ธ Mystery Ship Bonus ship at top 100 points
๐Ÿ›ก๏ธ Barriers Defensive shields Absorb 3 hits
๐Ÿ’ฅ Bullets Player shoots cyan, aliens shoot magenta Destroy enemies

๐Ÿ’ก Strategy Tips

Survival Tactics:

  1. Stay Mobile - Constant movement avoids alien bullets
  2. Use Barriers - Hide behind them when overwhelmed
  3. Shoot Continuously - Keep pressure with 3-bullet maximum
  4. Prioritize Threats - Target closest aliens first
  5. Hunt Mystery Ships - Easy 100 points bonus
  6. Save Barriers - More valuable in later levels
  7. Watch Patterns - Learn alien bullet trajectories

Scoring Strategies:

  • Focus on top aliens (30 pts) when possible
  • Time mystery ship appearances
  • Clear bottom rows to slow alien descent
  • Maintain all 3 lives for maximum attempts

๐ŸŽš๏ธ Difficulty Progression

Level 1-3: Learn the basics

  • Standard alien speed
  • 1000ms between alien shots
  • 3 lives to practice

Level 4-7: Intermediate challenge

  • Aliens move 20% faster per level
  • Shooting frequency increases
  • Barriers become critical

Level 8+: Expert gameplay

  • Significantly faster aliens
  • Rapid alien fire rate
  • Requires mastery of controls

๐Ÿ› ๏ธ Technical Details

  • Built with: HTML5 Canvas, CSS3, Vanilla JavaScript
  • Performance: Optimized 60 FPS gameplay
  • Storage: High scores saved in localStorage
  • Compatibility: All modern browsers
  • Responsive: Works on desktop, tablet, mobile

๐Ÿ› Troubleshooting

Game running too fast?

  • Animation is capped at 60 FPS automatically
  • Try a different browser if issues persist

Touch controls delayed?

  • Ensure you're using a modern mobile browser
  • Clear browser cache and reload

High score not saving?

  • Check if localStorage is enabled
  • Private/Incognito mode may prevent saving

๐Ÿ“ File Structure

Game14/
โ”œโ”€โ”€ ๐Ÿ“„ index.html          # Main HTML with game UI
โ”œโ”€โ”€ ๐ŸŽจ style.css          # Retro arcade styling
โ”œโ”€โ”€ ๐Ÿ”ง script.js          # Complete game logic
โ”œโ”€โ”€ ๐Ÿ“– README.md          # Comprehensive documentation
โ””โ”€โ”€ ๐Ÿ“œ LICENSE            # MIT License

๐ŸŒŸ Highlights

  • โœ… Authentic classic - True to original Space Invaders
  • โœ… Modern polish - Smooth animations and effects
  • โœ… Progressive challenge - Gets harder as you advance
  • โœ… Mobile-friendly - Play anywhere, anytime
  • โœ… No dependencies - Pure vanilla JavaScript
  • โœ… Saves progress - High score tracking
  • โœ… Polished UI - Professional overlays and screens

๐Ÿงฑ Game 15: Brick Breaker

๐Ÿ“ Location: Game15/

๐ŸŽฎ Game Overview

A classic arcade-style brick breaker game where you control a paddle to bounce a ball and destroy all the bricks! Break through colorful layers of bricks, advance through challenging levels, and set high scores in this timeless arcade experience.

๐Ÿ“‹ How to Play

  1. Open index.html in your browser
  2. Click "START GAME" button
  3. Use arrow keys or mouse to move your paddle left and right
  4. Press SPACEBAR to launch the ball
  5. Break all bricks to complete the level
  6. Don't let the ball fall below your paddle!

โœจ Features

๐ŸŽฎ Classic Arcade Gameplay

  • ๐Ÿงฑ 6 rows of colorful bricks - Different colors worth different points
  • ๐ŸŽฏ Progressive difficulty - Ball speed increases each level
  • โค๏ธ Lives system - 3 lives to master each level
  • ๐Ÿ† High score tracking - Saved in browser localStorage
  • โšก Physics-based rebounds - Angle changes based on paddle hit position
  • ๐ŸŽš๏ธ Level progression - Infinite levels with increasing challenge

๐ŸŽจ Visual Excellence

  • Modern gradient design with vibrant colors
  • Smooth animations and transitions
  • Glowing ball effects with shadows
  • Glossy brick appearance with shine effects
  • Professional UI with game statistics
  • Responsive layout for all screen sizes

๐Ÿ† Scoring System

  • ๐ŸŸฅ Red Bricks: 50 points
  • ๐ŸŸง Orange Bricks: 40 points
  • ๐ŸŸจ Yellow Bricks: 30 points
  • ๐ŸŸฉ Green Bricks: 20 points
  • ๐ŸŸฆ Blue Bricks: 10 points

๐Ÿ“ฑ Multiple Control Options

  • Keyboard arrow keys
  • Mouse movement
  • Responsive touch support

๐ŸŽฎ Controls

Desktop:

  • โ† โ†’ Arrow Keys - Move paddle left/right
  • Mouse Movement - Direct paddle control
  • SPACE - Launch ball
  • P - Pause/Resume game

๐ŸŽฏ Game Elements

Element Description Points
๐ŸŸฅ Red Brick Top row 50 pts
๐ŸŸง Orange Brick Second row 40 pts
๐ŸŸจ Yellow Brick Third row 30 pts
๐ŸŸฉ Green Brick Fourth row 20 pts
๐ŸŸฆ Blue Brick Fifth & sixth rows 10 pts
๐ŸŽฏ Paddle Player-controlled Hit position matters
โšช Ball Destroys bricks Speed increases per level

๐Ÿ’ก Strategy Tips

Mastering the Paddle:

  1. Angle Control - Hit ball with paddle edges for sharper angles
  2. Center Hits - Paddle center gives more vertical bounces
  3. Positioning - Stay near ball's trajectory path
  4. Combo Shots - Aim for brick clusters for multiple hits
  5. Top Rows First - Red/orange bricks worth more points
  6. Ball Speed - Anticipate faster speeds in later levels
  7. Corner Shots - Use walls to reach difficult bricks

Scoring Strategies:

  • Prioritize high-value bricks (red, orange)
  • Clear top rows early for maximum points
  • Create ball paths through brick columns
  • Maintain lives for bonus opportunities
  • Master paddle angles for precision shots

๐ŸŽš๏ธ Difficulty Progression

Level 1-3: Learning phase

  • Base ball speed (4 units)
  • Clear brick patterns
  • Practice paddle control

Level 4-7: Intermediate challenge

  • Ball speed increases by 0.5 per level
  • Faster reflexes required
  • Strategic positioning matters

Level 8+: Expert gameplay

  • High ball speeds
  • Precision paddle control essential
  • Quick reaction times critical

๐Ÿ› ๏ธ Technical Details

  • Built with: HTML5 Canvas, CSS3, Vanilla JavaScript
  • Performance: Optimized 60 FPS gameplay with requestAnimationFrame
  • Storage: High scores saved in localStorage
  • Compatibility: All modern browsers (Chrome, Firefox, Safari, Edge)
  • Responsive: Adapts to different screen sizes
  • No Dependencies: Pure vanilla JavaScript

๐Ÿ› Troubleshooting

Ball moving too fast?

  • This is intentional progression - it speeds up each level
  • Practice paddle positioning and anticipation

Paddle not responding to mouse?

  • Ensure cursor is over the game canvas
  • Try keyboard controls instead

High score not saving?

  • Check if localStorage is enabled in browser
  • Private/Incognito mode may prevent saving
  • Clear browser cache and try again

๐Ÿ“ File Structure

Game15/
โ”œโ”€โ”€ ๐Ÿ“„ index.html          # Main HTML with game UI
โ”œโ”€โ”€ ๐ŸŽจ style.css          # Modern gradient styling
โ”œโ”€โ”€ ๐Ÿ”ง script.js          # Game physics and logic
โ”œโ”€โ”€ ๐Ÿ“– README.md          # Complete documentation
โ””โ”€โ”€ ๐Ÿ“œ LICENSE            # MIT License

๐ŸŒŸ Highlights

  • โœ… Authentic arcade - Classic brick breaker gameplay
  • โœ… Modern design - Beautiful gradients and effects
  • โœ… Physics-based - Realistic ball mechanics
  • โœ… Progressive - Difficulty increases naturally
  • โœ… Dual controls - Keyboard or mouse
  • โœ… Score tracking - LocalStorage high scores
  • โœ… No dependencies - Pure vanilla JavaScript
  • โœ… Responsive UI - Works on all screen sizes

๐Ÿ› ๏ธ Installation

For Web Games (Games 2, 3, 4)

Quick Start

Simply download the game files and open the .html file in your browser. No installation required!

For Local Development Server

Using Python 3:

cd /path/to/web-games
python -m http.server 8000
# Open http://localhost:8000 in your browser

Using Python 2:

cd /path/to/web-games
python -m SimpleHTTPServer 8000

Using Node.js:

cd /path/to/web-games
npx http-server

Using PHP:

cd /path/to/web-games
php -S localhost:8000

For Python Games (Game 1)

Requirements:

  • Python 3.x installed on your system

Installation:

  1. Navigate to Game1/ directory
  2. Run: python main.py

๐Ÿ“ Repository Structure

web-games/
โ”œโ”€โ”€ Game1/
โ”‚   โ”œโ”€โ”€ main.py                    # Number Guessing Game
โ”‚   โ””โ”€โ”€ README.md                  # Game documentation
โ”œโ”€โ”€ Game2/
โ”‚   โ”œโ”€โ”€ index.html                 # Ludo Game
โ”‚   โ”œโ”€โ”€ ludo.css                   # Ludo Game (Styles)
โ”‚   โ”œโ”€โ”€ ludo.js                    # Ludo Game (Logic)
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ”œโ”€โ”€ LICENSE                    # License file
โ”‚   โ””โ”€โ”€ CONTRIBUTING.md            # Contribution guidelines
โ”œโ”€โ”€ Game3/
โ”‚   โ”œโ”€โ”€ index.html                 # Snake & Ladder
โ”‚   โ”œโ”€โ”€ snake_ladder.css           # Snake & Ladder (Styles)
โ”‚   โ”œโ”€โ”€ snake_ladder.js            # Snake & Ladder (Logic)
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ”œโ”€โ”€ LICENSE                    # License file
โ”‚   โ””โ”€โ”€ CONTRIBUTING.md            # Contribution guidelines
โ”œโ”€โ”€ Game4/
โ”‚   โ”œโ”€โ”€ index.html                 # Worm Game
โ”‚   โ”œโ”€โ”€ worm.css                   # Worm Game (Styles)
โ”‚   โ”œโ”€โ”€ worm.js                    # Worm Game (Logic)
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ”œโ”€โ”€ FEATURES.md                # Detailed features
โ”‚   โ”œโ”€โ”€ INSTALLATION.md            # Installation guide
โ”‚   โ”œโ”€โ”€ STRATEGIES.md              # Strategy guide
โ”‚   โ””โ”€โ”€ assets/                    # Game assets
โ”œโ”€โ”€ Game5/
โ”‚   โ”œโ”€โ”€ index.html                 # Flappy Bird
โ”‚   โ”œโ”€โ”€ flappybird.css             # Flappy Bird (Styles)
โ”‚   โ”œโ”€โ”€ flappybird.js              # Flappy Bird (Logic)
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ”œโ”€โ”€ LICENSE                    # License file
โ”‚   โ””โ”€โ”€ assets/                    # Game assets
โ”œโ”€โ”€ Game6/
โ”‚   โ”œโ”€โ”€ index.html                 # Rock Paper Scissors
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ”œโ”€โ”€ LICENSE                    # License file
โ”‚   โ””โ”€โ”€ CONTRIBUTING.md            # Contribution guidelines
โ”œโ”€โ”€ Game7/
โ”‚   โ”œโ”€โ”€ index.html                 # Image Playground
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ config.js                  # Configuration
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game8/
โ”‚   โ”œโ”€โ”€ index.html                 # Tetris
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game9/
โ”‚   โ”œโ”€โ”€ index.html                 # Pac-Man
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game10/
โ”‚   โ”œโ”€โ”€ index.html                 # Memory Card Game
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game11/
โ”‚   โ”œโ”€โ”€ index.html                 # Tic Tac Toe
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game12/
โ”‚   โ”œโ”€โ”€ index.html                 # Maze Game
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game13/
โ”‚   โ”œโ”€โ”€ index.html                 # Hangman
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game14/
โ”‚   โ”œโ”€โ”€ index.html                 # Space Invaders
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game15/
โ”‚   โ”œโ”€โ”€ index.html                 # Brick Breaker
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game16/
โ”‚   โ”œโ”€โ”€ index.html                 # Whack-a-Mole
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game17/
โ”‚   โ”œโ”€โ”€ index.html                 # Castle Defenders
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game18/
โ”‚   โ”œโ”€โ”€ index.html                 # UNO Card Game
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game19/
โ”‚   โ”œโ”€โ”€ index.html                 # Skyline Sprint
โ”‚   โ”œโ”€โ”€ style.css                  # Styles
โ”‚   โ”œโ”€โ”€ script.js                  # Game Logic
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Game20/
โ”‚   โ”œโ”€โ”€ index.html                 # Whack-a-Mole (All-in-one file)
โ”‚   โ”œโ”€โ”€ README.md                  # Game documentation
โ”‚   โ””โ”€โ”€ LICENSE                    # License file
โ”œโ”€โ”€ Web_Games_Collection/
โ”‚   โ””โ”€โ”€ index.html                 # Collection portal
โ”œโ”€โ”€ LICENSE                        # MIT License
โ””โ”€โ”€ README.md                      # This file

๐Ÿค Contributing

Contributions are welcome! Here's how you can help:

๐Ÿ› Reporting Issues

  • Use the GitHub Issues tab to report bugs
  • Include browser and device information
  • Describe the steps to reproduce the issue
  • Add screenshots if possible

๐Ÿ’ก Suggesting Enhancements

  • Check existing issues/suggestions first
  • Describe your feature idea in detail
  • Explain why it would be useful
  • Include mockups/sketches if relevant

๐Ÿ”จ Contributing Code

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/YourFeature)
  3. Make your changes:
    • Follow the existing code style
    • Add comments for complex logic
    • Test thoroughly on different devices
  4. Commit your changes (git commit -m 'Add some feature')
  5. Push to your branch (git push origin feature/YourFeature)
  6. Open a Pull Request

๐Ÿ“‹ Pull Request Guidelines

  • One feature/fix per PR
  • Update README if needed
  • Test your changes thoroughly
  • Include before/after screenshots for UI changes

๐ŸŽจ Style Guidelines

JavaScript

  • Use const and let instead of var
  • Use meaningful variable names
  • Add comments for complex logic
  • Keep functions small and focused

CSS

  • Use meaningful class names
  • Group related styles together
  • Use CSS variables for repeated values
  • Add comments for complex layouts

HTML

  • Use semantic HTML5 elements
  • Include proper ARIA labels
  • Keep structure clean and organized

โญ Areas for Contribution

  • Mobile responsiveness
  • New game features
  • Performance improvements
  • Accessibility enhancements
  • Documentation improvements
  • Bug fixes
  • UI/UX enhancements

๐Ÿ“ License

This project is open source and available under the MIT License - see the LICENSE file for details.

MIT License

Copyright (c) 2025 Faiz Ahmad Khan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

๐Ÿ‘จโ€๐Ÿ’ป Author

Created with โค๏ธ by Faiz Ahmad Khan


๐Ÿ™‹โ€โ™‚๏ธ FAQ

Q: Can I play these games on mobile devices?

A: Yes! Games 2, 3, and 4 are fully responsive and work great on tablets and smartphones.

Q: Do I need an internet connection?

A: No! All games work offline once downloaded. They're pure HTML/CSS/JavaScript or Python.

Q: Can I modify the games?

A: Absolutely! The code is open source. Feel free to fork, modify, and create your own versions.

Q: How do I report bugs?

A: Please use the GitHub Issues page to report any bugs with detailed information.

Q: Can I contribute new games?

A: Yes! We'd love contributions. Please open an issue first to discuss your idea.

Q: Which Python version do I need for Game 1?

A: Python 3.x is recommended. Python 2 is deprecated but might still work.

Q: How do I host these games online?

A: You can use GitHub Pages, Netlify, Vercel, or any traditional web hosting service.


๐Ÿ“ž Support

For questions, issues, or feedback:

  • ๐Ÿ“ง Create an issue on GitHub
  • ๐Ÿ’ฌ Start a discussion
  • ๐Ÿ”— Check existing documentation

๐Ÿ”ฎ Future Roadmap

  • Online multiplayer support for web games
  • AI opponents for single-player modes
  • Sound effects and background music
  • Leaderboard system with cloud storage
  • Mobile app versions
  • Additional game themes
  • Difficulty settings
  • Achievement system
  • Statistics and analytics
  • More games added to collection

๐ŸŽฎ Ready to Play? Let's Begin! ๐ŸŽฎ

Choose Your Game:

Made with ๐Ÿ’– using HTML5, CSS3, JavaScript, and Python

โฌ† Back to Top

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages