spend a local, save a function call
This commit is contained in:
parent
d1bc8cb072
commit
a2fa6c0202
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user