Richard Davey
f676fc2bbd
Recoded the SceneManage
...
The Scene Manager no longer tries to maintain an 'active' list and instead just iterates the scenes in order, skipping those that aren't awake. Scene array changing events like moveUp etc are queued if the list is being processed and the ScenePlugin has been vastly updated to take care of this. You can now happily move scenes around the list, block scene input, consume input events, switch scenes around and more.
2018-01-20 04:47:03 +00:00
Richard Davey
2b4d6f17c8
Removed unused consts
2018-01-20 04:45:27 +00:00
Richard Davey
2f1ee57505
Fixed event handler.
2018-01-19 19:13:11 +00:00
Richard Davey
7e0b04df70
You can now specify Loader settings (baseURL, path, xhr settings, etc) in either the Game Config, the Scene Config or a File Config. Game config is used as the defaults. Scene config overrides those, and a File config overrides the Scene config. This fixes #3168 .
2018-01-19 16:56:41 +00:00
Richard Davey
25089f66fd
Scene will now be made active as soon as it has init'd, not after the load is complete. This allows a scene to render while loading assets.
2018-01-19 16:30:05 +00:00
Richard Davey
fb7cdbf29b
Added ability to load plugins from external files and have them register with the PluginManager.
2018-01-18 16:48:25 +00:00
Richard Davey
2deb9edc9e
Plugins now check to see if the Scene is already booted and adapt accordingly.
2018-01-18 14:00:31 +00:00
Richard Davey
69dbe38c9f
Scene.Systems keeps track of it's booted, so plugins know how to respond to the boot event (or not). You can now also load a plugin into a Scene at runtime.
2018-01-18 13:59:37 +00:00
Richard Davey
3bb6099c6d
Fixed key issue
2018-01-18 05:33:54 +00:00
Richard Davey
c8d859c6a4
Systems now does everything based on events and config files, no more creation of its own plugins
2018-01-18 05:20:57 +00:00
Richard Davey
43d7e0fa0e
Exposed the global and core plugins and updated the injection map
2018-01-18 05:20:33 +00:00
Richard Davey
53ec770696
Renamed to the correct class name: ScenePlugin
2018-01-18 05:20:00 +00:00
Richard Davey
0a523062f5
Exposed the Scene files via their own export
2018-01-18 05:19:42 +00:00
Richard Davey
776d178b38
Scene settings now checks for a plugins array
2018-01-18 05:18:45 +00:00
Richard Davey
e017a71f32
Game emits a boot event, which its managers listen for
2018-01-18 05:16:52 +00:00
Richard Davey
ddba95873d
Moved Arcade and Impact Physics over to the new plugin system
2018-01-17 03:41:58 +00:00
Richard Davey
a7bd9482fd
Fixed input injection
2018-01-16 23:18:02 +00:00
Richard Davey
f9a7939812
Lots of work migrating to the new plugin system, fixing references and exposing on the namespace
2018-01-16 22:28:29 +00:00
Richard Davey
8e07320596
Migrating to plugins
2018-01-16 19:49:13 +00:00
Richard Davey
ca7550aa6f
Moved plugins
2018-01-16 18:38:29 +00:00
Richard Davey
674c1b5ba8
Moving plugins to their own locations
2018-01-16 18:34:37 +00:00
Richard Davey
570cbde7da
Renamed SceneManager.
2018-01-16 16:33:30 +00:00
Richard Davey
17336a20de
Merged source.
2018-01-16 16:29:58 +00:00
Richard Davey
26fd3ee661
Renamed input manager files and refs.
2018-01-16 16:14:21 +00:00
Richard Davey
be756ed7fc
Renamed folder camera
to cameras
and split up the contents into proper namespaces. Merged inc files back into classes.
2018-01-16 15:07:04 +00:00
Richard Davey
4240f6c4af
Converted to use the new plugin format
2018-01-16 02:08:22 +00:00
Richard Davey
f9a1e27334
Removed un-used event files and references.
2018-01-12 17:20:16 +00:00
Richard Davey
c625b8735b
Updated to using Event Emitter for all key managers and game objects. Events are now dispatched directly using arguments instead of Event objects, all managers updated to emit directly.
2018-01-12 17:09:21 +00:00
Richard Davey
e601f4060a
Exposed SoundManager via Scene Systems
2018-01-11 14:48:43 +00:00
Richard Davey
718859b02e
Moved the depth sorting functions into the DisplayList class, as it's really the one responsible for it, not System.
2018-01-11 13:59:06 +00:00
Richard Davey
04b8f4203e
Started moving plugins to their own folders.
2018-01-10 16:29:46 +00:00
Richard Davey
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00