Skip to content

Instantly share code, notes, and snippets.

View aquamoogle's full-sized avatar

Andrew Beers aquamoogle

View GitHub Profile
@aquamoogle
aquamoogle / robot.js
Created December 5, 2012 07:45 — forked from guilhermebruzzi/robot.js
r2d2
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.turn(270 - robot.angle);
robot.rotateCannon(90 - robot.cannonAbsoluteAngle);
robot.clone();
this.options = {
cloneInCorrectAngle: false,
firing: false