Skip to content

Alien Invasion Defense is a fun web-based game created with HTML, CSS, and JavaScript. With a user-friendly interface and smooth gameplay, it’s perfect for players of all ages. Over 1,000 users have enjoyed the engaging challenges as they defend Earth from alien invaders. Join the action and see if you have what it takes to protect our planet!

License

Notifications You must be signed in to change notification settings

YadavAkhileshh/Alien-Invasion-Defense

Repository files navigation

🚀 Alien Invasion Defense 🛸

A thrilling space shooter game featuring advanced weaponry, strategic gameplay, and immersive alien combat. Defend Earth from hostile alien forces with precision and skill. 🌌

Live Demo GitHub

🌟 Stars 🍴 Forks 🐛 Issues 🔔 Open PRs 🔕 Close PRs
Stars Forks Issues Open Pull Requests Close Pull Requests

🎮 Quick Start

  1. 🚀 Play Now: https://alienid.netlify.app/
  2. Local: Open index.html
  3. Controls: Arrow keys to move, Space to fire
  4. Objective: Eliminate alien invaders and survive

🌟 Core Features

  • Dynamic Combat: Fast-paced alien shooting action
  • 🎯 Precision Controls: Responsive movement and targeting
  • 👾 Multiple Aliens: 5 unique alien types with different behaviors
  • 🛡️ Power-Up System: Health boosts, shields, and speed enhancements
  • 🏆 Progressive Difficulty: Escalating challenge levels
  • 📱 Cross-Platform: Desktop and mobile compatible
  • 🎨 Professional UI: Clean, modern interface design

🚀 Tech Stack

📁 Project Structure

Alien-Invasion-Defense/
├── 📁 game/                    ← Core game files
│   ├── alien-defense.html      ← Main game interface
│   ├── alien-defense-engine.js ← Game logic & mechanics
│   └── alien-defense-styles.css← Game-specific styling
├── 📁 audio/                   ← Sound effects & music
├── 📁 assets/                  ← Images & resources
├── 📁 pages/                   ← Supporting pages
│   ├── game-rules.html         ← Game instructions
│   ├── leaderboard.html        ← High scores
│   ├── contributors.html       ← Team & community
│   └── about.html              ← Game information
├── 📁 docs/                    ← Documentation
├── 📁 old-files/              ← Legacy backup
├── index.html                  ← Entry point
├── alien-defense-theme.css     ← Unified styling
├── manifest.json               ← PWA configuration
├── service-worker.js           ← Offline support
└── README.md                   ← This file

🎯 Game Controls

  • Movement: Arrow Keys or A/D keys
  • Fire: Spacebar or mouse click
  • Pause: ESC key
  • Objective: Eliminate all alien invaders
  • Lives: 3 attempts per session
  • Scoring: Points based on alien type defeated

🌟 Features

  • Responsive Design - Works on desktop & mobile
  • PWA Support - Install as app
  • Dark/Light Theme - Toggle between themes
  • Visitor Counter - Track site visits
  • Smooth Animations - Enhanced user experience
  • Game Statistics - Track your progress
  • Offline Support - Play without internet

🛡️ Power-Up System

  • 🔋 Health Boost: Restore life points
  • ⚡ Speed Boost: Enhanced movement velocity
  • 🛡️ Shield: Temporary invincibility

🏗️ Local Development

# Clone repository
git clone https://github.com/YadavAkhileshh/Alien-Invasion-Defense.git

# Navigate to directory
cd Alien-Invasion-Defense

# Launch local server (optional)
python -m http.server 8000

# Open in browser
open http://localhost:8000

🐳 Docker Deployment

# Build container
docker build -t alien-invasion-defense .

# Run container
docker run -d -p 8080:80 alien-invasion-defense

# Access application
open http://localhost:8080

🚀 GitHub Pages Deployment

  1. Fork this repository
  2. Go to Settings → Pages
  3. Select source: Deploy from branch
  4. Choose main branch
  5. Your game will be live at: https://yourusername.github.io/Alien-Invasion-Defense/

🌐 Live Demo

🎮 Play Now: https://alienid.netlify.app/

📂 GitHub: https://github.com/YadavAkhileshh/Alien-Invasion-Defense

🤝 Contributing

See Contributing Guide for development guidelines.

📄 License

This project is licensed under the MIT License - see LICENSE file.

🌍 Community

📞 Contact

LinkedIn Twitter Email


Made with ❤️ for Earth's defenders | 🎮 Play Now

About

Alien Invasion Defense is a fun web-based game created with HTML, CSS, and JavaScript. With a user-friendly interface and smooth gameplay, it’s perfect for players of all ages. Over 1,000 users have enjoyed the engaging challenges as they defend Earth from alien invaders. Join the action and see if you have what it takes to protect our planet!

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 114