Skip to content

Latest commit

 

History

21 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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!

About

game forked from https://github.com/Oliverwebdev/Asteroids

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages