An open API service indexing awesome lists of open source software.

https://github.com/oliverwebdev/asteroids

Asteroids, a challenging game that stands as one of my most ambitious projects to date. Originally developed as a culmination project for the JavaScript module, it has evolved into a game that I'm immensely proud of. Maneuver through a field of asteroids, blasting them apart while avoiding collisions, in this classic space adventure!
https://github.com/oliverwebdev/asteroids

Last synced: 4 months ago
JSON representation

Asteroids, a challenging game that stands as one of my most ambitious projects to date. Originally developed as a culmination project for the JavaScript module, it has evolved into a game that I'm immensely proud of. Maneuver through a field of asteroids, blasting them apart while avoiding collisions, in this classic space adventure!

Awesome Lists containing this project

README

        

# Asteroids Game in JavaScript

This is a simple implementation of the classic Asteroids game in JavaScript.

## Instructions

1. **Controls:**
- **Up arrow:** Move the spaceship forward
- **Left/Right arrows:** Rotate the spaceship
- **Spacebar:** Shoot

2. **Objective:**
- Destroy asteroids by shooting at them.
- Dodge asteroids to avoid collisions.
- Survive as long as possible and achieve the highest score.

## Gameplay

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.

## Technologies Used

The game was created using JavaScript and utilizes the Canvas API for graphics rendering.

## Installation and Execution

1. Download all the files and save them in a local directory.
2. Open the `index.html` file in a web browser to start playing the game.

Enjoy playing!