diff options
| author | RibbonCable <ambiguousmachine@gmail.com> | 2022-02-20 12:55:11 -0800 |
|---|---|---|
| committer | RibbonCable <ambiguousmachine@gmail.com> | 2022-02-20 12:55:11 -0800 |
| commit | 4f4a5405a95c47b34e0250e6b0f143e8e5f8dc76 (patch) | |
| tree | 9cfe9651c194db292621e712ee099984a9359aa5 /update.lua | |
| parent | 23acc296abf209ccf2fa15e3641f266b02add71d (diff) | |
Lots of updates to the music player. Other than track titles and final songs, it's p much done. Also made some sprint non-flipped to save on tokens.
Diffstat (limited to 'update.lua')
| -rw-r--r-- | update.lua | 18 |
1 files changed, 13 insertions, 5 deletions
@@ -14,7 +14,7 @@ if gameover then gameover = false foreach(players, function(obj) obj:respawn() end) setwave(mid(checkpoint,currentwave-1,#wave)) --goes back one wave - sfx(29, -2) + sfx(22, -2) --stops respawn rewind beat end elseif gamerunning then updatewaves() -- update the wave function @@ -37,12 +37,12 @@ if currentwave == 20 then --ending screen end elseif not gamerunning and t() > 1 then --main menu if btn(4) then - addplayer(18, 60, 16, 18) + addplayer1() --reduces tokens, found in objects.lua startgame() elseif btn(5) then coopmode = true - addplayer(18, 45, 16, 18) - addplayer(18, 75, 32, 34) + addplayer1() --reduces tokens, found in objects.lua + addplayer(18, 75, 32, 33, 34, 4) startgame() end end @@ -63,4 +63,12 @@ end function scorewithzeros(string,length) if #string == length then return string end return "0"..scorewithzeros(string, length-1) -end
\ No newline at end of file +end + +-- screenshake accessibility setting +if doshake then screenshaketext = "(▒) screenshake" end --adds 9 tokens to visually show the toggle +menuitem(1,screenshaketext, + function() + doshake = not doshake + screenshaketext = "(█) screenshake" + end)
\ No newline at end of file |
