Skip to content

Instantly share code, notes, and snippets.

@S3Mi
S3Mi / robot.js
Created December 4, 2012 19:28
bulbator_0.5
//DEPRECATED
var Robot = function(robot) {};
var angle = 20;
var curAngle = angle;
var targetingAngle = 10;
var idleCyclesWOEnemy = 0;
var cycles = 0;
var targetCycles = 3;
@S3Mi
S3Mi / robot.js
Created December 4, 2012 13:33
bulbator_v0.3
var Robot = function(robot) {};
var angle = 20;
var curAngle = angle;
var targetingAngle = 10;
var idleCyclesWOEnemy = 0;
var cycles = 0;
var targetCycles = 3;
var targeting = false;
@S3Mi
S3Mi / robot.js
Created December 4, 2012 13:31
Dupazaur
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(100);