Skip to content

Instantly share code, notes, and snippets.

@jsyrek
jsyrek / robot.js
Created December 5, 2012 04:20 — 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();
};
@jsyrek
jsyrek / robot.js
Created December 5, 2012 02:57 — forked from randompast/robot.js
QR-bot-009
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var rx = robot.position.x;
var ry = robot.position.y;
var aH = robot.arenaHeight;
var aW = robot.arenaWidth;
robot.clone()
};
@jsyrek
jsyrek / gist:4211713
Created December 5, 2012 02:54 — forked from cgardner/robot.js
derp
We couldn’t find that file to show.
@jsyrek
jsyrek / robot.js
Created December 5, 2012 01:32
bot1
var target = false;
var wall = false;
//FightCode can onl
var Robot = function(robot) {
///////robot.rotateCannon(90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.clone();
@jsyrek
jsyrek / robot.js
Created December 5, 2012 01:12 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
//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.clone();
@jsyrek
jsyrek / gist:4210847
Created December 5, 2012 00:53 — forked from jgaNet/robot.js
0
We couldn’t find that file to show.
@jsyrek
jsyrek / robot.js
Created December 5, 2012 00:50 — forked from nickspear/robot.js
Spear One
var Robot = function(robot) {
this.direct = true;
this.knownEnnemy = [];
this.area = 0;
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
@jsyrek
jsyrek / robot.js
Created December 4, 2012 11:44 — forked from randompast/robot.js
QR-bot-009
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var rx = robot.position.x;
var ry = robot.position.y;
var aH = robot.arenaHeight;
var aW = robot.arenaWidth;
robot.clone()
};