Skip to content

Cosmic Defender(Prev. Asteroid Dodge) is an immersive 3D space shooter game where players navigate a spacecraft through treacherous asteroid fields. Featuring dynamic gameplay, stunning visuals, and challenging levels, this web-based game showcases modern web technologies and game development techniques.

License

Notifications You must be signed in to change notification settings

ascender1729/asteroid-dodge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cosmic Defender

Cosmic Defender(Prev. Asteroid Dodge) is an exciting 3D space shooter game built with Three.js. Navigate through an asteroid field, destroy incoming threats, and collect power-ups to survive as long as possible!

Features

  • Realistic 3D graphics powered by Three.js
  • Dynamic spacecraft controls with acceleration and inertia
  • Procedurally generated asteroids with unique textures
  • Multiple power-up types (health, shield, weapon cooldown)
  • Progressive difficulty increase
  • Score multiplier system for consecutive hits
  • Particle effects for spacecraft thrusters and explosions
  • Sound effects and background music

How to Play

  1. Use WASD or arrow keys to navigate your spacecraft
  2. Press SPACE to fire your weapons
  3. Destroy asteroids to increase your score
  4. Collect power-ups to replenish health, shields, or cool down your weapons
  5. Avoid collisions with asteroids
  6. Try to achieve the highest score possible!

Installation

  1. Clone this repository:
    git clone https://github.com/yourusername/cosmic-defender.git
    
  2. Navigate to the project directory:
    cd cosmic-defender
    
  3. Open index.html in a web browser, or set up a local server:
    python -m http.server
    
    Then open http://localhost:8000 in your web browser.

Technologies Used

  • HTML5
  • CSS3
  • JavaScript
  • Three.js for 3D rendering
  • Howler.js for sound management

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

About

Cosmic Defender(Prev. Asteroid Dodge) is an immersive 3D space shooter game where players navigate a spacecraft through treacherous asteroid fields. Featuring dynamic gameplay, stunning visuals, and challenging levels, this web-based game showcases modern web technologies and game development techniques.

Topics

Resources

License

Stars

Watchers

Forks