Asteroids is a classic arcade-style game from 1979, that allows players to control a spaceship and navigate through an asteroid field, avoiding collisions and shooting asteroids.
To play online, visit https://karolfaltyn.github.io/asteroids/.
To install project locally, follow these steps:
-
Clone the repository to your local machine:
git clone https://github.com/karolfaltyn/asteroids.git
-
Navigate to the project directory:
cd asteroids -
Open the
index.htmlfile in your web browser. -
Start playing the game!
Navigate your spaceship through the asteroid field, avoiding collisions with the asteroids. Use your spaceship's blasters to shoot and destroy the asteroids.
The game ends when your spaceship collides with an asteroid. Challenge yourself to destroy all asteroids!
- Arrow Keys: Use the arrow keys (up, down, left, right) to control the movement of your spaceship.
- Spacebar: Press the spacebar to shoot blasters and destroy asteroids.
- HTML
- JavaScript
This project is licensed under the MIT License.