Richard Davey
350cb037b7
All systems now register themselves with the new PluginCache
2018-05-15 12:51:50 +01:00
Richard Davey
be330e609e
Moved PluginManager to new location
2018-05-10 17:14:33 +01:00
Richard Davey
b0544c73b8
jsdoc fixes
2018-04-18 13:29:22 +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
07a55e5d1f
Removed debug call and merged Scene Systems boot and start sequences. Fix #3579
2018-04-17 02:34:07 +01:00
Richard Davey
b392dee5a9
More jsdoc fixes
2018-04-16 15:11:51 +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
Richard Davey
18a6cf8ad1
eslint fixes
2018-04-13 18:09:16 +01:00
Richard Davey
01d3b7d6dc
Missed out the config
2018-04-13 17:44:06 +01:00
Richard Davey
3490b29082
Tidying up
2018-04-13 17:43:56 +01:00
Richard Davey
be29c69a8c
Disable pointer constraint debug by default
2018-04-13 17:43:44 +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
8afa6c9c7f
MatterEvents.off() would cause a TypeError if you destroyed the Matter world. Fix #3562
2018-04-13 12:07:27 +01:00
Richard Davey
64b07c6ecb
eslint fix
2018-04-11 16:58:25 +01:00
Richard Davey
53425bdae9
Matter Image and Matter Sprite didn't define a destroy
method, causing an error when trying to destroy the parent Game Object. Fix #3516
2018-04-11 14:35:18 +01:00
Richard Davey
70c7732a1e
When shutting down a Matter World it will now call MatterEvents.off, clearing all events, and also removeAllListeners
for any local events.
2018-04-11 14:00:58 +01:00
Richard Davey
011e67d0f0
The Matter SetBody Component will no longer try to call setOrigin
unless the Game Object has the origin component (which not all do, like Graphics and Container)
2018-04-11 13:47:22 +01:00
Richard Davey
d93e8ab919
Make sure debug layer remains on the top
2018-04-03 15:30:46 +01:00
Richard Davey
8ffe3e3aaf
Small formatting fixes
2018-04-03 15:28:51 +01:00
Richard Davey
7f1723ca4f
Merge pull request #3458 from OmarShehata/master
...
Added joint debug rendering to Matter Physics postUpdate
2018-04-03 15:22:49 +01:00
Omar Shehata
b18530741d
Replaced all uses of 'let' with 'var' to support older browsers
2018-03-29 08:53:38 -05:00
Richard Davey
cef9050627
jsdoc fixes
2018-03-29 14:53:06 +01:00
Richard Davey
d5fd3e20d9
Renamed namespace
2018-03-29 14:24:51 +01:00
Richard Davey
ce75947dac
Swap to module
2018-03-29 14:02:25 +01:00
Richard Davey
e7191e9d8e
jsdoc updates
2018-03-29 13:48:14 +01:00
Richard Davey
f5373b2dee
jsdoc fixes
2018-03-29 13:23:44 +01:00
Richard Davey
f1e646c9ee
jsdoc fixes
2018-03-28 15:39:57 +01:00
Richard Davey
747f09af86
jsdoc fixes
2018-03-28 15:04:09 +01:00
Richard Davey
15c4334dc7
jsdoc fixes
2018-03-28 14:11:46 +01:00
Richard Davey
e7a1e3190a
Matter Physics timestep adjustments (getDelta, step, set60Hz, etc)
...
* Matter Physics now has a new config property `getDelta` which allows you to specify your own function to calculate the delta value given to the Matter Engine when it updates.
* Matter Physics has two new methods: `set60Hz` and `set30Hz` which will set an Engine update rate of 60Hz and 30Hz respectively. 60Hz being the default.
* Matter Physics has a new config and run-time property `autoUpdate`, which defaults to `true`. When enabled the Matter Engine will update in sync with the game step (set by Request Animation Frame). The delta value given to Matter is now controlled by the `getDelta` function.
* Matter Physics has a new method `step` which manually advances the physics simulation by one iteration, using whatever delta and correction values you pass in to it. When used in combination with `autoUpdate=false` you can now explicitly control the update frequency of the physics simulation and unbind it from the game step.
2018-03-27 15:15:05 +01:00
Omar Shehata
4fa109d2db
Added joint debug rendering to Matter Physics postUpdate
2018-03-25 22:44:32 -05:00
Richard Davey
574221d6cf
A new property was added to Matter.World, correction
which is used in the Engine.update call and allows you to adjust the time being passed to the simulation. The default value is 1 to remain consistent with previous releases.
2018-03-23 02:19:18 +00:00
Richard Davey
d78a9d097f
eslint fixes
2018-03-22 13:22:23 +00:00
Richard Davey
32d9b82f93
Spacing
2018-03-21 17:22:09 +00:00
Richard Davey
c6fc61e470
Fixed class names
2018-03-21 14:41:45 +00:00
Richard Davey
db613c793a
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-21 03:17:00 +00:00
Richard Davey
2f86100f87
MatterGameObject is a new function, available via the Matter Factory in this.matter.add.gameObject
, that will inject a Matter JS Body into any Game Object, such as a Text object.
2018-03-21 03:16:36 +00:00
Richard Davey
5cae6d38b3
Matter.SetBody and SetExistingBody will now set the origin of the Game Object to be the Matter JS sprite.xOffset and yOffset values, which will auto-center the Game Object to the origin of the body, regardless of shape.
2018-03-21 03:16:01 +00:00
orblazer
dca7996179
Fix multiple types on Physics, Texture and Input
2018-03-20 16:10:19 +01:00
Richard Davey
19a08286c0
More types added
2018-03-19 15:01:14 +00:00
orblazer
ae15eca7bd
Update JSDoc on "Matter.JS" physics
2018-03-19 01:10:32 +01:00
Richard Davey
edeb63ebbd
eslint fix
2018-03-18 14:21:53 +00:00
Richard Davey
3d4be64331
Testing MatterGameObject
2018-03-17 18:07:05 +00:00
Richard Davey
05a4385cd7
jsdoc fixes
2018-03-16 17:29:39 +00:00
Samid\Sami
f5e471dad7
removed trailing space for JSHint validation.
2018-03-08 11:46:01 +01:00
Samid\Sami
84481da4d1
* Fix #3345 by adding beginPath and closePath when done drawing in postUpdate.
2018-03-08 11:16:04 +01:00
Richard Davey
3c65121cb3
eslint fixes
2018-02-16 19:17:49 +00:00
Richard Davey
86f00eeb52
eslint fixes
2018-02-16 18:17:51 +00:00
Richard Davey
b81b268b29
Matter JS bodies now have a destroy method that removes them from the world.
2018-02-14 19:33:56 +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
d1f5f8a82b
Added jsdocs
2018-02-12 16:01:21 +00:00
Richard Davey
eaca4eb462
Added jsdocs
2018-02-12 13:48:53 +00:00
Richard Davey
e448ec59f0
Added removeConstraint method.
2018-02-12 13:48:52 +00:00
Richard Davey
d421e9264e
Fixed #3145
2018-02-12 13:48:49 +00:00
Richard Davey
8de078d333
Added jsdocs
2018-02-12 13:48:48 +00:00
Richard Davey
92db8cfa2c
Added jsdocs and fix #3179
2018-02-12 13:48:48 +00:00
Richard Davey
c7a84a1f7a
Merge pull request #3209 from vulcanoidlogic/master
...
matterjs PointerConstraint.js world.events.on undefined
2018-02-09 16:51:52 +00:00
Richard Davey
5db058021f
Added jsdocs.
2018-02-09 15:23:33 +00:00
Richard Davey
73833e6628
Fixed require path.
2018-02-09 15:23:12 +00:00
Greg
79b61defe6
#3200 Errors in Input Mouse Events examples
2018-02-09 00:21:08 -05:00
Richard Davey
91887815f6
Merged Arcade Physics methods and added jsdocs
2018-02-09 01:40:41 +00:00
Richard Davey
40689d1e35
Updated jsdocs.
2018-02-07 15:27:21 +00:00
Richard Davey
f1a25921c7
Fixed missing Pipeline component.
2018-01-30 19:16:00 +00:00
Michael Hadley
16767927cb
Bug fix: setExisting -> setExistingBody
2018-01-28 08:06:05 -06:00
Michael Hadley
7acd9b0381
Tiled object parser: store points as xy objects instead of arrays
...
V2 used arrays, but other places in the codebase (and users) will expect an object with XY props over an array.
2018-01-27 08:34:11 -06:00
Michael Hadley
cbc493df98
MatterTileBody bug fix: tile -> this.tile
2018-01-26 22:31:53 -06:00
Michael Hadley
801d2e92e1
Revert "Add matter component for inertia - useful for platformers"
...
This reverts commit 2b20c8bbfb
.
2018-01-26 21:51:20 -06:00
Michael Hadley
ec444f876e
Extend SetBody component with setExistingBody method
...
This makes it easy to add compound bodies to a MatterSprite/MatterImage
2018-01-26 21:50:22 -06:00
Michael Hadley
0d84860a8a
Update Matter.World to render compound bodies
2018-01-26 21:50:21 -06:00
Michael Hadley
2b20c8bbfb
Add matter component for inertia - useful for platformers
2018-01-25 16:05:49 -06:00
Michael Hadley
08df6b4cb0
Bug fix: wrong prop name
2018-01-25 15:34:25 -06:00
Michael Hadley
7730af643d
Add better support for concave polygons to MatterTileBody
2018-01-25 15:17:33 -06:00
Michael Hadley
578fe59110
Add scale support to MatterTileBody
2018-01-25 15:17:10 -06:00
Michael Hadley
64d172546c
JSDoc Matter.World#convertTilemapLayer & Matter.World#convertTiles
2018-01-25 14:04:58 -06:00
Michael Hadley
27930fb4bb
JSDoc MatterTileBody
2018-01-25 13:58:03 -06:00
Michael Hadley
92fb2a9c21
Update MatterTileBody to use latest Tile API
2018-01-25 13:49:28 -06:00
Michael Hadley
a6556e9364
Expose Phaser.Physics.Matter.TileBody
2018-01-25 13:48:47 -06:00
Michael Hadley
ccdad43920
Matter world and factory methods for creating a tile body
2018-01-21 12:53:48 -06:00
Michael Hadley
348da8c81e
MatterTileBody: wrapper around a Tile that provides access to a matter body
2018-01-21 12:53:27 -06:00
Richard Davey
d46662cd46
Swapped to using Number.MAX_VALUE
so repeat -1 now works properly in IE11 and below.
2018-01-18 14:59:32 +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
5a333bc2fd
Updated to new Plugin format, removed injection and mapping
2018-01-18 05:18:09 +00:00
Richard Davey
108b6bd2a3
Events call the world directly, avoids an unnecessary function jump.
2018-01-17 15:28:53 +00:00
Richard Davey
f41d016c9f
Moved Matter over to use the plugin system.
2018-01-17 15:22:16 +00:00
Richard Davey
f00f467eec
Matter now using new EventEmitter.
2018-01-12 18:59:11 +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
d8f1ba03e9
Moved repository location
2018-01-09 21:43:56 +00:00