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
ENEMY_SPAWN_EASY = 0 | |
ENEMY_SPAWN_HARD = 1 | |
EnemyHorde = class() | |
function EnemyHorde:init() | |
-- you can accept and set parameters here | |
self.frame = 0 | |
self.units = {} -- enemy units | |
self.heroBullets = {} -- hero's bullets |
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
hero = nil | |
enemies = nil | |
bgLines = nil | |
explosion = nil | |
killCount=0 | |
GAME_PLAYING = 0 | |
GAME_DEAD = 1 | |
GAME_WON = 2 |