Commit graph

9514 commits

Author SHA1 Message Date
orblazer
30f410d1d3 Fix types in Tilemaps 2018-03-20 12:36:35 +01:00
Richard Davey
b6f2c80ae6 Groups will now listen for a destroy event from any Game Object added to them, and if received will automatically remove that GameObject from the Group. Fix #3418 2018-03-20 01:08:45 +00:00
Richard Davey
cb5b12e9d3 The GameObject destroy event is now emitted at the start of the destroy process, before things like the body or input managers have been removed, so you're able to use the event handler to extract any information you require from the GameObject before it's actually disposed of. Previously, the event was dispatched at the very end of the process. 2018-03-20 01:05:53 +00:00
Richard Davey
8d7ed97d38 Removed const because already merged into namespace (#3417) 2018-03-20 00:37:10 +00:00
Richard Davey
8eedc220c8 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-20 00:36:40 +00:00
Richard Davey
07ec73774b Updated change log 2018-03-20 00:36:33 +00:00
Richard Davey
3591edcb73
Merge pull request #3417 from rexrainbow/master
Bug fix: font might not sync to context
2018-03-20 00:34:51 +00:00
Richard Davey
64fdbc3040 Graphics.alpha was being ignored in the WebGL renderer and is now applied properly to strokes and fills. Fix #3426 2018-03-20 00:27:39 +00:00
Richard Davey
75bb9d92a9 Camera.fadeIn is a new method that will fade the camera in from a given color (black by default) and then optionally invoke a callback. This is the same as using Camera.flash but with an easier to grok method name. Fix #3412 2018-03-20 00:10:55 +00:00
Richard Davey
00a3f71859 Modified camera effect durations and prevented callbacks from being overwritten 2018-03-19 23:53:03 +00:00
Richard Davey
490aa2838d Updated change log 2018-03-19 23:32:36 +00:00
Richard Davey
18c327e743 Effect callbacks now pass the camera. Tidied up potential infinity divides. 2018-03-19 23:29:15 +00:00
Richard Davey
efc5a12f75
Merge pull request #3424 from pixelscripter/master
Added callback methods to Camera2D effects: Shake, Fade and Flash
2018-03-19 23:08:55 +00:00
Richard Davey
f4f88a6daa
Merge pull request #3425 from orblazer/fix-types
Add callbacks types
2018-03-19 23:02:37 +00:00
orblazer
fa13b597e3 Add more callbacks 2018-03-19 23:08:05 +01:00
orblazer
1e8311e1ab Add callbacks on Dom and Data 2018-03-19 22:43:48 +01:00
orblazer
33e49a4416 Add callbacks on Boot, Actions and Create 2018-03-19 22:37:47 +01:00
orblazer
b4a30b8e43 Add callbacks on GameObjects 2018-03-19 22:27:16 +01:00
Jeroen Reurings
ed3dc2b9b4 Added @since 3.3.0 to new callback method comments. 2018-03-19 22:25:19 +01:00
orblazer
41d7c4b715 Add callbacks on Input and Geom 2018-03-19 22:12:11 +01:00
orblazer
f30218d3d3 Add callbacks on Physics 2018-03-19 21:42:07 +01:00
orblazer
8fdedabaeb Add callbacks on Renderer 2018-03-19 21:41:24 +01:00
Jeroen Reurings
6ada1ec2f3 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-19 20:31:10 +01:00
Richard Davey
6d8b702b70
Merge pull request #3423 from orblazer/fix-types
Fix types
2018-03-19 19:22:52 +00:00
orblazer
bf630f7d57 Fix types in JSDocs 2018-03-19 19:49:14 +01:00
Jeroen Reurings
a759266064 Changed default values of effect callbacks to null instead of undefined;
Removed @since JSDoc comments for newly added class methods (because it's still unknown in which version they will be added).
2018-03-19 19:38:43 +01:00
orblazer
6a4fda392c Fix Object type in DataManager 2018-03-19 19:03:00 +01:00
Richard Davey
ff7119dfc1
Merge pull request #3422 from orblazer/fix-types
Fix types and begin object TypeDef
2018-03-19 17:16:45 +00:00
orblazer
45158c2fbd Update JSDoc on Animations and Boot 2018-03-19 18:13:33 +01:00
Richard Davey
4de9719fbe Fixed jsdoc types 2018-03-19 17:05:29 +00:00
Richard Davey
15579d7350 Fixed jsdocs 2018-03-19 17:01:53 +00:00
Richard Davey
968dc05eae Triangle.getLineA/B/C now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one. 2018-03-19 16:51:39 +00:00
Richard Davey
4704745ac6 Optional vec2. 2018-03-19 16:47:43 +00:00
Richard Davey
917dc8f8be Rectangle.getLineA/B/C/D now returns a Line instead of an untyped object. It also now has an optional argument that allows you to pass a Line in to be populated, rather than creating a new one. 2018-03-19 16:47:34 +00:00
Richard Davey
3eef3213be Spacing 2018-03-19 16:34:39 +00:00
Richard Davey
d551ef3d29 Added RayDef 2018-03-19 16:34:33 +00:00
Richard Davey
034161bd66 Line.getPointA and Line.getPointB now return Vector2 instances instead of un-typed objects. 2018-03-19 16:34:22 +00:00
orblazer
0ca95676ba Update JSDoc on Cameras 2018-03-19 17:21:25 +01:00
orblazer
13324dd04f Update JSDoc on Create 2018-03-19 17:03:32 +01:00
orblazer
abf63cc33e Update JSDoc on Curves 2018-03-19 16:53:55 +01:00
orblazer
e2ab82c7b1 Fix types on Data 2018-03-19 16:37:01 +01:00
orblazer
1933547140 Fix types on DOM 2018-03-19 16:29:26 +01:00
orblazer
94d92910cb Update JSDoc on Display (object types) 2018-03-19 16:22:51 +01:00
Jeroen Reurings
b27130c8a6 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-03-19 16:22:16 +01:00
Jeroen Reurings
9006f19f41 Added callbacks to Shake, Fade and Flash effects, so you don't have to use a delayed call to trigger something after an effect is completed;
Moved the shake function next to the other effect functions.
2018-03-19 16:21:48 +01:00
Richard Davey
19a08286c0 More types added 2018-03-19 15:01:14 +00:00
Richard Davey
876911fd32 Fixed var error 2018-03-19 13:50:23 +00:00
Richard Davey
620bcc6ae5 jsdoc fixes and additions 2018-03-19 13:45:00 +00:00
Richard Davey
a78651ab12 Removed un-used properties and fixed jsdoc types 2018-03-19 13:33:02 +00:00
Richard Davey
d0d05fa76e Added descriptions and fixed some types 2018-03-19 13:22:30 +00:00