Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 935 Bytes

06_drones101.md

File metadata and controls

37 lines (29 loc) · 935 Bytes

Drone Cage

esolitos

map.placeObject(map.getWidth()-11, 13, 'block');
map.placeObject(map.getWidth()-11, 12, 'block');
map.placeObject(map.getWidth()-11, 11, 'block');
map.placeObject(map.getWidth()-11, 10, 'block');

map.placeObject(map.getWidth()-10, 13, 'block');
map.placeObject(map.getWidth()-10, 10, 'block');

map.placeObject(map.getWidth()-9, 13, 'block');
map.placeObject(map.getWidth()-9, 10, 'block');
map.placeObject(map.getWidth()-9, 11, 'block');

And than just go for the exit from the top.

amahdy: Block-em, they are idiots

map.placeObject(map.getWidth()-5, 11, 'block');
map.placeObject(map.getWidth()-6, 11, 'block');
map.placeObject(map.getWidth()-6, 12, 'block');
map.placeObject(map.getWidth()-5, 13, 'block');
map.placeObject(map.getWidth()-6, 13, 'block');

Function Override

esolitos

function moveToward(obj, type) {
    obj.move('left');
}