Hello all! I’m having an issue with my code where, when I jumpTo a clear safe spot, I still trigger the landmines and am unable to complete the level.
Where my character lands, it apparently triggers all the landmines and even when I try different coordinates it still explodes me.
# Open doors and collect treasures.
peasant = hero.findByType("peasant")[0]
goldKey = peasant.findByType("gold-key")[0]
silverKey = peasant.findByType("silver-key")[0]
bronzeKey = peasant.findByType("bronze-key")[0]
# Command the peasant to pick up the gold and silver keys.
hero.command(peasant, "pickUpItem", goldKey)
hero.command(peasant, "pickUpItem", silverKey)
# Now, command the peasant to pick up the last key:
hero.command(peasant, "pickUpItem", bronzeKey)
# Command the peasant to drop a key near the first door.
hero.command(peasant, "dropItem", {"x": 40, "y": 34})
# The second key -> the second door.
hero.command(peasant, "dropItem", {"x": 31, "y": 34})
# Drop the first (in the stack) key to the last door:
hero.command(peasant, "dropItem", {"x": 23, "y": 34})
# Hurry and collect treasures!
hero.moveXY(46, 34)
hero.moveXY(11, 34)
hero.jumpTo({'x' :10, 'y' :47})
hero.moveXY(15,46)
hero.moveXY(14,59)
hero.moveXY(10,59)
hero.moveXY(5, 60)
hero.moveXY(6, 45)
hero.jumpTo({"x": 9, "y": 34 })
hero.jumpTo({"x": 6, "y": 24 })
hero.moveXY(10, 11)