|
@@ -29,6 +29,16 @@ local grad_palettes = {
|
|
{ 8, 9, 10, 11, 12 },
|
|
{ 8, 9, 10, 11, 12 },
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+local enemies = {}
|
|
|
|
+
|
|
|
|
+function add_enemy(en_type, xpos, ypos)
|
|
|
|
+ table.insert(enemies, {
|
|
|
|
+ x=xpos, y=ypos,
|
|
|
|
+ type=en_type,
|
|
|
|
+ t=0,
|
|
|
|
+ })
|
|
|
|
+end
|
|
|
|
+
|
|
function mod(a, b)
|
|
function mod(a, b)
|
|
return math.floor(a-(math.floor(a/b)*b))
|
|
return math.floor(a-(math.floor(a/b)*b))
|
|
end
|
|
end
|
|
@@ -118,6 +128,11 @@ function draw_bullets()
|
|
end
|
|
end
|
|
end
|
|
end
|
|
|
|
|
|
|
|
+-- also handle powerups since they're colliders
|
|
|
|
+function draw_enemies()
|
|
|
|
+
|
|
|
|
+end
|
|
|
|
+
|
|
function handle_input()
|
|
function handle_input()
|
|
player.vx = 0
|
|
player.vx = 0
|
|
player.vy = 0
|
|
player.vy = 0
|