Skip to content

Instantly share code, notes, and snippets.

Created November 22, 2011 03:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/1384799 to your computer and use it in GitHub Desktop.
Save anonymous/1384799 to your computer and use it in GitHub Desktop.
Wizard's Fire Level Class
Level = class()
function Level:init(x)
    -- you can accept and set parameters here
    self.number = x
    self.maxMissiles = x * 4
    self.missileCount = 0
    self.totalMissiles = x * 12
    self.hitCount = 0
end
function Level:hit()
    self.hitCount = self.hitCount + 1
end
function Level:draw()
    -- Codify does not automatically call this method
end
function Level:touched(touch)
    -- Codify does not automatically call this method
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment