# asteroids
**Repository Path**: mirrors_puppetlabs/asteroids
## Basic Information
- **Project Name**: asteroids
- **Description**: A JavaScript based Asteroids variation.
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-18
- **Last Updated**: 2026-05-30
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Asteroids! ... Or something kind of like it.
# Introduction
In my free time I coded a version of Asteroids using JavaScript and the
canvas element. This was just a little experiment so it's unlikely I'll
improve it much more. I'm posting it on GitHub in case anyone finds any
of the bits of code useful. Programming Asteroids is a really great way
to get started understanding the basics of 2D video games. Enjoy!

View [demo](http://boilerjs.com/misc/asteroids/asteroids.html).
## Up and running
Include the asteroids.js file in the header of your page and add a canvas
element with an id of `asteroids-container`, like this:
```
```
Then include the following script to initialize the game.
```
```
You can define the parameters and overall difficulty of each level you
create.