mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +00:00
Added physics game config getter
This commit is contained in:
parent
8fd14688b6
commit
0a1e4e09cf
1 changed files with 9 additions and 1 deletions
|
@ -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';
|
||||
|
||||
|
|
Loading…
Reference in a new issue