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!
- 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
- Use WASD or arrow keys to navigate your spacecraft
- Press SPACE to fire your weapons
- Destroy asteroids to increase your score
- Collect power-ups to replenish health, shields, or cool down your weapons
- Avoid collisions with asteroids
- Try to achieve the highest score possible!
- Clone this repository:
git clone https://github.com/yourusername/cosmic-defender.git
- Navigate to the project directory:
cd cosmic-defender
- Open
index.html
in a web browser, or set up a local server:Then openpython -m http.server
http://localhost:8000
in your web browser.
- HTML5
- CSS3
- JavaScript
- Three.js for 3D rendering
- Howler.js for sound management
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.