From b15a0c077587ddf748d34556524416435c01ec17 Mon Sep 17 00:00:00 2001 From: RibbonCable Date: Thu, 17 Feb 2022 21:29:10 -0800 Subject: lots of stuff, check desc Updated planet art adjusted sprites in sheet added boss sprites added some boss graphic code added score system added ending score screen w/ cart reset reduced wave loss from 2 to 1 reduced pickup amount to just bosses and specific waves only reduced tokens by grouping similar math made acid transition able to be reversed planet seed for babymode and a bunch of other stuff I forget sry its late used a lot of tokens today x.x; --- bullets.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bullets.lua') diff --git a/bullets.lua b/bullets.lua index 5d22e47..f069036 100644 --- a/bullets.lua +++ b/bullets.lua @@ -44,8 +44,7 @@ function addbullet(x, y, velx, vely, good, sprite) add(obj, bullet) end ---ERROR Sticks around after boss dies -function addlaser(x, y, r) +function addlaser(x, y, r, enemy) local laser = { --lasers!!!!!!!!!!!!!!! } @@ -98,7 +97,7 @@ function addlaser(x, y, r) end --delete laser once its done - if timer > 4 then + if timer > 4 or enemy.health <= 0 then del(obj, laser) sfx(25, 3) for i = 1, 16, 1 do @@ -106,7 +105,6 @@ function addlaser(x, y, r) end end end - add(obj, laser) sfx(23,3) end @@ -140,7 +138,7 @@ function addmissile(x, y, target) --basic small weak enemy addcircle(enemy.x+12, enemy.y+rnd(8), 0, rnd()/8, 2.1, 0.6, rnd({9,5})) enemymisc(enemy) if enemy.health <= 0 then -- die!!!!! - enemydie(enemy,17,2) + enemydie(enemy,17,2,10) end end -- cgit