Skip to content

Instantly share code, notes, and snippets.

View auz1111's full-sized avatar

Auzheal C. auz1111

View GitHub Profile
@auz1111
auz1111 / robot.js
Created December 5, 2012 21:25
Galvatron
//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(100);
@auz1111
auz1111 / robot.js
Created December 5, 2012 21:23
Galvatron
//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(100);
@auz1111
auz1111 / PlayCanvas Cube Demo
Created July 23, 2012 07:49
Rotates the cube in the PlayCanvas demo...
pc.script.create("spinner", function (context) {
var Spinner = function (entity) {
// Cache the entity that this script instance affects
this.entity = entity;
};
Spinner.prototype.update = function (dt) {
// Retrieve the transformation matrix of the entity
var transform = this.entity.getLocalTransform();
@auz1111
auz1111 / player.js
Created June 16, 2012 17:56
ImpactJS Player Entity for 2.5D Scrolling Platformer. Turn gravity off in main.js.
ig.module (
'game.entities.player'
)
.requires(
'impact.entity'
)
.defines(function(){