diff --git a/vacation.p8 b/vacation.p8 index 19f0c7d..a04e6a4 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -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 = {