Welcome to the Asteroids Game! This is a simple remake of the classic arcade game "Asteroids" using pure JavaScript.
You can play the game here: Play Asteroids
- Move the Ship: Use the arrow keys to navigate your ship.
Up Arrow
: Thrust forwardLeft Arrow
: Rotate leftRight Arrow
: Rotate right
- Shoot: Press the
Space
bar to shoot bullets at the asteroids. - Objective: Destroy all the asteroids while avoiding collisions.
- You gain points for each asteroid you destroy. Larger asteroids split into smaller ones when hit.
- The game continues until you lose all your lives.
- You start with 3 lives.
- You lose a life each time your ship collides with an asteroid.
- The game ends when all lives are lost.
- Randomly generated asteroids
- Ship rotation and movement
- Bullet shooting
- Collision detection
- Score and lives display
- Game reset functionality
Up Arrow
: Move forwardLeft Arrow
: Rotate leftRight Arrow
: Rotate rightSpace Bar
: Shoot bullets
This game was developed by Shane Larson. You can connect with me on:
- Clone the repository:
git clone https://github.com/grizzlypeaksoftware/asteroids.git
- Open
index.html
in your web browser to play the game.
This project is licensed under the MIT License.
Enjoy the game!