This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Script: actor.js | |
* Written by: Radnen | |
* Updated: 5/10/2012 | |
**/ | |
function Actor(name) | |
{ | |
this.name = name; | |
this.dx = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Actor(name) | |
{ | |
this.name = name; | |
this.dx = 0; | |
this.dy = 0; | |
} | |
Actor.prototype = { | |
get angle() { return GetPersonAngle(this.name); }, | |
set angle(val) { SetPersonAngle(this.name, val); }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: update.bat | |
::--------------------------------------------------------- | |
:: A batch script that updates all git repos in a directory | |
:: By: Andrew Helenius - September 11th, 2014 | |
::--------------------------------------------------------- | |
:: | |
:: In order to work git must be in your PATH | |
:: | |
:: Caveats: | |
:: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Script: query.js | |
* Written by: Radnen | |
* Updated: 12/28/2013 | |
**/ | |
var Query = { | |
results: [], | |
/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _GPL = GetPersonList; | |
GetPersonList = function() { | |
if (GetPersonList.updated) { | |
GetPersonList.list = _GPL(); | |
GetPersonList.updated = false; | |
} | |
return GetPersonList.list; | |
} | |
GetPersonList.updated = true; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Script: analogue.js | |
* Written by: Radnen | |
* Updated: 6/28/2013 | |
**/ | |
/* | |
A lightweight alternative, and fully-compatible version | |
of tung's persist code. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Random(seed) { | |
const MAX = 2147483647; | |
const MULT = 48271; | |
const Q = Math.floor(MAX / MULT); | |
const R = Math.floor(MAX % MULT); | |
this.seed = seed || Date.now(); | |
this.next = function() { | |
var t = MULT * (this.seed % Q) - R * (this.seed / Q); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Script: BinaryTree.js | |
* Written by: Radnen | |
* Updated: 10/27/2011 | |
**/ | |
function TreeNode(object) | |
{ | |
this.data = object; | |
this.left = null; |