Commit graph

9558 commits

Author SHA1 Message Date
Richard Davey
15c4334dc7 jsdoc fixes 2018-03-28 14:11:46 +01:00
Richard Davey
f10efda8f0 font is non-optional, so removed coordinates as optional 2018-03-28 12:05:03 +01:00
Richard Davey
2a2ba91eed
Merge pull request #3461 from orblazer/genericTypes
Fix many types and add many generics type
2018-03-28 11:53:12 +01:00
Richard Davey
a33969391c npm. no proper messaging. 2018-03-27 18:40:26 +01:00
Richard Davey
d057c32246 npm i npm 2018-03-27 17:28:55 +01:00
Richard Davey
d0fc334225 Swapped to 3.4.0 because of public-facing API changes 2018-03-27 15:15:22 +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
orblazer
d0e1320cbe Add generic types and fix types on Input and Structs 2018-03-27 15:59:49 +02:00
orblazer
e9e16a7b10 Add generic types on Geom 2018-03-27 15:27:08 +02:00
orblazer
ae0b3b841b Fix types on GameObjects 2018-03-27 14:52:58 +02:00
orblazer
b1d83188ef Add generic type and fix types on Data and Display 2018-03-27 14:19:42 +02:00
orblazer
1ded1d12a8 Fix types and add generic in Curves 2018-03-27 14:06:24 +02:00
orblazer
7a33233013 Fix types in Cache and Cameras 2018-03-27 13:51:45 +02:00
orblazer
0d58832e5f Fix types on Animations and Boot 2018-03-27 13:30:00 +02:00
orblazer
bdf373b6e8 Add generic type on Actions 2018-03-27 13:14:08 +02:00
Richard Davey
1f44366bc7 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-27 01:09:34 +01:00
Richard Davey
933e193ccf Group.destroy has a new optional argument destroyChildren which will automatically call destroy on all children of a Group if set to true (the default is false, hence it doesn't change the public API). Fix #3246 2018-03-27 01:09:30 +01:00
Richard Davey
3aa95b4f20 Formatting fix. 2018-03-27 01:09:23 +01:00
Richard Davey
25cbb320a5
Merge pull request #3453 from orblazer/genericTypes
Change structs for generic types
2018-03-27 00:37:34 +01:00
Richard Davey
72eca92e4d
Merge pull request #3448 from jamierocks/no-eval
Remove string-generated Functions for CSP policies
2018-03-27 00:08:44 +01:00
Richard Davey
33edbfcefe
Merge pull request #3457 from samid737/master
Fix: PathFollower.setPath was still using PathFollower.start instead of PathFollower.startFollow
2018-03-26 23:49:09 +01:00
Richard Davey
f74f733576 Just because. 2018-03-26 23:17:06 +01:00
Samid\Sami
74d43b2707 update changelog 2018-03-25 10:51:47 +02:00
Samid\Sami
20b9930335 Fix calling non existing start() instead of startFollow() in setPath(config) 2018-03-25 10:44:24 +02:00
orblazer
f42f1bf132 Change structs for generic types 2018-03-23 16:54:12 +01:00
Richard Davey
2cd7da0126 The RenderTexture now uses the ComputedSize component instead of Size (which requires a frame), allowing calls to getBounds to work. Fix #3451 2018-03-23 10:00:25 +00: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
Jamie Mansfield
88647a4879
Remove string-generated Functions for CSP policies - Resolves #3441 2018-03-22 22:32:46 +00:00
Richard Davey
7f781786b7 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-22 15:09:04 +00:00
Richard Davey
889014e409 Updated change log 2018-03-22 15:09:01 +00:00
Richard Davey
04b5985724
Merge pull request #3445 from delftswa2018/3385-Rendertexture-alpha-not-changing-in-WEBGL-mode
Fix changing alpha in RenderTextureWebGLRenderer
2018-03-22 14:52:14 +00:00
Richard Davey
6fe6a165be Preparing for 3.3.1 2018-03-22 14:39:29 +00:00
Gerard van Alphen
78c1e86021 Fix changing alpha in RenderTextureWebGLRenderer 2018-03-22 14:58:41 +01:00
Richard Davey
43c91a695a 3.3.0 release build 2018-03-22 13:29:40 +00:00
Richard Davey
a03b60193c Updated log and readme 2018-03-22 13:27:12 +00:00
Richard Davey
d78a9d097f eslint fixes 2018-03-22 13:22:23 +00:00
Richard Davey
5816b863fa Removed TransformNode so it doesn't break the 3.3 CI build 2018-03-22 13:19:52 +00:00
Richard Davey
7c46cffdba
Merge pull request #3444 from orblazer/fix-types
Fix wrong types
2018-03-22 12:54:34 +00:00
orblazer
ed1f2a7011 Fix wrong types 2018-03-22 13:51:30 +01:00
Richard Davey
32d9b82f93 Spacing 2018-03-21 17:22:09 +00:00
Richard Davey
c0ec42dc2b Added setRate, setDetune and renamed setRate to calculateRate 2018-03-21 16:43:08 +00:00
Richard Davey
b3965fb5a2 Added TweenData type def 2018-03-21 16:23:48 +00:00
Richard Davey
0ef92e1172 Merge branch 'pr/3439' 2018-03-21 16:06:56 +00:00
Richard Davey
63d2b49154 Removed FilterMode and swapped for const 2018-03-21 15:18:07 +00:00
Richard Davey
a2352f2049 Renamed tween config defaults 2018-03-21 15:17:53 +00:00
Richard Davey
eebe58f1c9 Removed duplicate parameters 2018-03-21 15:17:40 +00:00
Richard Davey
eb10a0121a Added new methods to NoAudio 2018-03-21 14:56:08 +00:00
Richard Davey
2433844cd3 Added setVolume and setMute 2018-03-21 14:54:23 +00:00
Richard Davey
4c75c48a77 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-21 14:41:56 +00:00
Richard Davey
2182511b1d Image swap 2018-03-21 14:41:51 +00:00