A simple Starfox-style 3D space shooter game built with Three.js.
- Start the server by running
node server.js
in your terminal - Open
http://localhost:8080
in your web browser - Use your mouse to control your ship:
- Moving mouse left/right: Yaw (steer left/right)
- Moving mouse up/down: Pitch (tilt up/down)
- Mouse wheel: Control throttle (speed)
- Press Spacebar to fire lasers
- Destroy enemy ships to earn points
- Avoid enemy fire and collisions to stay alive
- 3D space environment with stars
- Player ship with flight controls
- Enemy ships that spawn randomly and attack
- Laser weapons for both player and enemies
- Health and score tracking
- Game over state when health reaches zero
- Three.js (imported via CDN)
- JavaScript
- HTML/CSS
This is a simple implementation with rudimentary physics and collision detection. The game can be expanded with more complex models, sounds, power-ups, and game mechanics.