diff options
| author | RibbonCable <ambiguousmachine@gmail.com> | 2022-02-17 21:29:10 -0800 |
|---|---|---|
| committer | RibbonCable <ambiguousmachine@gmail.com> | 2022-02-17 21:29:10 -0800 |
| commit | b15a0c077587ddf748d34556524416435c01ec17 (patch) | |
| tree | 8d6b651465404426e1fb3eb4e9ba5c29a7c7158d /bullets.lua | |
| parent | 8b53a5ee4a55f455c7b1d1dd02d67778b1ec31f8 (diff) | |
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;
Diffstat (limited to 'bullets.lua')
| -rw-r--r-- | bullets.lua | 8 |
1 files changed, 3 insertions, 5 deletions
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 |
