This is a simple implementation of the classic Asteroids game in JavaScript.
-
Controls:
- Up arrow: Move the spaceship forward
- Left/Right arrows: Rotate the spaceship
- Spacebar: Shoot
-
Objective:
- Destroy asteroids by shooting at them.
- Dodge asteroids to avoid collisions.
- Survive as long as possible and achieve the highest score.
In the game, you navigate a spaceship through space, trying to avoid collisions with asteroids. You can destroy asteroids by shooting at them. Each destroyed asteroid earns you points. If your spaceship collides with an asteroid, you lose a life. The game ends when you run out of lives.
The game was created using JavaScript and utilizes the Canvas API for graphics rendering.
- Download all the files and save them in a local directory.
- Open the
index.htmlfile in a web browser to start playing the game.
Enjoy playing!