psound -- priority-aware channel-3-only sfx playback

This commit is contained in:
Kistaro Windrider 2024-02-17 23:30:45 -08:00
parent 8d24c6a0a9
commit 0597ee6860
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -275,6 +275,13 @@ function font_special()
poke(0x5f58, 0x81) poke(0x5f58, 0x81)
end end
-- play sound n on channel 3 iff
-- 3 doesn't already have a
-- greater index sound going
function psound(n, off, len)
if (stat(49) < n) sfx(n, 3, off, len)
end
-->8 -->8
-- text rendering -- text rendering