fix fish direction and placement

This commit is contained in:
Kistaro Windrider 2024-02-29 20:40:14 -08:00
parent 4a086be607
commit 9a865e418f
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -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()