Skip to content

Instantly share code, notes, and snippets.

Avatar

Auzheal C. auz1111

View GitHub Profile
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.ahead(100);
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.ahead(100);
@auz1111
auz1111 / PlayCanvas Cube Demo
Created Jul 23, 2012
Rotates the cube in the PlayCanvas demo...
View PlayCanvas Cube 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 Jun 16, 2012
ImpactJS Player Entity for 2.5D Scrolling Platformer. Turn gravity off in main.js.
View player.js
ig.module (
'game.entities.player'
)
.requires(
'impact.entity'
)
.defines(function(){