Created
November 22, 2011 03:18
-
-
Save anonymous/1384799 to your computer and use it in GitHub Desktop.
Wizard's Fire Level Class
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
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