spend a local, save a function call

This commit is contained in:
Kistaro Windrider 2024-02-04 19:30:16 -08:00
parent d1bc8cb072
commit a2fa6c0202
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -430,8 +430,9 @@ sea = {}
mknew(sea)
function sea:draw()
rectfill(0, 72+wave(), 128, 84, 0)
poke2(0x5f78, 0xFF00.00FF <<> wave())
local w = wave()
rectfill(0, 72+w, 128, 84, 0)
poke2(0x5f78, 0xFF00.00FF <<> w)
end
arcade_level = {