Commit graph

297 commits

Author SHA1 Message Date
samme
7864024cbf Docs: correct cameras types
Phaser.Types.Scenes.SettingsConfig, Phaser.Types.Scenes.SettingsObject
2023-04-03 16:03:51 -07:00
samme
26726eaf05 Fix error stopping a scene without a loader 2023-03-19 09:13:46 -07:00
Richard Davey
468bf7821d Updated copyright year 2023-01-02 17:36:27 +00:00
Richard Davey
1302c1724f An inactive Scene is no longer updated after a Scene transition completes. Previously, it will still update the Scene one final time. This fix also prevents the POST_UPDATE event from firing after the transition is over. Fix #5550 2022-12-12 14:57:37 +00:00
Richard Davey
b5312b86fa The SceneManager.processQueue method will no longer return if a new Scene was added, after starting it. This allows any other queued operations to still be run in the same frame, rather than being delayed until the next game frame. Fix #5359 2022-12-12 14:51:05 +00:00
Richard Davey
4346113fee
Merge pull request #6238 from ubershmekel/master
Introduce `SceneType` for ease and correctness
2022-11-29 14:33:39 +00:00
Richard Davey
b28eaf8da7 Added generics to Scene Manager functions. Fix #5662 2022-11-17 22:13:24 +00:00
Richard Davey
b182557d03 Added canInput method 2022-11-08 23:21:25 +00:00
Yuval Greenfield
080a30d789 More accurate "since" version for SceneType.js 2022-10-10 10:08:50 -07:00
Richard Davey
07e0753e74 Fixed type def 2022-10-10 17:54:34 +01:00
Richard Davey
8f4b57a018
Merge pull request #6007 from rexrainbow/scene-transition-onstart
Add onStart parameter into scene.transition(config)
2022-10-10 14:47:23 +01:00
Richard Davey
5dd3a40342 Fixed data types 2022-10-09 18:11:00 +01:00
Richard Davey
c9e37ed373 Remove calls to resetTextures 2022-10-07 16:09:23 +01:00
Yuval Greenfield
7a4dd97793 Fix the typescript types in the js
This generates the desired phaser.d.ts
2022-10-04 10:48:21 -07:00
Richard Davey
d3de5ef1e4 SceneManager.systemScene` is a new property that is set during the game boot and is a system Scene reference that plugins and managers can use, that lives outside of the Scene list. 2022-09-27 23:39:04 +01:00
Richard Davey
023343c789 All events have a type of string. Fix #6136 2022-09-21 22:01:03 +01:00
Richard Davey
61545eb7e4 The SceneManager.moveAbove and moveBelow methods didn't check the order of the Scenes being moved, so moved them even if one was already above / below the other. Both methods now check the indexes first. Fix #6040 2022-05-06 17:00:59 +01:00
Richard Davey
c56c029c7c Updated jsdocs. Fix #6045 2022-05-06 16:38:19 +01:00
Richard Davey
ff093571e8 Fix #6080 2022-04-26 11:42:17 +01:00
Richard Davey
54c9b653ef
Merge pull request #6031 from arosemena/master
Fixed the type definition of SceneUpdateCallback
2022-04-14 16:20:30 +01:00
Roberto Arosemena
87c44cbad7
Added time parameters to SceneUpdateCallback typedef file 2022-03-04 10:45:26 -06:00
Richard Davey
82951cbc3f
Merge pull request #6028 from samme/feature/scene-start-changes
Improve the scene start logic
2022-03-04 16:34:22 +00:00
Rex
b1916a9d14 Add typedef of onStart parameter 2022-02-28 22:44:18 +08:00
Richard Davey
59fbcc5ca3 Updated copyright year 2022-02-28 14:29:51 +00:00
samme
683fc8cf06 Scene start changes
- Scenes starting, loading, or creating are not started
- Scenes sleeping are shutdown and then started
2022-02-22 17:29:05 -08:00
Rex
558589f851 Add onStart parameter into scene.transition(config)
It can define transition action of  scenes in a single scene.transition(config) call.
2022-02-15 10:10:33 +08:00
samme
0679f1aa64 Remove the load complete handlers when stopping a scene 2022-02-06 11:41:18 -08:00
Richard Davey
4f0232e8c8 Restored the 3.55.2 sound system + fixes for iOS 2022-02-04 16:59:13 +00:00
Emil Schnedler Vad
92694ac5ee fix sceneManager moveBelow and moveAbove
made the code account for that sceneA index decrement if SceneB is below it
2021-12-05 16:57:51 +01:00
samme
82d7861930 Fix the pause and sleep status checks 2021-12-01 14:38:15 -08:00
Richard Davey
31cbacbe20 Can only sleep a running scene 2021-12-01 21:24:03 +00:00
Richard Davey
067e6fd4f0 Scene.pause will now check to see if the Scene is in either a RUNNING or CREATING state and throw a warning if not. You cannot pause non-running Scenes. 2021-11-04 14:55:24 +00:00
Richard Davey
b8468c8bc2 Added getStatus method 2021-11-04 14:55:16 +00:00
Richard Davey
66939d0621 Clarify scene data in docs. Fix #5001 2021-10-29 17:53:57 +01:00
Richard Davey
39a06f241b The SceneManager.bootScene method will now always call LoaderPlugin.start, even if there are no files in the queue. This means that the Loader will always dispatch its START and COMPLETE events, even if the queue is empty because the files are already cached. You can now rely on the START and COMPLETE events to be fired, regardless, using them safely in your preload scene. Fix #5877 2021-10-25 18:48:38 +01:00
samme
787437c219 Docs: mark Scene config optional
Fixes #5874
2021-10-19 09:13:14 -07:00
Richard Davey
c84187b856
Merge pull request #5842 from samme/feature/scene-stop-abort
Ignore scene stop if already shutdown
2021-09-24 14:40:48 +01:00
samme
6df5b7e3a6 Ignore scene stop if already shutdown 2021-09-14 08:53:44 -07:00
Yuval Greenfield
1a713b4c5e Fix #5811, log error on invalid scene.start(key) 2021-09-03 23:11:29 -07:00
Richard Davey
5c8ecbcf99 Fixed jsdoc layout in #5631 2021-03-30 10:41:43 +01:00
samme
0482d4c563 Docs: fix scene events example code 2021-03-28 10:20:33 -07:00
Richard Davey
d3b188d670 The Scenes.Systems.install method has been removed. It's no longer required and would throw an error if called. Fix #5580 2021-03-24 16:43:40 +00:00
Richard Davey
c863a59223
Merge pull request #5569 from krotovic/feat/tsgen-this-function
Add support for `this` in function definitions
2021-03-24 16:06:25 +00:00
Richard Davey
a3bcf4beb1 Improved JSDocs 2021-02-23 17:12:12 +00:00
Lukáš Krotovič
f5f3411aac Add @this into CreateSceneFromObjectConfig callbacks 2021-02-19 08:48:16 +01:00
Richard Davey
372ca3bd4a Better JSDocs and types 2021-02-16 13:21:31 +00:00
Richard Davey
e96cab1784 Improved documentation. Fix #5554 2021-02-16 13:09:30 +00:00
Richard Davey
7cbf3840af SceneManager.loadComplete will no longer try to unlock the Sound Manager, preventing AudioContext was not allowed to start console warnings after each Scene finishes loading. 2021-02-16 12:59:08 +00:00
samme
7ba9d7ea8b Docs: update scene event flow (PRE_RENDER) 2021-01-30 11:02:42 -08:00
samme
1145fd41bb Add Phaser.Scenes.Events#PRE_RENDER event
By Phaser.Scenes.Systems#render
2021-01-30 11:02:42 -08:00