/* * No explanation. */this.on('start',function(){this.thrusters.top(true);});this.on('sensor:bottom',function(){this.thrusters.left(true);this.thrusters.right(false);});this.on('sensor:right',function(){this.thrusters.bottom(true);this.thrusters.top(false);});this.on('sensor:left',function(){this.thrusters.right(false);this.thrusters.bottom(false);this.thrusters.top(true);});this.on('sensor:top',function(){this.thrusters.left(false);this.thrusters.bottom(false);this.thrusters.right(true);});
Comments (2)
Timothy Pettersen
Nice work!
Liru Færs
Thanks!
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.
Nice work!
Thanks!