Created
January 12, 2013 03:58
-
-
Save McFunkypants/4515977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the game's canvas element | |
var canvas = null; | |
// the canvas 2d context | |
var ctx = null; | |
// an image containing all sprites | |
var spritesheet = null; | |
// true when the spritesheet has been downloaded | |
var spritesheetLoaded = false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment