add music

This commit is contained in:
Lera Elvoé 2025-02-20 23:40:42 +03:00
parent b7e027cdc6
commit 71c045c797
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc
2 changed files with 1 additions and 0 deletions

BIN
data/music/bg1.xm Normal file

Binary file not shown.

View File

@ -40,6 +40,7 @@ end
function game_tick() function game_tick()
-- ctx.initialization_needed is true first frame and every time dynamic reload is performed -- ctx.initialization_needed is true first frame and every time dynamic reload is performed
if ctx.initialization_needed then if ctx.initialization_needed then
audio_play{audio = "music/bg1.xm", loops = true, channel = "music"}
-- ctx.udata persists on reload -- ctx.udata persists on reload
ctx.udata = { ctx.udata = {
capture = false, capture = false,