aboutsummaryrefslogtreecommitdiff
path: root/players.lua
diff options
context:
space:
mode:
authorRibbonCable <ambiguousmachine@gmail.com>2022-02-17 21:29:10 -0800
committerRibbonCable <ambiguousmachine@gmail.com>2022-02-17 21:29:10 -0800
commitb15a0c077587ddf748d34556524416435c01ec17 (patch)
tree8d6b651465404426e1fb3eb4e9ba5c29a7c7158d /players.lua
parent8b53a5ee4a55f455c7b1d1dd02d67778b1ec31f8 (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 'players.lua')
-rw-r--r--players.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/players.lua b/players.lua
index 4f7eee3..dc62419 100644
--- a/players.lua
+++ b/players.lua
@@ -23,7 +23,7 @@ function addplayer(x, y, sprite, bulletsprite)
-- print(player.health)
--draw a different sprite when moving, and blink when hurt
- if (player.inv < 0 or ceil(player.inv*10%2) == 1) and player.health > 0 then
+ if (player.inv < 0 or flashtime == 1) and player.health > 0 then
if (player.ymov == 0) then
spr(sprite, player.x, player.y)
elseif (player.ymov == 1) then
@@ -54,6 +54,7 @@ function addplayer(x, y, sprite, bulletsprite)
sfx(11, 3)
sfx(29, 1)
elseif player.health <= 0 then
+ currentscore = ceil(currentscore * 0.5) --halves score if coop
sfx(11, 3)
player.inv = 5
end
@@ -134,6 +135,7 @@ function addplayer(x, y, sprite, bulletsprite)
end
function isgameover()
+ currentscore+=-10 --lose points if hit
for i = 1, #players, 1 do
if players[i].health > 0 then
return