Commit graph

127 commits

Author SHA1 Message Date
Richard Davey
be330e609e Moved PluginManager to new location 2018-05-10 17:14:33 +01:00
Richard Davey
b1d41e506f Typo fix 2018-05-09 12:11:29 +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
a14ce15685 Fixed setActive and setVisible 2018-05-01 12:35:56 +01:00
Richard Davey
e1532b3154 The Scene Systems will emit a ready event when it has fully finished starting up and all plugins are available. Fix #3636 2018-05-01 12:22:18 +01:00
Richard Davey
425acd3f63 Fixed moveAbove and moveBelow 2018-05-01 01:23:34 +01:00
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