Richard Davey
5d3c06d8b7
ScenePlugin.getIndex will return the index of the given Scene in the Scene List.
2018-05-01 01:23:19 +01:00
Richard Davey
a07cc81806
Fixed passing of data for freshly added Scenes
2018-04-25 17:14:10 +01:00
Daniel
2c584d3d0e
Fill all description tags in GetPhysicsPlugins.js
2018-04-22 16:50:09 +10:00
Richard Davey
b0544c73b8
jsdoc fixes
2018-04-18 13:29:22 +01:00
Richard Davey
55965c748f
jsdoc fixes
2018-04-18 12:13:49 +01:00
Richard Davey
529cdedc70
Re-enabled getScene. #3579
2018-04-17 15:07:54 +01:00
Richard Davey
1be486fab4
destroy
only called once, no matter how many times the Scene restarts. Fix #3581
2018-04-17 12:25:45 +01:00
Richard Davey
1507dcf448
eslint fix
2018-04-16 17:16:07 +01:00
Richard Davey
b28a7276f4
Fixed Game.destroy
2018-04-16 17:02:32 +01:00
Richard Davey
b392dee5a9
More jsdoc fixes
2018-04-16 15:11:51 +01:00
Richard Davey
bd023c20df
Clear listeners on shutdown, tighten up the flow and allow you to remove a scene after transition
2018-04-15 23:14:56 +01:00
Richard Davey
ce7d67297f
Moving from 3.4.1 to 3.5.0 so we can release new camera fx and scene transitions
2018-04-15 12:44:47 +01:00
Pavle Goloskokovic
d87daba379
Merge remote-tracking branch 'origin/master'
2018-04-14 18:56:45 +02:00
Pavle Goloskokovic
433247f515
Unlocking sound manager after preloading any scene when using HTML5 audio
2018-04-14 17:47:29 +02:00
Richard Davey
a56465fdad
jsdoc tweak
2018-04-14 12:35:28 +01:00
Richard Davey
2b4e5ecd23
Is scene is asleep, wake it rather than start it
2018-04-14 04:28:39 +01:00
Richard Davey
b519e24279
lint fix
2018-04-14 04:27:39 +01:00
Richard Davey
352ec91bb5
New methods to determine if a Scene is transitioning
2018-04-14 04:24:21 +01:00
Richard Davey
2a73964399
Added new transition properties
2018-04-14 04:24:05 +01:00
Richard Davey
370fbdd5f2
Added transition progress, sleep support and better checking
2018-04-14 04:23:57 +01:00
Richard Davey
2698fe1b58
Clear out the transition events
2018-04-14 04:23:24 +01:00
Richard Davey
616d17fa83
Sorted out the scene event order, targets and callbacks
2018-04-13 20:12:29 +01:00
Richard Davey
cfb1826da9
Added new test feature
2018-04-13 18:59:00 +01:00
Richard Davey
18a6cf8ad1
eslint fixes
2018-04-13 18:09:16 +01:00
Richard Davey
6b2307594a
Scene plugin flow overhaul
...
Every Plugin has been updated to correctly follow the same flow through the Scene lifecycle. Instead of listening for the Scene 'boot' event, which is only dispatched once (when the Scene is first created), they will now listen for the Scene 'start' event, which occurs every time the Scene is started. All plugins now consistently follow the same Shutdown and Destroy patterns too, meaning they tidy-up after themselves on a shutdown, not just a destroy. Overall, this change means that there should be less issues when returning to previously closed Scenes, as the plugins will restart themselves properly.
2018-04-13 17:12:17 +01:00
Richard Davey
623df29522
The Scene Manager would never reach an isBooted
state if you didn't add any Scenes into the Game Config. Fix #3553
2018-04-13 12:24:02 +01:00
Sebastian Warmbrunn
968c0a3aec
Add typedef for new scene config option mapAdd
...
Also add a description for mapAdd and map config options.
2018-04-09 21:32:19 +02:00
Sebastian Warmbrunn
593245742e
Add a config to merge keys into scene InjectionMap
...
This way the defaults of the scene injection map are kept and the user
is able to merge with those defaults.
2018-04-09 21:16:45 +02:00
Richard Davey
ca2097f4e2
Recoded how the boot data and processing works to allow for more flexibility when setting-up scenes. Updates #3470
2018-04-09 12:57:47 +01:00
Richard Davey
66a9bec9bb
Only set data if it's not undefined.
2018-04-09 12:57:03 +01:00
Richard Davey
bf368ab70b
ScenePlugin.restart allows you to restart the current Scene. It's the same result as calling ScenePlugin.start
without any arguments, but is more clear.
2018-04-09 12:56:28 +01:00
Richard Davey
a0dcfdd3fc
Merge pull request #3470 from pixelhijack/fix-issue-3363
...
[ISSUE #3363 ] Phaser Scene - passing data to scene init & create methods
2018-04-09 10:20:57 +01:00
Eirik S Korsnes
798356cb64
jsdoc: fix correct type reference on Scene#load
2018-04-04 20:19:21 +02:00
Richard Davey
c1e5aa72ef
Added jsdocs for TS defs export
2018-04-03 15:08:48 +01:00
Chris Andrew
f3675b6085
Added a missing full stop. 🚀
2018-04-02 18:43:41 +01:00
Chris Andrew
e047977f52
Documented the ScenePlugin class.
2018-04-02 18:29:23 +01:00
Chris Andrew
7eb0342663
Documented the SceneManager.
2018-04-02 18:01:17 +01:00
Richard Davey
d8e378b052
Updated comments
2018-03-30 17:01:29 +01:00
Richard Davey
89c963c19c
Ignore consts
2018-03-30 14:38:58 +01:00
pixelhijack
e728f3a1b9
[ISSUE #3363 ] Phaser Scene - passing data to scene init & create methods
2018-03-29 21:40:32 +02:00
Richard Davey
91008232ad
jsdoc fixes
2018-03-29 13:12:07 +01:00
Richard Davey
f1e646c9ee
jsdoc fixes
2018-03-28 15:39:57 +01:00
orblazer
ed1f2a7011
Fix wrong types
2018-03-22 13:51:30 +01:00
orblazer
dcd80375c0
Fix "object" types on Renderer and Scene
2018-03-21 14:41:17 +01:00
orblazer
7fba122321
Fix "any" types
2018-03-20 17:15:49 +01:00
orblazer
44103dc475
Fix remaining multiple types
2018-03-20 16:12:42 +01:00
orblazer
4cff464555
Fix nullable types
2018-03-20 15:36:03 +01:00
Richard Davey
4fe6a25117
Added jsdoc data types
2018-03-19 11:25:46 +00:00
orblazer
6a4dd8db8f
Update JSDoc on Renderer and Scene
2018-03-19 01:59:59 +01:00
Arkadiusz Buras
e981932db1
Remove scene key in SceneManager
2018-03-17 13:42:42 +01:00
Richard Davey
a524dc44b0
Expose constants. Fix #3387
2018-03-16 13:29:30 +00:00
Richard Davey
a6d742227c
Merge pull request #3394 from stuff/patch-2
...
pass data to the manager queue when starting a scene
2018-03-16 13:00:25 +00:00
Nicolas Challeil
53de26e572
pass data to the manager queue
2018-03-14 23:52:00 +01:00
samme
55ccf7f026
Remove unused callbacks in createSceneFromObject
...
Phaser never calls 'shutdown' or 'destroy' methods.
2018-03-14 13:28:04 -07:00
Richard Davey
7adcb66267
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-09 15:42:27 +00:00
Richard Davey
db3112de31
The SceneManager.render will now render a Scene as long as it's in a LOADING state or higher. Before it would only render RUNNING scenes, but this precluded those that were loading assets.
2018-03-09 15:33:07 +00:00
migiyubi
decbe18705
Make scene restartable
2018-03-08 20:27:22 +09:00
Richard Davey
1e6bfe660f
Removed accidental overwrite of the object key #3185
2018-03-05 16:58:59 +00:00
Richard Davey
5168300463
The SceneManager now employs a new queue for all pending Scenes, creating them and booting them in strict sequence. This should prevent errors where Scenes were unable to reference other Scenes further down the boot list in their create functions. Fix #3314
2018-03-05 14:48:30 +00:00
Richard Davey
7c16368d3e
SceneManager uses new internal boot queue.
2018-03-05 14:11:42 +00:00
Richard Davey
ae1c91cf6a
eslint fixes
2018-03-05 01:40:11 +00:00
Richard Davey
95d85576c9
SceneManager.moveAbove and moveBelow added.
...
SceneManager.moveAbove will move a Scene to be directly above another Scene in the Scenes list. This is also exposed in the ScenePlugin.
SceneManager.moveBelow will move a Scene to be directly below another Scene in the Scenes list. This is also exposed in the ScenePlugin.
2018-03-02 18:25:44 +00:00
Richard Davey
9a6e6265e8
The SceneManager no longer renders a Scene unless it is visible AND either running or paused. This now skips Scenes that are in an init
state.
2018-03-02 17:48:45 +00:00
Richard Davey
a993251dea
ScenePlugin.swapPosition now allows you to use it to swap the positions of any two Scenes. Before the change it only allowed you to swap the position of the calling Scene and another one, but a new optional keyB
argument opens this up.
2018-03-02 17:47:01 +00:00
Richard Davey
98930de3a8
The SceneManager has a new method: remove
which allows you to remove and destroy a Scene, freeing up the Scene key for use by future scenes and potentially clearing the Scene from active memory for gc.
2018-03-02 03:50:55 +00:00
Richard Davey
63e5681073
Merge pull request #3287 from gaudeon/master
...
BugFix for ScenePlugin.launch, data now passed to queued scenes
2018-02-28 20:47:51 +00:00
srobertson421
66e881c7eb
swapped queue loop to use _queue prop rather than queueLength var
2018-02-28 12:25:43 -08:00
Richard Davey
e6059f65cd
SceneManager invokes resize method on all Systems.
2018-02-28 17:18:55 +00:00
Richard Davey
e44ce76214
Scene.Systems resize handler added.
2018-02-28 17:18:40 +00:00
Travis Chase
ca0366bfc8
launching a scene that is not running will now pass data through when start op is called for this scene in the scene process queue
2018-02-26 22:04:58 -07:00
AleBles
697d096221
Added data to ScenePlugin, fixes #3180
2018-02-22 12:34:19 +01:00
Rafael Barbosa Lopes
7d64c12e66
Removed unused queue property in ScenePlugin
.
2018-02-19 10:00:52 -03:00
Richard Davey
d23688c3e4
Added eslint fixes and overrides
2018-02-16 18:44:07 +00:00
Richard Davey
8f4a1012fd
Updated jsdocs.
2018-02-13 01:39:22 +00:00
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