Skip to content

Instantly share code, notes, and snippets.

View markcoleman's full-sized avatar

Mark Coleman markcoleman

View GitHub Profile
@markcoleman
markcoleman / robot.js
Created December 6, 2012 14:22 — forked from bchoii/robot.js
First Try
var Robot = function(robot) {
//\ robot.clone();
// this.mode = 'scanning';
};
var mode = 'scanning';
var targetVector = 0;
var lastFired = 0;
var iteration = 0;
@markcoleman
markcoleman / robot.js
Created December 6, 2012 13:15 — forked from Ghabriel/robot.js
Robot04
//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.rotateCannon(360);
//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(50);
@markcoleman
markcoleman / robot.js
Created December 5, 2012 14:59 — forked from Shipow/robot.js
Shipow#001
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};