Asteroid Blaster
How to Play: Asteroid Blaster (Made with JavaScript, no game engine was used)
Objective: Survive as long as possible by dodging and destroying asteroids, collecting power-ups, and racking up a high score. Avoid getting hit, as your spaceship has limited health!
Controls:
- Mouse:
- Move the cursor to aim your spaceship (it rotates to face the cursor).
- Left-click to shoot bullets at asteroids.
- Keyboard:
- W or Up Arrow: Thrust forward to move in the direction your ship is facing.
- A or Left Arrow / D or Right Arrow: Rotate left or right (optional, overrides mouse aiming while pressed).
- Spacebar: Shoot bullets (alternative to left-click).
- Restart: When the game ends, click the "Restart Game" button on the game-over screen to play again.
Gameplay:
- Your Ship: You control a cyan spaceship. It starts with 3 health points, shown in the top-left corner.
- Asteroids: Brown asteroids spawn from the screen edges. Shoot them to break them into smaller pieces or destroy them for 10 points each. Avoid collisions, as each hit reduces your health by 1.
- Power-Ups: Collect colored squares (R for Rapid Fire, S for Shotgun) for temporary boosts:
- Rapid Fire: Shoot faster.
- Shotgun: Fire three bullets in a spread.
- Power-up status and duration are shown in the top-right corner.
- Scoring: Destroy asteroids to increase your score, displayed at the top-left.
- Timer: Survive longer to increase the time, shown at the top-left. The game gets harder over time (asteroids speed up, spawn more often).
- Game Over: When health reaches 0, your ship explodes, and the game-over screen shows your final score. Click "Restart" to try again.
Tips:
- Keep moving to avoid them; your ship wraps around screen edges.
- Use power-ups strategically to clear asteroid waves.
- Watch your health bar and play cautiously when low.
- Combine mouse aiming with keyboard movement for precise control.
Have fun blasting asteroids and chasing that high score! 🚀 Start playing by simply clicking or pressing any key to begin!
Leave a comment
Log in with itch.io to leave a comment.