mike-brady / JetmanJS

A JavaScript remake of the original Facebook game, Jetman.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JetmanJS

A JavaScript remake of the Facebook game, Jetman.

Getting Started

Download the files from the dist folder and place them inside your web directory.

Include jetmanjs.min.js in your webpage.

<script type="text/javascript" src="jetmanjs.min.js"></script>

Create a canvas element with an id of "jetmanjs".

<canvas id="jetmanjs" width="600" height="400"></canvas>

Create a Jetman object, get the canvas element, and initialize the game.

window.onload = function() {
  var jetman = new Jetman("sprites/jetman.png");
  var canvas = document.getElementById("jetmanjs");
  var game = new Game(canvas, jetman);
  game.init();
};

Next, load the page, and play some Jetman!

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A JavaScript remake of the original Facebook game, Jetman.

License:MIT License


Languages

Language:JavaScript 100.0%