Richard Davey
2182511b1d
Image swap
2018-03-21 14:41:51 +00:00
Richard Davey
c6fc61e470
Fixed class names
2018-03-21 14:41:45 +00:00
Richard Davey
72690734c3
Fixed exposure
2018-03-21 14:41:34 +00:00
Richard Davey
0899c135d6
Fixed types
2018-03-21 14:41:16 +00:00
Richard Davey
13f5608cbe
Added XHRSettings Conf
2018-03-21 14:41:04 +00:00
Richard Davey
f500f5509b
Added DeviceConf def
2018-03-21 14:40:30 +00:00
Richard Davey
645c03f2e9
Added setRate and setDetune methods
2018-03-21 14:40:07 +00:00
Richard Davey
8e7944a1b4
Updated EventEmitter reference
2018-03-21 14:09:58 +00:00
Richard Davey
3f0ee709f0
Renamed methods to avoid confliction with Animation component
2018-03-21 14:09:30 +00:00
orblazer
90cf919b10
Fix "object" types on Sound and Time
2018-03-21 15:02:10 +01:00
orblazer
dcd80375c0
Fix "object" types on Renderer and Scene
2018-03-21 14:41:17 +01:00
orblazer
11845f9d6d
Fix "object" types on Physics and Math
2018-03-21 14:15:25 +01:00
Richard Davey
d62dd0aa62
Merge pull request #3438 from jmcriat/patch-2
...
(WebGL) updating currentScissor on game.resize
2018-03-21 12:52:06 +00:00
orblazer
0c1ced8d86
Fix "object" types on Loader
2018-03-21 13:03:14 +01:00
orblazer
439df07fd5
Fix "object" type on GameObjects and Input
2018-03-21 12:19:31 +01:00
Richard Davey
db613c793a
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-21 03:17:00 +00:00
Richard Davey
8a3f06c898
Todo note
2018-03-21 03:16:55 +00:00
Richard Davey
786d181a91
Sorted the components
2018-03-21 03:16:49 +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
José Maria
f9e978a2bd
(WebGL) updating currentScissor on game.resize
...
with the array being update it solves the issue with the global background not being fully draw after resizing the game.
2018-03-20 23:38:00 -03:00
orblazer
4f7f2b8981
Fix RemoveCallback call on Group
2018-03-21 00:32:13 +01:00
orblazer
c5d4c0a9d2
Fix Vector2 types
2018-03-20 23:51:54 +01:00
orblazer
e60d573912
Fix "object" types in Actions
2018-03-20 23:36:41 +01:00
orblazer
5a518f2e5f
Fix "object" types on Camera and GameObjecs
2018-03-20 23:28:26 +01:00
Richard Davey
d329724ae5
Added the ComputedSize component to the Text Game Object, which allows Text.getBounds, and related methods, to work again instead of returning NaN.
2018-03-20 19:00:48 +00:00
Richard Davey
28206e872f
Merge pull request #3433 from orblazer/fix-types
...
Fix "any" types
2018-03-20 16:28:43 +00:00
orblazer
7fba122321
Fix "any" types
2018-03-20 17:15:49 +01:00
Richard Davey
31bf979eb2
Merge pull request #3432 from orblazer/fix-types
...
Fix nullable and multiple types
2018-03-20 15:31:17 +00:00
Felipe Alfonso
701d43b3c3
TransformNode Implemented for nested transformations
2018-03-20 12:15:14 -03:00
orblazer
44103dc475
Fix remaining multiple types
2018-03-20 16:12:42 +01:00
orblazer
9375bb0530
Fix multiple types on Tilemaps
2018-03-20 16:11:33 +01:00
orblazer
dca7996179
Fix multiple types on Physics, Texture and Input
2018-03-20 16:10:19 +01:00
orblazer
7e05b333a0
Fix multiple types on Math
2018-03-20 16:06:30 +01:00
orblazer
8a9223811f
Fix multiple types on Geom
2018-03-20 16:01:08 +01:00
orblazer
37b6fc5862
Fix many multiple types
2018-03-20 15:58:02 +01:00
orblazer
3cb00c85c9
Fix multiple types on Actions
2018-03-20 15:57:12 +01:00
orblazer
87633fdfad
Fix multiple types on GameObjects
2018-03-20 15:56:31 +01:00
orblazer
4cff464555
Fix nullable types
2018-03-20 15:36:03 +01:00
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
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
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
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
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
orblazer
fa63a9090a
Update JSDoc on Display
2018-03-19 14:03:41 +01:00
orblazer
ddf2f748cd
Update JSDoc on Animation
2018-03-19 13:54:20 +01:00
orblazer
87d6cdaff8
Update JSDoc on GameObjects
2018-03-19 13:50:32 +01:00
orblazer
0b1078fdb8
Update JSDoc on Input
2018-03-19 13:43:19 +01:00
orblazer
679253f591
Update JSDoc on Math
2018-03-19 13:06:46 +01:00
orblazer
0e06dcf3a1
Update JSDoc on Geom
2018-03-19 13:05:23 +01:00
orblazer
90def456f2
Update JSDoc on GameObjects
2018-03-19 12:54:31 +01:00
Richard Davey
4fe6a25117
Added jsdoc data types
2018-03-19 11:25:46 +00:00
Hua
1dc98b586f
Expose FILE_CONST
...
Expose FILE_CONST for 3rd party developer
2018-03-19 13:46:16 +08:00
orblazer
253f3b1896
Fix import on array utils
2018-03-19 02:14:22 +01:00
orblazer
454849d67d
Update JSDoc on Tweens and Utils
2018-03-19 02:07:03 +01:00
orblazer
cb708dcc32
Update JSDoc on Textures, Tilemaps and Time
2018-03-19 02:03:17 +01:00
orblazer
6b5dc62ad1
Update JSDoc on Structs
2018-03-19 02:00:21 +01:00
orblazer
6a4dd8db8f
Update JSDoc on Renderer and Scene
2018-03-19 01:59:59 +01:00
orblazer
449506db87
Update JSDoc on Loader
2018-03-19 01:54:19 +01:00
orblazer
c3fb72780b
Update JSDoc on Cameras
2018-03-19 01:49:29 +01:00
orblazer
ae15eca7bd
Update JSDoc on "Matter.JS" physics
2018-03-19 01:10:32 +01:00
orblazer
2da6a2bffe
Update JSDoc on "Impact" physics
2018-03-19 00:42:09 +01:00
orblazer
af3c03a3cb
Update JSDoc on "Arcade" physics
2018-03-19 00:29:46 +01:00
Rex
4125e74550
Bug fix: font might not sync to context
...
Sync font before runWordWrap
2018-03-18 22:53:02 +08:00
Richard Davey
edeb63ebbd
eslint fix
2018-03-18 14:21:53 +00:00
Richard Davey
cc0998660e
Updated jsdocs
2018-03-18 13:43:37 +00:00
Richard Davey
3d4be64331
Testing MatterGameObject
2018-03-17 18:07:05 +00:00
Richard Davey
7e26fdb907
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-17 17:51:54 +00:00
Richard Davey
45194658fb
Added new Actions
2018-03-17 17:51:27 +00:00
Richard Davey
cb110e4977
Actions.SetXY has 2 new arguments: index
and direction
.
2018-03-17 17:51:12 +00:00
Richard Davey
c67882e900
Actions.SetY has 2 new arguments: index
and direction
.
2018-03-17 17:50:13 +00:00
Richard Davey
80560b7b3c
Actions.SetX has 2 new arguments: index
and direction
.
2018-03-17 17:49:49 +00:00
Richard Davey
7052f981b5
Actions.SetVisible has 2 new arguments: index
and direction
.
2018-03-17 17:49:23 +00:00
Richard Davey
8f0ee99f23
Actions.SetScaleY has 2 new arguments: index
and direction
.
2018-03-17 17:47:37 +00:00
Richard Davey
fe7d72b326
Actions.SetScaleX has 2 new arguments: index
and direction
.
2018-03-17 17:47:26 +00:00
Richard Davey
84cc2c7aa2
Actions.SetScale has 2 new arguments: index
and direction
.
2018-03-17 17:47:07 +00:00
Richard Davey
6f3b2cf9a5
Actions.SetOrigin has 4 new arguments: stepX
, stepY
, index
and direction
.
2018-03-17 17:46:26 +00:00
Richard Davey
fa6b3bba64
Actions.SetRotation has 2 new arguments: index
and direction
.
2018-03-17 17:45:38 +00:00
Richard Davey
e8fe38b560
Actions.SetDepth has 2 new arguments: index
and direction
.
2018-03-17 17:45:19 +00:00
Richard Davey
bdddad818a
Actions.SetBlendMode has 2 new arguments: index
and direction
.
2018-03-17 17:43:04 +00:00
Richard Davey
f47119be08
Actions.ScaleXY has 4 new arguments: stepX
, stepY
, index
and direction
.
2018-03-17 17:41:30 +00:00
Richard Davey
30f76e384d
Fixed docs
2018-03-17 17:41:07 +00:00
Richard Davey
5f196aa81f
Actions.SetAlpha has 2 new arguments: index
and direction
.
2018-03-17 17:34:41 +00:00
Richard Davey
2935e59cf6
Actions.ScaleY has 3 new arguments: step
, index
and direction
.
2018-03-17 17:34:13 +00:00
Richard Davey
fd3aad5f08
Actions.ScaleX has 3 new arguments: step
, index
and direction
.
2018-03-17 17:34:02 +00:00
Richard Davey
47287bc466
Actions.Rotate has 3 new arguments: step
, index
and direction
.
2018-03-17 17:33:02 +00:00
Richard Davey
a282b76d07
Actions.PropertyValueSet is a new action that will set any property of an array of objects to the given value, using an optional step value, index and iteration direction. Most Actions have been updated to use this internally.
2018-03-17 17:32:19 +00:00
Richard Davey
263086fd6a
Actions.PropertyValueInc is a new action that will increment any property of an array of objects by the given amount, using an optional step value, index and iteration direction. Most Actions have been updated to use this internally.
2018-03-17 17:31:38 +00:00
Richard Davey
5be0932fae
Actions.IncXY has 4 new arguments: stepX
, stepY
, index
and direction
.
2018-03-17 17:25:25 +00:00
Richard Davey
85d4b036b3
Actions.IncY has 3 new arguments: step
, index
and direction
.
2018-03-17 17:18:28 +00:00
Richard Davey
2d09f69410
Actions.IncX has 3 new arguments: step
, index
and direction
.
2018-03-17 17:18:16 +00:00
Richard Davey
70058392d3
Actions.IncAlpha has 3 new arguments: step
, index
and direction
.
2018-03-17 17:17:41 +00:00
Richard Davey
eb0fb84563
Actions.Angle has 3 new arguments: step
, index
and direction
.
2018-03-17 17:17:18 +00:00
Richard Davey
389669e21b
Updated jsdocs
2018-03-17 17:16:26 +00:00
Richard Davey
ccbf399dc2
Actions.GetLast will return the last element in the items array matching the conditions.
2018-03-17 17:16:11 +00:00
Richard Davey
a8886a60d3
Actually round the value.
2018-03-17 17:03:30 +00:00
Richard Davey
46e9dbd05a
Fixed left / right rotation and exposed via namespace
...
Phaser.Utils.Array.Matrix.RotateLeft actually rotated to the right (thanks @Tomas2h)
Phaser.Utils.Array.Matrix.RotateRight actually rotated to the left (thanks @Tomas2h)
2018-03-17 17:03:15 +00:00
Arkadiusz Buras
e981932db1
Remove scene key in SceneManager
2018-03-17 13:42:42 +01:00
Richard Davey
2ea8489716
Tidying up
2018-03-16 18:08:51 +00:00
Richard Davey
3b8da57008
jsdoc fixes
2018-03-16 17:38:15 +00:00
Richard Davey
1b20232bd1
Exposed consts and added jsdocs
2018-03-16 17:35:01 +00:00
Richard Davey
05a4385cd7
jsdoc fixes
2018-03-16 17:29:39 +00:00
Richard Davey
625394a24c
Don't reset the callbacks unless xhrLoader is set
2018-03-16 17:00:45 +00:00
Richard Davey
9832befeea
Fixed camera y
2018-03-16 15:47:14 +00:00
Richard Davey
b2d062b0bd
LoaderPlugin.progress and the corresponding event now factor in both the list size and the inflight size when calculating the percentage complete. Fix #3384
2018-03-16 15:01:39 +00:00
Richard Davey
b6b03b85bd
The InputPlugin.processOverOutEvents method wasn't correctly working out the total of the number of objects interacted with, which caused input events to be disabled in Scenes further down the scene list if something was being dragged in an upper scene. Fix #3399
2018-03-16 14:57:19 +00:00
Richard Davey
4ab98eb492
The TweenManager will now check the state of a tween before playing it. If not in a pending state it will be skipped. This allows you to stop a tween immediately after creating it and not have it play through once anyway. Fix #3405
2018-03-16 14:31:49 +00:00
Richard Davey
a524dc44b0
Expose constants. Fix #3387
2018-03-16 13:29:30 +00:00
Richard Davey
fbec8f978c
You can now specify all of the renderer config options within a render
object in the config. If no render
object is found, it will scan the config object directly for the properties.
2018-03-16 13:22:52 +00:00
Richard Davey
bce89313c1
Merge branch 'master' of https://github.com/photonstorm/phaser
2018-03-16 13:10:51 +00:00