diff options
| author | RibbonCable <ambiguousmachine@gmail.com> | 2022-02-18 15:57:14 -0800 |
|---|---|---|
| committer | RibbonCable <ambiguousmachine@gmail.com> | 2022-02-18 15:57:14 -0800 |
| commit | 4399396b397ce36c2c35eae5eb870627a36cf555 (patch) | |
| tree | 42f399a6d413d3d841e0dc7f101b8d52b3ffe6ea /pickups.lua | |
| parent | ef48284d5dbda449ad74d1da2bfe9bf02557b785 (diff) | |
Small edit to pickups in exchange for tokens.
Diffstat (limited to 'pickups.lua')
| -rw-r--r-- | pickups.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pickups.lua b/pickups.lua index f4ad10b..5634c18 100644 --- a/pickups.lua +++ b/pickups.lua @@ -17,15 +17,14 @@ function addpickup(x, y, type) local pickup = {} x = x y = y - type = type or rnd({"health", "health", "fastshoot", "3shoot"}) - if type == "powerup" then type = rnd({"fastshoot", "3shoot"}) end + type = type or rnd({"fastshoot", "3shoot"}) function pickup.draw(pickup) sprite = 4 --had to move these checks into draw or they'd have incorrect sprites if type == "fastshoot" then sprite = 20 elseif type == "3shoot" then - sprite = 36 + sprite = 36 --health end spr(sprite, x, y) @@ -39,7 +38,7 @@ function addpickup(x, y, type) if type == "fastshoot" then color = 12 elseif type == "3shoot" then - color = 9 + color = 9 --health end addcircle(x, y, sin(i/8), cos(i/8), 2, 0.6, color) end |
