Richard Davey
2813ac8162
Moved PluginManager and merged configs into single root file for easier changing.
2018-02-12 23:03:48 +00:00
Richard Davey
b6b8f70550
DisplayList now just extends List and removed the Plugin, as it acts as its own plugin now.
2018-02-12 16:59:57 +00:00
Richard Davey
5ad167a8bf
Added jsdocs
2018-02-12 16:18:34 +00:00
Richard Davey
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
fd9cf6c1f7
Added jsdocs
2018-02-12 15:18:31 +00:00
Richard Davey
bc87630d61
Added jsdocs.
2018-02-09 18:03:39 +00:00
Richard Davey
2a86400a28
Added in jsdocs
2018-01-31 13:54:44 +00:00
Richard Davey
f73d66a246
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-01-31 03:38:13 +00:00
Richard Davey
a802914243
Added in destroy methods for all managers and invoked them from Game
2018-01-31 03:38:10 +00:00
Felipe Alfonso
d9b04ef2e9
Light2D Plugin added to scene
2018-01-30 19:46:43 -03:00
Richard Davey
bc2263dbd4
Fixed Camera3D Plugin, exposed it via camera3d
in a Scene and added cameras to local array.
...
Closes #3188
2018-01-30 13:15:50 +00:00
Richard Davey
9988e4eb5b
Removed un-needed files and moved plugins around.
2018-01-26 05:21:45 +00:00
Richard Davey
123c8f8127
Calls to the Scene Manager that happen before the Scene is running are now queued
...
Thanks to gdomaradzki for bringing this one to my attention!
2018-01-23 02:12:33 +00:00
Richard Davey
f9cc2a9714
Scene now sets a status flag for every state it goes through, allowing the manager to know when to allow updating and rendering
2018-01-20 16:22:40 +00:00
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