wgge 2.0.1 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/game/GameController.js +3 -3
- package/game/GameModel.js +2 -0
- package/package.json +1 -1
package/game/GameController.js
CHANGED
package/game/GameModel.js
CHANGED
|
@@ -4,6 +4,7 @@ import ControlsModel from "./controls/ControlsModel";
|
|
|
4
4
|
import BoolValue from "../core/model/value/BoolValue";
|
|
5
5
|
import GlobalAudioModel from "../core/audio/global/GlobalAudioModel";
|
|
6
6
|
import AssetCache from "./assets/AssetCache";
|
|
7
|
+
import NullableNode from "../core/model/value/NullableNode";
|
|
7
8
|
|
|
8
9
|
export default class GameModel extends ObjectModel {
|
|
9
10
|
|
|
@@ -41,6 +42,7 @@ export default class GameModel extends ObjectModel {
|
|
|
41
42
|
super(false);
|
|
42
43
|
|
|
43
44
|
this.isInDebugMode = this.addProperty('isInDebugMode', new BoolValue(debugModeEnabled));
|
|
45
|
+
this.menu = this.addProperty('menu', new NullableNode());
|
|
44
46
|
this.viewBoxSize = this.addProperty('viewBoxSize', new Vector2());
|
|
45
47
|
this.assets = new AssetCache(this.resources);
|
|
46
48
|
this.audio = this.addProperty('audio', new GlobalAudioModel());
|