Richard Davey
d5644cf977
If a config object was passed to MultiAtlasFile
it expected the atlas URL to be in the url
property, however the docs and file config expected it in atlasURL
. You can now use either of these properties to declare the url. Fix #4815
2020-01-15 11:36:11 +00:00
Richard Davey
d636189cf7
Fixed JSDoc param type. Fix #4815
2020-01-15 11:30:08 +00:00
Richard Davey
57defcdb9b
Typo
2020-01-15 11:15:30 +00:00
Richard Davey
e1a6214c9b
A DOMElement
will now set the display mode to 'none' during its render if the Scene in which it belongs is no longer visible.
2020-01-15 11:15:23 +00:00
Richard Davey
867a11b30b
DOMElement
has a new private method handleSceneEvent
which will handle toggling the display setting of the element when a Scene sleeps and wakes. A DOM Element will now listen for the Scene sleep and wake events. These event listeners are removed in the preDestroy
method.
2020-01-15 11:15:09 +00:00
Richard Davey
90c8825ddb
A PathFollower
with a very short duration would often not end in the correct place, which is the very end of the Path, due to the tween handling the movement not running one final update when the tween was complete. It will now always end at the final point of the path, no matter how short the duration. Fix #4950
2020-01-15 10:42:56 +00:00
Richard Davey
3d144bd99e
JSDoc update. Fix #4955
2020-01-15 10:29:09 +00:00
Richard Davey
1ccfd8d68b
In Actions.GridAlign
if you set width
to -1 it would align the items vertically, instead of horizontally. It now aligns them horizontally if width
is set, or vertically if height
is set. Fix #4899
2020-01-15 00:31:57 +00:00
Richard Davey
c3940e15c6
PhysicsGroup
now uses the new internalCreateCallback
and internalRemoveCallback
to handle its body creation and destruction, allowing you to use your own createCallback
and removeCallback
as defined in the Group config. Fix #4420 #4657 #4822
2020-01-14 23:57:48 +00:00
Richard Davey
08c4ab0e4c
Added internalCreateCallback
and internalRemoveCallback
to a Group
2020-01-14 23:55:21 +00:00
Richard Davey
847abb0ef2
Scene.Systems.getData
is a new method that will return any data that was sent to the Scene by another Scene, i.e. during a run
or launch
command. You can access it via this.sys.getData()
from within your Scene.
2020-01-14 23:29:14 +00:00
Richard Davey
fb7f66838a
Marked width/height as readonly and added docs. Fix #4806
2020-01-14 22:45:55 +00:00
Richard Davey
a81c2ea132
When playing an Animation, if you were to play another, then pause it, then play another the internal _paused
wouldn't get reset, preventing you from them pausing the animations from that point on. You can now play and pause animations at will. Fix #4835
2020-01-14 22:42:14 +00:00
Richard Davey
f15ef8648e
Lots of type fixes
2020-01-14 17:11:07 +00:00
Richard Davey
91e59ab39a
Update MatterPhysics.js
2020-01-14 14:59:35 +00:00
Richard Davey
47ae9eaadc
Exposed StaggerBuilder and added missing param to JSDocs
2020-01-13 22:35:40 +00:00
Richard Davey
1c6e8df436
Update MatterPhysics.js
2020-01-13 17:10:19 +00:00
Richard Davey
51aa5d019d
Removed namespace as it conflicts with TypeScript defs
2020-01-13 13:28:50 +00:00
Richard Davey
9c0b77db92
Fixed JSDocs
2020-01-13 13:28:24 +00:00
Richard Davey
1928480913
Fixed JSDocs
2020-01-13 12:35:33 +00:00
Richard Davey
fce658aea2
Fix #4825
2020-01-13 12:29:57 +00:00
Richard Davey
fdbd5a4f6d
The ScaleManager.destroy
method wasn't being called when the Game DESTROY
event was dispatched, causing minor gc to build up. The destroy method will now be called properly on game destruction. Fix #4944
2020-01-13 12:20:24 +00:00
Richard Davey
706cef7912
Merge pull request #4935 from Aedalus/master
...
Changed tile getTint function to use getTintAppendFloatAlphaAndSwap
2020-01-13 12:13:42 +00:00
Richard Davey
86e5f8e4bd
Merge pull request #4952 from zaniar/align-in-quickset-alias
...
Make Phaser.Display.Align.In.QuickSet accepts LEFT_BOTTOM, LEFT_TOP, RIGHT_BOTTOM, and RIGHT_TOP.
2020-01-13 12:04:15 +00:00
Richard Davey
8c39dea143
Merge pull request #4925 from samme/feature/actions-alignto
...
Add Phaser.Actions.AlignTo() and Phaser.Display.Align.To.QuickSet()
2020-01-13 12:00:33 +00:00
Richard Davey
ff2484a3fb
Merge pull request #4936 from AdamXA/fix-external-fullscreen-api-calls
...
Fixes external Fullscreen API calls being blocked by fullscreenchange listener
2020-01-13 11:53:46 +00:00
Richard Davey
2bb1f0867b
Merge pull request #4939 from Chnapy/master
...
Improve JSDoc typings & improve tsgen with default generic types
2020-01-13 11:41:59 +00:00
Richard Davey
8b9819b8f7
Merge pull request #4949 from samme/fix/collideSpriteVsSprite
...
Check for disabled body in collideSpriteVsGroup()
2020-01-13 11:34:36 +00:00
Richard Davey
271e4e3943
Use FuzzyEquals for safety
2020-01-13 11:33:21 +00:00
Edwin Zaniar Putra
3714b490b1
Make Phaser.Display.Align.In.QuickSet accepts LEFT_BOTTOM, LEFT_TOP, RIGHT_BOTTOM, and RIGHT_TOP.
2020-01-12 22:06:41 +07:00
Richard Davey
439d50ee9f
Update Polygon.js
2020-01-11 16:18:56 +00:00
Andrew Brampton
e42f227ec2
Update documentation and one import, to use the consistent name of Vector2
.
...
There were examples that used Vec2, which wouldn't work. For example `An array of Point or Vector2 objects: [new Phaser.Math.Vec2(x1, y1), ...]` was not copy and pastable.
2020-01-11 06:46:25 -08:00
Richard Davey
cf1e4645f3
Ignore if CoM is 0.5
2020-01-10 18:05:20 +00:00
Richard Davey
f90d679d22
Added setToSleep and setAwake methods
2020-01-10 17:39:40 +00:00
Richard Davey
d884fd0468
Handle scaled bodies properly
2020-01-10 17:03:50 +00:00
Richard Davey
8b1cc40a23
SetBody can now use JSON data natively
2020-01-10 16:24:40 +00:00
Richard Davey
8e7c3103d8
Moved the fromJSON code to its own external parser
2020-01-10 16:24:30 +00:00
Richard Davey
88cd83a508
Fixed bug in PhysicsEditorParser where it would allow non-clockwise vertices through
2020-01-10 15:32:03 +00:00
Richard Davey
1d827c911f
0.2 is just too dim
2020-01-10 14:53:39 +00:00
Richard Davey
ea2337c091
Only if parts = 1
2020-01-10 14:53:27 +00:00
Richard Davey
282a4df811
Update Factory.js
2020-01-10 14:53:17 +00:00
Richard Davey
e07513b707
Small restructure
2020-01-10 11:20:53 +00:00
Richard Davey
4e53d74581
Removed un-used properties
2020-01-10 11:20:41 +00:00
Richard Davey
e27914792e
More robust checks
2020-01-10 10:52:54 +00:00
Richard Davey
0d66c98ff0
Added JSDocs for fromPhysicsEditor
method and tidied things up a bit.
2020-01-10 08:56:49 +00:00
Richard Davey
ea338cadaa
Fixed JSDocs and origin assignment.
2020-01-10 08:56:31 +00:00
Richard Davey
5c9c00bfdb
Removed un-used code.
2020-01-10 08:56:17 +00:00
Richard Davey
887227a313
Added centerOffset back and fixed calculations
2020-01-10 08:55:56 +00:00
Richard Davey
6c947c9677
Updated PhysicsEditor Parser
...
Now allows you to specify options object to override the loaded config. Also removed un-used parameters and fixed JSDocs. Finally, using Common.clone to avoid mutating the loaded JSON.
2020-01-10 08:55:31 +00:00
samme
eacb61e109
Check for disabled body in collideSpriteVsGroup()
2020-01-09 19:45:11 -08:00
Richard Davey
d63001d719
Testing offsets
2020-01-09 17:55:03 +00:00
Richard Davey
590256fe92
Added fromPhysicsEditor method
2020-01-09 17:54:38 +00:00
Richard Davey
d3aaff82e1
Finished JSDocs
2020-01-09 16:38:33 +00:00
Richard Davey
a8f3c3b9c0
New BodyBounds class for getting body bounds based coordinates
2020-01-09 13:18:44 +00:00
Richard Davey
fceef3ddf0
Added BodyBounds class
2020-01-09 13:18:24 +00:00
Richard Davey
d031d91f1e
Added bodyBounds class, finished alignBody and fixed typedefs
2020-01-09 13:18:13 +00:00
Richard Davey
9aeead5cc2
New Body typedef
2020-01-09 13:17:56 +00:00
Richard Davey
4de6f17a38
Formatted docs
2020-01-09 13:17:43 +00:00
Richard Davey
cfa6eeb6e2
Finished alignBody method
2020-01-09 00:43:46 +00:00
Richard Davey
4d0618232b
Only render compound bounds
2020-01-09 00:43:38 +00:00
Richard Davey
312f4dab10
Start of alignBody method
2020-01-08 17:44:02 +00:00
Richard Davey
d6e0ba9b29
MatterPhysics.getConstraintLength
is a new method that will return the length of the given constraint, as this is something you cannot get from the constraint properties directly.
2020-01-08 14:41:24 +00:00
Richard Davey
ae8bfbc013
Added missing JSDocs
2020-01-08 12:15:29 +00:00
Richard Davey
2859eb6a68
Added new Set Body Config
2020-01-08 12:15:17 +00:00
Richard Davey
4e8c676895
Full JSDocs coverage!
2020-01-08 11:55:35 +00:00
Richard Davey
49556021ef
New constraint type defs
2020-01-08 11:55:24 +00:00
Richard Davey
ac92fbe1b0
Lots of JSDoc updates. Also removed velocity and force methods as they don't belong in the Factory.
2020-01-08 11:15:30 +00:00
Richard Davey
86edd99248
inverseMass
is a required property! Also removed duplicate jsdoc
2020-01-08 11:15:02 +00:00
Richard Davey
2ac0562fb6
Updated JSDocs
2020-01-08 11:14:40 +00:00
Richard Davey
6a8bce9250
Added essential new type defs
2020-01-08 11:14:26 +00:00
Richard Davey
b908ebdda2
Added fromSVG method
2020-01-08 01:50:51 +00:00
Richard Davey
e861ecf5a0
Emit the current and previous values
2020-01-07 23:57:08 +00:00
Richard Davey
1a69cd9e0f
TweenData now stores its previous ease value.
2020-01-07 23:56:39 +00:00
Richard Davey
736fd6dfb9
Added TWEEN_UPDATE current and previous values
2020-01-07 23:56:15 +00:00
Richard Davey
279829b414
Added JSDocs
2020-01-07 17:54:47 +00:00
Richard Davey
868d599832
Added JSDocs
2020-01-07 17:31:41 +00:00
Richard Davey
99df00244b
Reduced default anchor size
2020-01-07 17:31:29 +00:00
Richard Davey
2b1ce933af
The internal Matter Composite.setModified
function will now emit a compositeModified
event, which the Matter World listens for, if debug draw is enabled, so it can update the composite children render styles.
2020-01-07 17:20:31 +00:00
Richard Davey
a2c1377131
You can now set gravity: false
in your Matter Config and it will reset gravity from the defaults to zero.
2020-01-07 16:38:13 +00:00
Richard Davey
105fb64b4f
Removed spaces
2020-01-07 14:39:22 +00:00
Richard Davey
2b66f81d28
Final config structure and values
2020-01-07 14:02:38 +00:00
Richard Davey
8527e10d64
Added renderCollisions and renderSeparations
2020-01-07 14:02:28 +00:00
Richard Davey
c0e61cf2be
Added renderBodyVelocity
2020-01-07 12:56:30 +00:00
Richard Davey
1eec78375a
Removed old comments
2020-01-07 12:39:38 +00:00
Richard Davey
334f17439e
Update MatterDebugConfig.js
2020-01-07 12:39:31 +00:00
Richard Davey
ad1891cd8d
Added renderBodyBounds and renderBodyAxes methods
2020-01-07 12:39:27 +00:00
Richard Davey
0a801cbac4
Added World.renderGrid method.
...
Renamed showBodyPosition to showPositions
2020-01-07 11:56:39 +00:00
Richard Davey
76d2c971f7
Added showSensor debug option
2020-01-07 00:28:37 +00:00
Richard Davey
64c12a9c60
Added showBodyPosition config option
2020-01-06 22:30:38 +00:00
Richard Davey
aa32235f5a
Added applyForceFromPosition
2020-01-06 17:56:20 +00:00
Richard Davey
2d3a87a3a6
Updated existing
for TS defs. Fix #4941
2020-01-06 13:33:23 +00:00
Richard Davey
5b17e0e61e
Added jsdocs
2020-01-05 23:55:45 +00:00
Richard Davey
beefcf09b6
Added jsdocs
2020-01-05 23:54:08 +00:00
Richard Davey
25339383f1
Added jsdocs
2020-01-05 23:48:49 +00:00
Richard Davey
c5675ae171
Added jsdocs
2020-01-05 23:47:25 +00:00
Richard Davey
ffb604c502
Added new setVelocity, setVelocityX, setVelocityY, setAngularVelocity, applyForce and applyForceFromAngle methods.
2020-01-04 12:31:27 +00:00
Richard Davey
ba4c82e140
Added jsdocs
2020-01-04 12:27:04 +00:00
Richard Haddad
2d0edf2a2f
Merge branch 'master' into master
2020-01-04 05:23:43 +01:00
Richard Davey
a7ebd6b1b5
Merge pull request #4938 from javigaralva/fix-spline-doc
...
Added some documentation for Spline curves.
2020-01-03 23:15:17 +00:00
samme
974ffd93ee
Docs for Phaser.Sound.BaseSoundManager#play
...
Always adds a new sound
2020-01-03 13:44:07 -08:00
samme
b28f45b609
Docs for Phaser.Scenes.ScenePlugin
...
- Note operations are queued
- https://github.com/photonstorm/phaser/issues/4403#issuecomment-481264025
2020-01-03 13:44:07 -08:00
samme
bee0a96542
Docs for Phaser.Curves.Curve and Phaser.Curves.Path
...
And whitespace
2020-01-03 13:44:07 -08:00
Chnapy
9bb02d57ef
improve typings: getPoints functions
2020-01-03 13:21:50 +01:00
Chnapy
265bfc76fb
improve typings: EventEmitter
2020-01-03 13:00:42 +01:00
Chnapy
094e322ace
Revert "add generics for Scene and its config key"
...
This reverts commit a1cf6e4456
.
2020-01-03 12:37:50 +01:00
Javier García Álvarez
6e05e0252f
Added some documentation for Spline curves.
2020-01-03 09:37:59 +01:00
Chnapy
a1cf6e4456
add generics for Scene and its config key
2020-01-02 21:54:45 +01:00
Chnapy
a794c16361
improve typings: GenerateFrameNames
2020-01-02 20:23:10 +01:00
Chnapy
3dfec6fbc3
improve typings: BresenhamPoints function
2020-01-02 20:18:14 +01:00
Richard Davey
5e027f7031
Added JSDocs
2020-01-02 16:45:28 +00:00
Richard Davey
1e6e350f7f
Typo fix
2020-01-02 01:57:26 +00:00
Richard Davey
7fdcfd540c
Remove render.opacity as it's not valid for constraints
2020-01-01 20:02:15 +00:00
Richard Davey
58c8efc2e5
Added jsdocs
2020-01-01 17:33:45 +00:00
Adam Beswick
cf4a4e2107
Remove requestedFullscreenChange and replace with checking the document's fullscreen element
2019-12-30 10:34:43 +00:00
Alex
77dc14ee2f
Changed tile getTint function to use getTintAppendFloatAlphaAndSwap
2019-12-29 21:46:50 -05:00
Richard Davey
4892cc7feb
The Graphics
Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the element, rather than a quad alpha, which never worked for these objects.
2019-12-28 17:37:13 +00:00
Richard Davey
6ffdacc959
The DOMElement
Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the element, rather than a quad alpha, which never worked for these objects.
2019-12-28 17:37:04 +00:00
Richard Davey
e6464f6ad3
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-12-28 17:29:11 +00:00
Richard Davey
5a3d124583
lint fix
2019-12-28 17:28:50 +00:00
Richard Davey
f0e7a9bcf9
The Container
Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the container, rather than a quad alpha, which never worked consistently across Container children. Fix #4916
2019-12-28 17:27:31 +00:00
Richard Davey
949d882788
The Shape
Game Object now uses the AlphaSingle component, allowing you to uniformly set the alpha of the shape, rather than a quad alpha, which never worked for Shape objects.
2019-12-28 17:27:15 +00:00
Richard Davey
695cb7e4e2
AlphaSingle
is a new Game Object Component that allows a Game Object to set its alpha values, but only as a single uniform value, not on a per-quad basis.
2019-12-28 17:27:01 +00:00
Richard Davey
56179c3887
Merge pull request #4920 from samme/feature/error-for-missing-audio-source
...
Throw an error when adding a sound from a missing asset
2019-12-28 16:37:52 +00:00
Richard Davey
5130fccbf5
Merge pull request #4921 from samme/feature/emitter-remove
...
Add ParticleEmitter.remove() and ParticleEmitterManager#removeEmitter()
2019-12-28 16:35:07 +00:00
Richard Davey
5adf6382ff
Merge pull request #4922 from samme/feature/emitter-setTint
...
Add ParticleEmitter#setTint()
2019-12-28 16:33:39 +00:00
Richard Davey
e7852b5384
Merge pull request #4923 from samme/patch-2
...
Correct type for Phaser.Tilemaps.LayerData.data
2019-12-28 16:22:59 +00:00
Richard Davey
b01c4b400f
Merge pull request #4930 from jcyuan/path-missing-crop
...
Crop component is missing from `RenderTexture` class
2019-12-28 16:22:20 +00:00
Richard Davey
b0c101a1cc
Merge pull request #4926 from samme/feature/distances
...
Add Phaser.Math.Distance methods
2019-12-28 16:14:12 +00:00
J.C
936563df11
Crop component is missing from RenderTexture
class
2019-12-27 17:01:14 +08:00
samme
148e907b71
Add Math.Distance methods
...
- BetweenPoints()
- BetweenPointsSquared()
- Chebyshev()
- Snake()
2019-12-23 17:20:43 -08:00
samme
e752b5dc92
Add Phaser.Actions.AlignTo() and Phaser.Display.Align.To.QuickSet()
2019-12-23 16:37:43 -08:00
samme
f1001578c5
Bracket notation for type
...
Phaser.Tilemaps.LayerData#data
2019-12-23 12:57:58 -08:00
samme
15506e0faf
Add ParticleEmitter.remove() and ParticleEmitterManager#removeEmitter()
2019-12-23 10:36:35 -08:00
samme
56cd59c537
Throw error for a bad audio asset key
2019-12-23 09:46:45 -08:00
samme
559c89eaf2
Add ParticleEmitter#setTint()
2019-12-23 09:25:35 -08:00
Richard Davey
64690cf987
Body.gravityScale
is a new vector property that allows you to scale the effect of world gravity on a specific Body.
2019-12-21 08:29:57 +00:00
Richard Davey
66a25e2117
Setting lineSpacing
in the Text Game Object style config would set the value but not apply it to the Text, leaving you to call updateText
yourself. If set, it's now applied on instantiation. Fix #4901
2019-12-18 14:55:12 +00:00
Richard Davey
752999c92b
The Mesh
and Quad
Game Objects have had the GetBounds
component removed as it cannot operate on a Mesh as they don't have origins. Fix #4902
2019-12-18 14:43:23 +00:00
Richard Davey
9379f3ce17
Merge pull request #4877 from rexrainbow/curve-improvement
...
Add arguments step and out in curve.getSpacedPoints() method
2019-12-18 14:40:49 +00:00
Richard Davey
a4fb73fe38
Merge pull request #4879 from rexrainbow/curve-improvement2
...
Override default Curve.getUtoTmapping method
2019-12-18 14:37:36 +00:00
Richard Davey
55212dc2fb
Merge pull request #4892 from BeLi4L/master
...
TypeScript: Improve `Phaser.Math.RND` types
2019-12-18 14:36:52 +00:00
Richard Davey
d995cff36f
Merge pull request #4885 from rexrainbow/bug/game.destroy()
...
Fix bug of game.destroy()
2019-12-18 14:33:03 +00:00
Richard Davey
205bbab268
Merge pull request #4886 from rexrainbow/text-wrap
...
Don't add white space at last word of a line
2019-12-18 14:31:11 +00:00
Richard Davey
65efb6bcb7
Merge pull request #4900 from samme/patch-1
...
Correct docs for Phaser.Math.GetSpeed()
2019-12-18 14:30:31 +00:00
Richard Davey
29b0e96407
Merge pull request #4909 from samme/docs/arcade-physics-3
...
Docs for Arcade Physics
2019-12-18 14:29:51 +00:00
Richard Davey
e5ab24ec8c
Merge pull request #4912 from javigaralva/add-gameobjectfactory-docs
...
Added doc for `GameObjectFactory.register` and `GameObjectFactory.remove`
2019-12-18 14:29:25 +00:00
Richard Davey
427d88ed79
Merge pull request #4913 from javigaralva/fix-doc-static-functions
...
Fix doc static functions
2019-12-18 14:28:51 +00:00
Javier García Álvarez
9d418eae73
Fixed jsdoc types to get TS definition intellisense.
2019-12-18 12:25:14 +01:00
Javier García Álvarez
e1d288a834
Add optional params to ParseFromAtlas doc
2019-12-18 12:22:30 +01:00
Javier García Álvarez
dbaf6f1f75
Fixed jsdocs @name to @method
2019-12-18 11:48:30 +01:00