From 3d9fd1f4391c4bc40045838f58fded224f798962 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 18 Feb 2024 02:00:33 -0800 Subject: [PATCH] when I inlined next_row I forgot to delete it --- vacation.p8 | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 40bc7ff..2011bd7 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -1600,25 +1600,6 @@ function gen_pattern() return {x0 + 1, x1 + 1, x2 + 1, x3 + 1} end -function arcade_level:next_row() - if not self.pattern then - self.pattern=gen_pattern() - self.pattern_idx = 0 - self.next_break = 9 + irnd(9) - end - local i, pbk = (self.pattern_idx&3)+1,0 - if self.next_break == 0 then - -- do pattern break - local np = gen_pattern() - i = np[1]==self.pattern[i] and 2 or 1 - self.next_break = 9 + irnd(9) - pbk=3 - end - self.pattern_idx = i - self.next_break -= 1 - return self.pattern[i], pbk -end - function arcade_level:word_hit(word) self.score += 1 -- TODO: sfx