Richard Davey
c34648bbce
Removed the resize method.
2019-01-11 16:43:39 +00:00
Richard Davey
4b1c762296
Updated @memberOf to @memberof
2018-10-10 10:49:13 +01:00
Richard Davey
a9063604dc
Replace @readOnly with @readonly
2018-10-09 13:40:00 +01:00
Richard Davey
0d497fd2be
Fixed Scene restart shutdown flow
2018-09-14 18:05:14 +01:00
Richard Davey
aeda1c042b
If a Scene is already active (i.e. running) and you call start
on it (such as from another Scene) then it will shutdown the Scene first, before starting it again.
2018-09-13 16:32:02 +01:00
Richard Davey
d0f3d85cbd
Iterate from front to back for destroy
2018-07-31 11:33:38 +01:00
Richard Davey
4bdecf488b
jsdocs tweaks
2018-07-26 23:41:52 +01:00
Richard Davey
f2290abf9b
Added new customViewports counter
2018-07-26 23:05:08 +01:00
Richard Davey
f1190529d2
ScenePlugin.start
and ScenePlugin.restart
will now always queue the op with the Scene Manager, regardless of the state of the Scene, in order to avoid issues where plugins carry on running for a frame before closing down. Fix #3776
2018-06-26 16:35:45 +01:00
Richard Davey
b95f980023
Added in data object passing to all relevant methods #3748
2018-06-26 16:08:14 +01:00
Richard Davey
1d4a15f297
Merge pull request #3748 from rook2pawn/wake-resume-data-from-run
...
[feat] scene.run can now pass data to .wake and .resume if it needs
2018-06-26 15:28:50 +01:00
rook2pawn
b040146b4a
simplified logic on queueOp starting an unready scene
2018-06-22 03:55:21 -07:00
rook2pawn
dd53268a23
removed superfluous queue stop
2018-06-22 03:37:14 -07:00
rook2pawn
c09b4baf16
[fix] sceneManager run will queueOp if scene not ready
...
fixed linting
2018-06-22 03:37:14 -07:00
rook2pawn
44a0813591
[feat] scene.run can now pass data to .wake and .resume if it needs to invoke those methods
...
update javadoc for scene and scene systems
2018-06-22 03:32:17 -07:00
Richard Davey
19eb363a84
Only set Scene status to running if still in creating
2018-06-13 17:27:30 +01:00
Richard Davey
eb8d3ccdf1
No longer injects update
into a Scene, and now calls step
from init onwards.
2018-06-12 16:21:17 +01:00
Richard Davey
43fd10bbc1
ScenePlugin.run
is a new method that will run the given Scene and not change the state of the current Scene at all. If the scene is asleep, it will be woken. If it's paused, it will be resumed. If not running at all, it will be started.
2018-06-08 15:07:00 +01:00
Richard Davey
0415dfbb7e
lint fixes
2018-05-04 15:16:20 +01:00
Richard Davey
ebf77e2bbc
The Scene Settings payload property has changed from files
to pack
and now follows the Pack File format.
2018-05-04 14:33:28 +01:00
Richard Davey
425acd3f63
Fixed moveAbove and moveBelow
2018-05-01 01:23:34 +01:00
Richard Davey
a07cc81806
Fixed passing of data for freshly added Scenes
2018-04-25 17:14:10 +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
b28a7276f4
Fixed Game.destroy
2018-04-16 17:02:32 +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
Pavle Goloskokovic
433247f515
Unlocking sound manager after preloading any scene when using HTML5 audio
2018-04-14 17:47:29 +02:00
Richard Davey
b519e24279
lint fix
2018-04-14 04:27:39 +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
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
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
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
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
pixelhijack
e728f3a1b9
[ISSUE #3363 ] Phaser Scene - passing data to scene init & create methods
2018-03-29 21:40:32 +02: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
Arkadiusz Buras
e981932db1
Remove scene key in SceneManager
2018-03-17 13:42:42 +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
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
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