src/gamecontroller.js
function( value, axis ){
			if( !value ) return 0;
			if( typeof value === 'number' ) return value;
			// a percentage
			return parseInt(value, 10) / 100 *
				(axis === 'x' ? this.canvas.width : this.canvas.height);
		}
function( value, axis ){
			if( !value ) return 0;
			if( typeof value === 'number' ) return value;
			// a percentage
			return parseInt(value, 10) / 100 *
				(axis === 'x' ? this.canvas.width : this.canvas.height);
		}
function ( value , axis ) { if ( ! value ) return 0 ; if ( typeof value === 'number' ) return value ; // a percentage return parseInt ( value , 10 ) / 100 * ( axis === 'x' ? this . canvas . width : this . canvas . height ) ; }
Returns the scaled pixels. Given the value passed
@param {int/string} value - either an integer for # of pixels,
or 'x%' for relative
@param {char} axis - x, y
Returns the scaled pixels . Given the value passed