STARBUGS is an exciting 3D space shooter game built with Three.js, where players control a spaceship to shoot down enemy ships. The game features dynamic enemy movements, collision detection, scoring, and modals for instructions and game status.
- Real-time 3D graphics with Three.js
- Player spaceship movement and shooting mechanics
- Dynamic enemy spawn and movement
- Collision detection and scoring system
- Audio effects for background music, shooting, and collisions
- Game over and restart functionalities
-
Clone the Repository:
git clone https://github.com/alanmaizon/starbugs.git cd starbugs
-
Install the Dependencies:
This game runs on a web server. Make sure to have Python or another local server installed.
python -m http.server
-
Open the Game in a Browser:
Open your web browser and go to
http://localhost:8000
.
- Start the game by clicking the "Start" button on the welcome screen.
- Use the arrow keys or touch controls to move your spaceship left or right.
- Press the space bar or tap the screen to shoot bullets.
- Shoot down all enemies to win the game.
- Move Left: Arrow Left Key / Swipe Left
- Move Right: Arrow Right Key / Swipe Right
- Shoot: Space Bar / Tap Screen
The game has been tested for:
- Player movement and shooting
- Enemy spawn, movement, and collision detection
- Score updates and game over scenarios
See the Testing and Debugging Report for more details.
- Audio effects may not play correctly on some browsers due to autoplay restrictions.
- Collision detection may be delayed occasionally.
Contributions are welcome! Please fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.