Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 313 Bytes

11_robot.md

File metadata and controls

16 lines (14 loc) · 313 Bytes

Autonomous Robot

donmccurdy

    map.defineObject('robot', {
        // ...
        'behavior': function (me) {
            if (me.canMove('down')) {
            	me.move('down');
            } else if (me.canMove('right')) {
            	me.move('right');
            }
        }
    });