Skip to content

Instantly share code, notes, and snippets.

Sergey Schetinin maluke

View GitHub Profile
@maluke
maluke / robot.js
Created Dec 3, 2012
Zolmesiter fork
View robot.js
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
//robot.turnGunRight(90);
robot.clone();
this.direction = 1;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(1);
if (robot.parentId) {
You can’t perform that action at this time.