This file contains 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
// Source From http://davidwalsh.name/convert-xml-json | |
// Changes XML to JSON | |
function xmlToJson(xml) { | |
// Create the return object | |
var obj = {}; | |
if (xml.nodeType == 1) { // element | |
// do attributes |
This file contains 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
// Example CGLM usage: | |
ZAP.CGLM | |
.setMode('custom') | |
.mode | |
.setFPS(30) | |
.setTimeStep(10) | |
.setSpeedX(1); | |
function priorityOne(dt, stats){ |