Skip to content

Instantly share code, notes, and snippets.

@mikebaldry
Created March 28, 2011 15:23
Show Gist options
  • Select an option

  • Save mikebaldry/890646 to your computer and use it in GitHub Desktop.

Select an option

Save mikebaldry/890646 to your computer and use it in GitHub Desktop.
class Game
constructor: ->
@drawInterval = 150
@characterX = 2
@characterY = 2
@imageRepository = null
@imagesLoadedCallback = (loadedImages) ->
alert "Hey!"
@imageRepository = loadedImages
setInterval(@draw, @drawInterval)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment