Skip to content

Commit

Permalink
Create AB_5_PathOfDoom.md (#482)
Browse files Browse the repository at this point in the history
Solutions for PathOfDoom
  • Loading branch information
kedilayanaveen10 committed Jan 14, 2022
1 parent 475259b commit dad5f51
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions solutions/bonus/AB_5_PathOfDoom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# AB_5_PathOfDoom.md
## kedilayanaveen10: The Great Wall of Doom?
Create a wall on hitting the switch.
```javascript
map.defineObject('switch', {
'type': 'static',
'symbol': String.fromCharCode(0x2617),
'color': 'red',
'onCollision': function (me) {
for(var y=8; y<=12; y++)
map.placeObject(map.getWidth()-5, y, 'boulder');
}
});
```

## kedilayanaveen10: Flip the plates
This can also be solved without any code change. Just move in and out of the plate at the begninning as much as possible and the arrows stop firing on their own.

0 comments on commit dad5f51

Please sign in to comment.