fix fish direction and placement
This commit is contained in:
parent
4a086be607
commit
9a865e418f
@ -1602,7 +1602,7 @@ end)
|
|||||||
function arcade_level:av()
|
function arcade_level:av()
|
||||||
if (musicmode & 1 ==0) music(0,1000,7)
|
if (musicmode & 1 ==0) music(0,1000,7)
|
||||||
for _=1,5 do
|
for _=1,5 do
|
||||||
self:gen_fish(0, 150)
|
self:gen_fish(-127, 256)
|
||||||
end
|
end
|
||||||
font_compact()
|
font_compact()
|
||||||
end
|
end
|
||||||
@ -1613,7 +1613,7 @@ function arcade_level:gen_fish(xmin, xrg)
|
|||||||
x = rnd(xrg) + xmin,
|
x = rnd(xrg) + xmin,
|
||||||
y = 80 + irnd(44),
|
y = 80 + irnd(44),
|
||||||
s = {54, 55, 56, 55},
|
s = {54, 55, 56, 55},
|
||||||
flipx = fishdx < 0,
|
flipx = fishdx > 0,
|
||||||
i = irnd(4) + 1,
|
i = irnd(4) + 1,
|
||||||
f = 20,
|
f = 20,
|
||||||
}
|
}
|
||||||
@ -1627,7 +1627,7 @@ function arcade_level:gen_fish(xmin, xrg)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function arcade_level:pdone(item)
|
function arcade_level:pdone(item)
|
||||||
if (item.id == "fish") self:gen_fish(129, 200)
|
if (item.id == "fish") self:gen_fish(129, 50)
|
||||||
end
|
end
|
||||||
|
|
||||||
function arcade_level:onmchg()
|
function arcade_level:onmchg()
|
||||||
|
Loading…
Reference in New Issue
Block a user