diff options
| author | Chris Bradley <1029chris@gmail.com> | 2022-02-20 15:51:09 -0800 |
|---|---|---|
| committer | Chris Bradley <1029chris@gmail.com> | 2022-02-20 15:51:09 -0800 |
| commit | 995f96d8af37320da58733aeb4b2107af25ab668 (patch) | |
| tree | 1bc7670dccbfc99bbc34a1612a737cb64be0010a /players.lua | |
| parent | a6097b11affbbd8c93c40bfc575bf25146c0c8fb (diff) | |
Turns out "\" is division + floor, thats cool! Saved a little tokens implementing it all over
Diffstat (limited to 'players.lua')
| -rw-r--r-- | players.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/players.lua b/players.lua index bc5a095..4765096 100644 --- a/players.lua +++ b/players.lua @@ -55,7 +55,7 @@ function addplayer(x, y, sprite, spriteup, spritedwn, bulletsprite) sfx(11, 0) --killed sfx(22, 1) --rewind beat elseif player.health <= 0 then - currentscore = ceil(currentscore * 0.5) --halves score if coop + currentscore = currentscore \ 0.5 --halves score if coop sfx(11, 0) player.inv = 5 end |
