Skip to content

Instantly share code, notes, and snippets.

Bruno Pinto bpinto

View GitHub Profile
@bpinto
bpinto / robot.js
Created Dec 5, 2012 — forked from Shipow/robot.js
Shipow#001
View robot.js
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();
};
@bpinto
bpinto / robot.js
Created Dec 5, 2012 — forked from fabiopimentel/robot.js
[CAELUM TEAM]Megatron
View robot.js
//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();
@bpinto
bpinto / robot.js
Created Dec 7, 2012 — forked from Firvagor/robot.js
W00t #1 YEAH!!!! (Zolmesiter)
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.