From a2fa6c0202358a8f4d559b31834aa2c975a1c86e Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 4 Feb 2024 19:30:16 -0800 Subject: [PATCH] spend a local, save a function call --- vacation.p8 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 = {