Git Product home page Git Product logo

webgl-asteroid-game's Introduction

Asteroids

Setup Instructions

Please load final.html from the master branch. To download the source code click on the release tab and choose the tag RELEASE-1.0. Aside from the standard WebGL implementation, your browser will also need to support the ANGLE extensions to WebGL.

How to Play

Controls:

  • W - Up
  • A - Left
  • S - Down
  • D - Right
  • Spacebar - For shooting the missle and navigation

Your goal is to get to planet Friedman without getting hit by asteroids. The asteroids will speed up as the game progresses, and they will also spawn more frequently as time progresses. You can not continuously fire your missle, and must wait a period of three seconds before each fire. Your ship explodes after 3 hits.

Advanced Features

Particle System

The particle system is used to render the player death explosion and the player's thrusters.

Collision Detection

Collision detection is used to determine when a player is hit by an asteroid, and when a player's missile hits an asteroid.

Cube Mapping

Added a cube mapping feature to map texture maps to spheres. We mapped the background planet using this technique.

Demo

webgl-asteroid-game's People

Watchers

paling avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.