Skip to content

Instantly share code, notes, and snippets.

View mostalive's full-sized avatar

Willem van den Ende mostalive

View GitHub Profile
@mostalive
mostalive / Enemyhorde.lua
Created March 7, 2012 18:34 — forked from anonymous/Enemyhorde.lua
Enemy horde
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
@mostalive
mostalive / Main.lua
Created March 7, 2012 18:34 — forked from anonymous/Main.lua
Space invaders main file
hero = nil
enemies = nil
bgLines = nil
explosion = nil
killCount=0
GAME_PLAYING = 0
GAME_DEAD = 1
GAME_WON = 2