From 9a865e418fd0a7e198bd3784b050ad82473b886c Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Thu, 29 Feb 2024 20:40:14 -0800 Subject: [PATCH] fix fish direction and placement --- vacation.p8 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vacation.p8 b/vacation.p8 index 27bb8d2..18ce4f6 100644 --- a/vacation.p8 +++ b/vacation.p8 @@ -1602,7 +1602,7 @@ end) function arcade_level:av() if (musicmode & 1 ==0) music(0,1000,7) for _=1,5 do - self:gen_fish(0, 150) + self:gen_fish(-127, 256) end font_compact() end @@ -1613,7 +1613,7 @@ function arcade_level:gen_fish(xmin, xrg) x = rnd(xrg) + xmin, y = 80 + irnd(44), s = {54, 55, 56, 55}, - flipx = fishdx < 0, + flipx = fishdx > 0, i = irnd(4) + 1, f = 20, } @@ -1627,7 +1627,7 @@ function arcade_level:gen_fish(xmin, xrg) end function arcade_level:pdone(item) - if (item.id == "fish") self:gen_fish(129, 200) + if (item.id == "fish") self:gen_fish(129, 50) end function arcade_level:onmchg()