diff options
| author | Arslaan Pathan <[email protected]> | 2025-06-29 12:58:54 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2025-06-29 12:58:54 +1200 |
| commit | 7620372001ea41abe30f1a14216dda81c1103889 (patch) | |
| tree | 2337d0d6a7127f5e44a30a06b97257dcbd50b05c /assets/scripts/mainMenu.lua | |
| parent | 2ca2d786af025689fb4f18800f219bedc97d1ba9 (diff) | |
| download | showdownofthesticks-7620372001ea41abe30f1a14216dda81c1103889.tar.xz showdownofthesticks-7620372001ea41abe30f1a14216dda81c1103889.zip | |
KO graphics and sound + background music and sound support!
Diffstat (limited to 'assets/scripts/mainMenu.lua')
| -rw-r--r-- | assets/scripts/mainMenu.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/assets/scripts/mainMenu.lua b/assets/scripts/mainMenu.lua index 4854775..ca290c6 100644 --- a/assets/scripts/mainMenu.lua +++ b/assets/scripts/mainMenu.lua @@ -33,6 +33,13 @@ function Timer.after(delay, callback) }) end +function Timer.delay(seconds) + local start = os.clock() + while (os.clock() - start) < seconds do + -- Busy wait, blocking here + end +end + function Timer.clearAllTimers() Timer.timers = {} end @@ -50,6 +57,7 @@ end function Setup() setBgImage("assets/backgrounds/city-background-1.png") + playSoundLoop("assets/sounds/Main Menu - Background Music (Knockout).wav") end function Local2PButton() |
