From fa9b6939cf45783463c0deb142ed63ae24ecb66d Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sun, 11 Feb 2024 18:30:48 -0800 Subject: [PATCH] fix fuzzy_stripey missing segment when dy > 0 also makes it try harder to approach the target weight, by default --- vacation.p8 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 33a01ba..f93df1e 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -517,7 +517,7 @@ fuzzy = { p = 0xffff, n = 0, interval = 3, - tries = 2, + tries = 4, } mknew(fuzzy, function(x) local p = (x.p or fuzzy.p) & 0xffff @@ -578,7 +578,7 @@ function fuzzy_stripey:update() fz.tries = self.tries self.y += self.dy if (self.y <= -self.gap) self.y += self.gap - if (self.y >= self.gap) self.y -= self.gap + if (self.y >= 0) self.y -= self.gap fz:update() end