This is a simple implementation of the Asteroids Game built using HTML5, CSS, and JavaScript. The game involves navigating a spaceship in space, dodging and shooting asteroids to score points while avoiding collisions. The player can control the ship with the keyboard and interact with the game elements through different gameplay mechanics.
- Spaceship Control: Use the arrow keys to move the spaceship and the spacebar to shoot.
- Asteroid Movement: Asteroids randomly appear and move across the screen.
- Collision Detection: Avoid colliding with asteroids. If a collision occurs, the game restarts.
- Game Over: If the spaceship collides with an asteroid, the game is over.
- Astronaut: An astronaut image appears on the game screen, adding a fun touch.
- HTML5: The structure of the game.
- CSS: Styling for the game elements and layout.
- JavaScript: Game logic, controls, collision detection, and rendering.
- Open the game in any modern browser.
- Use the arrow keys to move the spaceship.
- Press the spacebar to shoot at the asteroids.
- Avoid the asteroids; if you collide, the game will reset.
- Try to survive as long as possible and rack up points!
This project is released under the [MIT License].
Happy gaming! 🚀
