Added physics game config getter

This commit is contained in:
Richard Davey 2017-08-15 23:34:39 +01:00
parent 8fd14688b6
commit 0a1e4e09cf

View file

@ -68,7 +68,6 @@ var Config = new Class({
// fps: {
// min: 10,
// target: 60,
// max: 120,
// forceSetTimeOut: false,
// deltaHistory: 10
// }
@ -87,6 +86,15 @@ var Config = new Class({
this.useTicker = GetValue(config, 'useTicker', false);
// Physics
// physics: {
// system: 'impact',
// worldBounds: (TODO)
// gravity: 0,
// cellSize: 64,
// }
this.physics = GetValue(config, 'physics', null);
// Default / Missing Images
var pngPrefix = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg';