Skip to content

zachio/game-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is it

This is a game library object for helping to create games.

What does it do

It will take the canvas and resize it to the window size even if the window is resized later by the user. It will also add a black background to the canvas and take any default margins off the body. It will create a canvas object from the canvas in 2D context. It can also start a game loop and keep track of FPS right out of the box. All you have to do is:

var game = new Game(canvasID);

//Run game loop and pass in step function
game.loop(step);

Basic Demo

http://zachdyer.github.io/game-library/

Project Information

  • Author: Zach Dyer
  • Website: ZachDyerDesign.com
  • Version: 1.1.0

About

A JavaScript game library for canvas in 2d context.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published