Skip to content

Instantly share code, notes, and snippets.

@McFunkypants
Created January 12, 2013 03:58
Show Gist options
  • Save McFunkypants/4515977 to your computer and use it in GitHub Desktop.
Save McFunkypants/4515977 to your computer and use it in GitHub Desktop.
// 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