Skip to content

Instantly share code, notes, and snippets.

View MauMaGau's full-sized avatar

Dave Townsend MauMaGau

View GitHub Profile
@MauMaGau
MauMaGau / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@MauMaGau
MauMaGau / robot.js
Created December 5, 2012 19:39
Baleted
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {
@MauMaGau
MauMaGau / robot.js
Created December 5, 2012 19:37 — forked from Shipow/robot.js
Application Error
var enemyWallbot = false;
var Robot = function(robot) {
robot.clone()
if(robot.parentId==null){
robot.turn(180);
robot.rotateCannon(180);
}
};
@MauMaGau
MauMaGau / gist:4208827
Created December 4, 2012 21:22 — forked from randompast/robot.js
QR-bot-009
We couldn’t find that file to show.
@MauMaGau
MauMaGau / robot.js
Created December 4, 2012 20:09 — forked from cgardner/robot.js
MauMaGau Return of the Mau
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.clone();
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if(robot.parentId) {
@MauMaGau
MauMaGau / robot.js
Created December 4, 2012 16:16 — forked from folkien/robot.js
Maumagau strikes again
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
//robot.clone();
enemyWallbot = false;
onWall = false
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;