Commit graph

245 commits

Author SHA1 Message Date
Richard Davey
7e30ff32be Phaser.Scene.renderer is a new property available in every Phaser.Scene that gives you a reference to the renderer, either Canvas or WebGL. 2020-10-27 13:42:45 +00:00
Richard Davey
605ea31146 SceneManager.start will now reset the SceneSystems.sceneUpdate reference to NOOP. This gets set back to the Scene update method again during bootScene (if it has one) and stops errors with external plugins and multi-part files that may trigger update before create has been called. Fix #4629 2020-10-16 16:39:30 +01:00
Richard Davey
9cd4c1bb0a Refactored to use local vars 2020-09-11 16:27:21 +01:00
Richard Davey
07865a5823 Final set of namespace changes. Fix #5062 2020-09-01 20:28:42 +01:00
Richard Davey
ae4ed0ac54 Expose the new events 2020-08-24 19:13:18 +01:00
Richard Davey
48f94be449 Scenes.Events.REMOVED_FROM_SCENE is a new event, emitted by a Scene, when it a Game Object is removed from the display list in the Scene, or a Container that is on the display list. 2020-08-24 19:13:06 +01:00
Richard Davey
1423ade7b3 Scenes.Events.ADDED_TO_SCENE is a new event, emitted by a Scene, when a new Game Object is added to the display list in the Scene, or a Container that is on the display list. 2020-08-24 19:12:54 +01:00
Richard Davey
3484ded2b7 You can now use this.renderer from within a Scene, as it's now a Scene-level property and part of the Injection Map. 2020-08-22 10:33:46 +01:00
Richard Davey
56084dfa89
Merge pull request #5172 from lozzajp/quick-doc-fix
Add info to the scene manager method headers where optional data goes.
2020-07-13 12:36:51 +01:00
Laurence
1238727256 Add info to the scene manager method headers where data is passed to (Scene.init and Scene.create) 2020-05-29 08:18:43 +01:00
samme
9ffa3bd262 Remove spurious assignment 2020-05-24 22:25:21 -07:00
Richard Davey
598356dfef
Merge pull request #5048 from samme/docs/PackFileSection
Add Phaser.Types.Loader.FileTypes.PackFileSection
2020-04-27 12:16:34 +01:00
Richard Davey
ab7b7b19a4
Merge pull request #5066 from samme/fix/5065-scene-update-before-create
Fix scene update before create
2020-04-27 12:15:41 +01:00
Richard Davey
d2dce27e25
Merge pull request #5082 from MrMadClown/master
#5078
2020-04-27 12:09:36 +01:00
lucap
6e30293142 #5078
- updated description of data in the SceneTransitionConfig definition
2020-04-14 07:33:23 +02:00
lucap
ace0e200e4 #5078
- passing the data from the transition to the System.wake method
- added missing property to the SceneTransitionConfig definition
2020-04-08 20:20:01 +02:00
samme
f6dfb9a278 Reset sceneUpdate in boot
Fixes #5065
2020-04-01 13:12:25 -07:00
samme
037d3f1823 Description for pack property 2020-03-18 10:24:59 -07:00
samme
f39e3d8f10 Add Phaser.Types.Loader.FileTypes.PackFileSection
Correct types in Scenes.SettingsConfig, Scenes.SettingsObject

Fixes #5046
2020-03-17 17:25:42 -07:00
halilcakar
43f26ad31f Update JSDocs for events 2020-03-10 11:11:43 +03:00
Richard Davey
20fabba0b9 Impact Physics is now removed from the core API 2020-02-04 14:52:04 +00:00
Richard Davey
ff65e69cd1 Changed copyright date to 2020 2020-01-15 12:07:09 +00:00
Richard Davey
57defcdb9b Typo 2020-01-15 11:15:30 +00:00
Richard Davey
847abb0ef2 Scene.Systems.getData is a new method that will return any data that was sent to the Scene by another Scene, i.e. during a run or launch command. You can access it via this.sys.getData() from within your Scene. 2020-01-14 23:29:14 +00:00
samme
b28f45b609 Docs for Phaser.Scenes.ScenePlugin
- Note operations are queued
- https://github.com/photonstorm/phaser/issues/4403#issuecomment-481264025
2020-01-03 13:44:07 -08:00
Richard Davey
657200226a SceneManager.run (and consequently ScenePlugin.run) was using an out-dated way of checking if a Scene was paused before trying to resume it, causing a Scene to be started again instead of resumed. It now uses the Systems.isPaused function instead. Fix #3931 2019-10-15 11:53:43 +01:00
Richard Davey
ab924492b5 Added optional data object to stop method 2019-10-11 13:31:56 +01:00
Richard Davey
eca54ab2a3 Updated docs 2019-10-11 13:31:44 +01:00
Seth Berrier
6735c8e0a6 Feature/Fix for issue #4510
- Passes through data parameter to Stop()
2019-10-03 12:08:43 -05:00
Richard Davey
8c18699e74 A hasOwnProperty check has been applied to the SceneManager.createSceneFromObject method when parsing additional properties in the extend object 2019-09-26 12:24:59 +01:00
Richard Davey
ca74b85b75 Better Sound Manager type 2019-08-07 18:20:19 +01:00
samme
4ae2280dba New types for the optional scene methods 2019-06-27 12:04:51 -07:00
samme
9a3340ff7c Exit if scene was removed during create() 2019-06-14 13:00:13 -07:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
f9315bac3f Updated Scene config types 2019-05-10 14:39:35 +01:00
Richard Davey
a6341a97a8 Fixed Types references 2019-05-09 15:32:53 +01:00
Richard Davey
1dca2c2c8a Scenes Types 2019-05-09 12:37:37 +01:00
Richard Davey
e556cd9c68 Camera Types 2019-05-09 11:49:44 +01:00
Richard Davey
c6dc93dba0 Added missing plugins jsdoc hook 2019-05-08 22:13:04 +01:00
Richard Davey
935a9814ca Check SoundManager exists before accessing it. Fix #4428 2019-05-03 17:42:45 +01:00
Richard Davey
e05ff03ed0 Added Systems.renderer reference 2019-04-25 11:30:10 +01:00
Richard Davey
8c55844f6c
Merge pull request #4469 from samme/docs/scenes
Docs for scene config and optional scene methods
2019-04-16 13:24:49 +01:00
samme
f9797d0ed0 Add Phaser.Scenes.Types.CreateSceneFromObjectConfig 2019-04-10 12:43:44 -07:00
samme
698fc7d522 Docs for Scene methods
Added descriptions and arguments.
2019-04-10 12:43:00 -07:00
Richard Davey
88c8bb1bc2 Update docs to clarify #4403 2019-04-08 14:52:13 +01:00
Richard Davey
6fc05bf53b
Merge pull request #4404 from samme/feature/isPaused
Add isPaused() methods to ScenePlugin, SceneManager
2019-04-05 17:40:37 +01:00
Richard Davey
0ee2442597 Bumping to 3.17.0 2019-03-07 12:31:06 +00:00
samme
0d1e0f203d Add isPaused() methods to ScenePlugin, SceneManager 2019-02-27 12:23:02 -08:00
samme
0b2658c1b0 Docs descriptions for the isActive() methods 2019-02-27 12:19:55 -08:00
Richard Davey
c15734f1bc A Scene will now emit the new CREATE event after it has been created by the Scene Manager. If the Scene has a create method this event comes after that, so is useful to knowing when a Scene may have finished creating Game Objects, etc. 2019-02-26 11:00:20 +00:00