I've got some problem with the level
treasured-in-ice, in particular with
Here's some of my code:
target = exitPosition
target = treasurePosition
return target.x < hero.pos.x and hero.isPathClear(hero.pos, westRoomPos())
In my loop I have:
p = westRoomPos()
fromDirection = "east"
p = southRoomPos()
fromDirection = "north"
My character went west for 2 times, then the problem occurs:
South gate is open but west gate is NOT. But my character stood still...
Have I missed something? Any caveats regarding
Any input would be appreciated.