'impassable': function (player) {
if (player.hasItem('greenKey')) {
player.removeItem('theAlgorithm');
return false;
} else {
return true;
}
'impassable': function (player) {
if (player.hasItem('greenKey')) {
player.removeItem('greenKey');map.placeObject(24,9,'greenKey');
return false;
} else {
return true;
}
Let's call the cells from the top to the bottom and from left to right 1,2,3,4,5,6,7,8 and the one in which the player starts C:
- C -> 3
- 3 -> 1
- 1 -> C
- C -> 2
- 2 -> 4
- 4 -> C
- C -> 7 (Algorithm)
- 7 -> 8
- 8 -> C
- C -> Exit
player.removeItem('yellowLock');