phaser/src/scene/InjectionMap.js

33 lines
748 B
JavaScript
Raw Normal View History

// These properties get injected into the Scene and map to local systems
// The map key is the property that is added to the Scene, the value is the Scene.Systems reference
2017-08-15 22:37:00 +00:00
// These defaults can be modified via the Scene config object
var InjectionMap = {
game: 'game',
anims: 'anims',
cache: 'cache',
registry: 'registry',
2018-01-11 14:48:43 +00:00
sound: 'sound',
textures: 'textures',
add: 'add',
cameras: 'cameras',
children: 'displayList',
data: 'data',
events: 'events',
impact: 'impactPhysics',
2018-01-16 23:18:02 +00:00
input: 'input',
load: 'load',
make: 'make',
matter: 'matterPhysics',
physics: 'arcadePhysics',
scene: 'sceneManager',
time: 'time',
tweens: 'tweens'
};
module.exports = InjectionMap;