forked from pyrex/chameleonic
Fix sample level
This commit is contained in:
parent
8814edbdd4
commit
5dc8e2c10d
@ -354,7 +354,7 @@ function level:spawn_exit()
|
|||||||
if (x<8) player.orientx=1
|
if (x<8) player.orientx=1
|
||||||
end
|
end
|
||||||
local win_at=function(x,y)
|
local win_at=function(x,y)
|
||||||
if (self:_mget(x,y)!=4) return
|
if (self:_mget(x,y)!=18) return
|
||||||
for n in all(neighbors{x=x,y=y}) do
|
for n in all(neighbors{x=x,y=y}) do
|
||||||
if n.x<0 or n.y<0 or n.x>15 or n.y>15 then
|
if n.x<0 or n.y<0 or n.x>15 or n.y>15 then
|
||||||
self._wins[_mix(n.x,n.y)]=true
|
self._wins[_mix(n.x,n.y)]=true
|
||||||
|
Loading…
Reference in New Issue
Block a user