Skip to content

kevinroast/Asteroids-Reloaded

Repository files navigation

Asteroids-Reloaded

Asteroids [Reloaded] - HTML5 Canvas JavaScript game.

Table of Contents

  1. Play
  2. About
  3. Purpose
  4. Commands
  5. Features
  6. Installation
  7. Development Team
  8. License

Play

Play online here: http://www.kevs3d.co.uk/dev/asteroids

If you want to run this code locally, run the game from within a local webserver for the sound/message file loading to work correctly (Refer to installation section).

e.g. localhost:8080/Asteroids-Reloaded/index.html

About

Asteroids [Reloaded] is an updated version of the 1979 hit-game Asteroids!

The original game was created for Atari. In the game, the player controls a spaceship that roams through an asteroid field to destroy as many asteroids and enemies as possible and get the highest score!

The original and best HTML5 canvas game! :) As featured on Wired: http://www.wired.com/2010/09/play-asteroids-in-html5/ Was originally coded against the very early HTML5 Canvas API for Safari 3 (no, really). But has been enhanced a few times since. The game has been played ~500,000 times on the original website above. Also featured on Chrome Experiments: http://www.chromeexperiments.com/detail/asteroids-game/

Game uses the Canvas and Audio HTML5 APIs. Graphics are rendered in Lightwave 3D.

See more game and HTML5 canvas/webgl demos on my site: http://www.kevs3d.co.uk/dev

All game graphics, sounds and code Copyright (c) 2014 Kevin Roast [email protected]

Purpose

This project was originally created to learn HTML5 API.

A long term goal of this project is to keep the original Asteroids game alive, while also giving it several quality of life updates to make it a lightweight and fun HTML browser game.

Asteroids [Reloaded] not only serves as a way to preserve video game history, but also to improve on it and inspire future generations of game developers!

Commands

Gameplay Commands:

← →: Rotate ship

↑: Thrust

↓ or Shift: Shield

Space bar: Fire main weapon

Z: Fire bomb weapon

S: Enable or disable sound effects

R: Switch between Modern and Retro graphics

ESC: Pause the game

DEBUG mode commands:

L: Skip level

A: Add asteroid

E: Add enemy ship

Removed commands:

Hyperspace ability.

Features

  1. Power ups on the map.
  2. Bomb weapon that does AOE damage.
  3. Shield.
  4. Debug mode: https://www.kevs3d.co.uk/dev/asteroids/index-debug.html
  5. Ability to turn sound on and off.
  6. Ability to switch from original graphics to new graphics.

Installation

No installation necessary, you can play it on your browser!

If you want to play the game locally follow these steps:

  1. find a path to download the game files to.
  2. open command prompt on that path and run "git clone https://github.com/kevinroast/Asteroids-Reloaded.git" (You need to have git installed in your machine for this to work).
  3. on the command prompt, run "npm install -g http-server".
  4. on the command prompt, cd into the downloaded folder from step 2, then run "http-server" (If you run into the "running scripts is disabled on this system" error message, open poweshell as an administrator, and then run Set-ExecutionPolicy RemoteSigned).
  5. Hold Cntrl + Click on the link that will show up.
  6. The game should now open on a local server through your browser. Enjoy!

Development Team

Lead developer: Kevin Roast - [email protected]

License

Copyright (c) 2011 Kevin Roast [email protected]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

A "link back" to the original holding website "www.kev3d.co.uk" or a reference to the original author "Kevin Roast" shall be provided on any copies or substantial portions of the Software.

Except as contained in this notice, the name(s) of the above copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Asteroids [Reloaded] - HTML5 Canvas JavaScript game

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published