Richard Davey
4f80ec5748
Fix spelling mistake
2020-04-27 10:13:15 +01:00
Richard Davey
3147d412f9
Merge pull request #5093 from samme/feature/path-follower-delta
...
Add PathFollower#pathDelta
2020-04-27 10:12:03 +01:00
Richard Davey
e009ec5fdc
Merge pull request #5096 from samme/feature/Rectangle-FromXY
...
Add Phaser.Geom.Rectangle.FromXY()
2020-04-27 10:10:39 +01:00
Richard Davey
1dd3d4e372
Merge pull request #5055 from samme/fix/html5audio-volume
...
Clamp audio tag volume in HTML5AudioSound
2020-04-27 10:08:55 +01:00
Richard Davey
3149cd6bcc
Merge pull request #5095 from samme/feature/new-soundmanager-methods
...
Add new Sound Manager methods
2020-04-27 10:07:14 +01:00
Richard Davey
3122b51f66
Merge pull request #5106 from samme/fix/NoAudioSound
...
Fix destroying NoAudioSound and add missing methods
2020-04-27 10:02:53 +01:00
Richard Davey
f4efebfb64
Merge pull request #5103 from samme/docs/misc-6
...
Docs corrections
2020-04-27 10:01:33 +01:00
Richard Davey
0b059af3ea
Merge pull request #5107 from samme/fix/html5-audio-dataset
...
Fix TypeError when loading HTML5AudioFile
2020-04-27 10:00:29 +01:00
Richard Davey
6c47e3d9e1
Formatting fixes
2020-04-27 09:59:40 +01:00
Ben Randall
c4e9860c4b
Fixes to JSON texture parsers
...
Add support for anchors to JSON Hash
Accept pivot value from anchor property or pivot property.
2020-04-26 22:12:06 -07:00
samme
56ad38f17d
Docs: correct Tilemap#renderDebugFull
2020-04-26 12:38:20 -07:00
samme
b47073395b
Docs: generic return
2020-04-24 13:30:07 -07:00
samme
32a8927736
Docs: Math
...
RotateAround, RotateAroundDistance
2020-04-24 13:10:06 -07:00
samme
c0e5f201cd
Docs: Arcade Physics collisions
2020-04-23 10:50:33 -07:00
samme
c472a50367
Use native dataset if available
...
Fixes TypeError in strict mode (`dataset` is readonly)
2020-04-22 17:52:51 -07:00
samme
1a27ff9c04
Docs: NoAudioSound
...
Does not extend BaseSound, strictly speaking
2020-04-22 10:37:21 -07:00
samme
a9adf0f6cf
Fix NoAudioSound#destroy
2020-04-22 10:36:42 -07:00
samme
9909ada001
Add NoAudioSound methods
2020-04-22 09:35:57 -07:00
samme
a47408030b
Docs: Phaser.Physics.Arcade.Components.Friction
2020-04-21 15:08:49 -07:00
samme
d17c004787
Docs: correct description for Arcade.Body#drag
...
Fixes #5100
2020-04-21 11:10:43 -07:00
samme
cfe501c338
Docs: correct type for CanvasTexture#getPixels
2020-04-21 11:05:16 -07:00
Martin Blackburn
c4a3a3cc39
added down key to types for SmoothedKeyControlConfig
2020-04-21 11:24:44 +01:00
Volodymyr Linyvyi
8d217d53fa
Set TextureTintPipeline on each 'postRenderCamera' call
2020-04-19 18:44:03 +03:00
samme
6506295d62
Add Vector2 methods
2020-04-17 10:21:04 -07:00
samme
03c9c5fa33
Add PathFollower#pathDelta
2020-04-17 09:28:40 -07:00
samme
108c780ea9
Add Phaser.Curves.Path#getTangent
2020-04-17 09:26:01 -07:00
lucap
6e30293142
#5078
...
- updated description of data in the SceneTransitionConfig definition
2020-04-14 07:33:23 +02:00
Godard
5fd94d76a7
fix Input enableDebug function, add debug Shape to parentContainer
2020-04-09 12:04:20 -04:00
Godard
9c2447dcb8
fix Container pointToContainer function
2020-04-09 12:02:31 -04:00
lucap
ace0e200e4
#5078
...
- passing the data from the transition to the System.wake method
- added missing property to the SceneTransitionConfig definition
2020-04-08 20:20:01 +02:00
samme
e8381c1b9b
Add new Sound Manager methods
...
- BaseSoundManager#get()
- BaseSoundManager#getAll()
- BaseSoundManager#removeAll()
- BaseSoundManager#stopByKey()
2020-04-04 14:29:31 -07:00
samme
eeb00c1a92
Docs: when to quote fontFamily
...
Fixes #5076
2020-04-04 10:56:52 -07:00
samme
dfe4219f65
Add Geom.Rectangle.FromXY
2020-04-03 20:46:10 -07:00
samme
4a711e42fe
Docs: fix description for TiledObject.point
2020-04-03 20:13:13 -07:00
Survesh
ed0e76cdbf
Updated fix for issue #5069
2020-04-03 18:48:49 +05:30
samme
b51b0a1d2a
Add Math.Angle.Random() and Math.Angle.RandomDegrees()
2020-04-02 10:41:43 -07:00
samme
f6dfb9a278
Reset sceneUpdate in boot
...
Fixes #5065
2020-04-01 13:12:25 -07:00
samme
9ff1634e66
Docs: correct names for easing functions
...
Linear, Stepped. #5062
2020-03-29 14:42:42 -07:00
jjcapellan
4e4b1359de
fix #5059
2020-03-28 19:20:07 +01:00
samme
08aaf6231f
Docs: fix my math in Transform#rotation
2020-03-27 21:18:49 -07:00
samme
51ecad61ad
Clamp volume
...
Fixes 'IndexSizeError: The index is not in the allowed range'
2020-03-24 17:00:25 -07:00
samme
cae9d2ec07
Description for BaseSoundManager#playAudioSprite
2020-03-24 13:56:22 -07:00
aucguy
ff886b001e
Fix loading audio and video with blob urls
...
Passing a blob url as the second parameter to `this.load.audio` or
`this.load.video` would cause Phaser to load a different url.
Additionally, `this.load.path` would incorrectly be prepended to the
url.
`AudioFile.getAudioURL` and `VideoFile.getVideoURL`, are expected to
return an object with two properties; url and type. However when passed
a blob url they return a string. The return value's
`url` property is inspected to get the url. For strings' the property is
`undefined`. If the url property is undefined then a url derived from
the asset key is used instead.
2020-03-22 22:21:27 -05:00
samme
bc8606c65c
Add Phaser.Types.Tilemaps.TiledObject.point
2020-03-22 16:09:23 -07:00
samme
5ec9e6b91a
Offset by object data dimensions, allowing zero offset
2020-03-22 09:37:42 -07:00
samme
fb881a54b9
Add 'point' property for points
...
https://doc.mapeditor.org/en/latest/reference/json-map-format/#point-example
2020-03-22 09:29:10 -07:00
samme
df1537fa36
Remove redundant assignments
...
Already picked
2020-03-22 09:28:24 -07:00
samme
c3dae63c20
Description for Vector2#normalizeRightHand
2020-03-21 13:57:12 -07:00
samme
700d3b7316
Physics groups descriptions
2020-03-21 09:46:31 -07:00
samme
037d3f1823
Description for pack
property
2020-03-18 10:24:59 -07:00
samme
f39e3d8f10
Add Phaser.Types.Loader.FileTypes.PackFileSection
...
Correct types in Scenes.SettingsConfig, Scenes.SettingsObject
Fixes #5046
2020-03-17 17:25:42 -07:00
Chris Andrew
8655dfa6c9
WebAudioSoundManager description spacing
2020-03-17 21:22:40 +00:00
Chris Andrew
3fb803568d
HTML5AudioSoundManager description spacing
2020-03-17 21:21:13 +00:00
Jared Cook
2f8c00639b
added stepRate check for GetPoints methods
2020-03-16 16:12:22 -05:00
samme
b61edd088e
Update display aspect ratio in setGameSize()
...
Fixes #4971
2020-03-13 16:49:11 -07:00
Eliot Godard
f4ba7c4e3a
Fix wrong Container.getBounds with child container
2020-03-12 01:42:17 -04:00
samme
ed83c6adc0
Fix undefined state during processing
2020-03-11 13:52:54 -07:00
halilcakar
43f26ad31f
Update JSDocs for events
2020-03-10 11:11:43 +03:00
samme
68db7d086e
Exit early for checkCollision.none on bodyB
2020-03-04 12:47:58 -08:00
samme
98a6f7d4bd
Fix 'TypeError: Invalid calling object' in IE
2020-03-02 12:39:13 -08:00
J.C
d8dc7fb4d7
TS def improvements
2020-03-02 20:14:25 +08:00
jjcapellan
327748bbbf
Refactoring syncToRender to fixedStep
2020-02-28 18:47:44 +01:00
samme
a84f7efb45
Docs: radian values for Transform#rotation
2020-02-27 10:15:44 -08:00
samme
677cfae424
Docs for Sound Managers
2020-02-20 09:10:25 -08:00
samme
55e4dc2329
Fix TypeError for headless renderer
2020-02-15 11:50:05 -08:00
Richard Davey
f5128a428a
Fixed Video return type. Fix #5003
2020-02-13 12:13:13 +00:00
scott.l
10322fcd3a
use gameObject's world position as the debug shape position
2020-02-11 00:34:38 +08:00
samme
3c2fac2101
Exit early for checkCollision.none
2020-02-08 17:17:02 -08:00
samme
e100ce6593
checkCollision.none should prevent tile collisions
2020-02-08 17:15:02 -08:00
jjcapellan
7e4c08c270
Added new property syncToRender
2020-02-06 19:58:43 +01:00
Rex
307c2b1584
Add incData, toggleData method
2020-02-05 16:17:54 +08:00
Serg
29c7fcaa7d
Proposed fix for the issue with inconsistent type of 'properties' member of Tile Layer data.
2020-02-04 22:47:22 -05:00
Richard Davey
58d40fa9e0
Cache the vars
2020-02-04 23:56:50 +00:00
Richard Davey
0b696ebc74
Added MatterJS.BodyType
to GameObject.body
type. Fix #4962
2020-02-04 21:13:44 +00:00
Richard Davey
03ee36f9ba
Finished JSDocs
2020-02-04 17:30:27 +00:00
Richard Davey
3183f1e7de
Finished JSDocs
2020-02-04 17:16:19 +00:00
Richard Davey
e675c21db1
Finished JSDocs
2020-02-04 16:53:33 +00:00
Richard Davey
0ee6d16c17
Finished Geom JSDocs
2020-02-04 16:19:42 +00:00
Richard Davey
8f52fe59bb
Completed JSDocs
2020-02-04 14:56:28 +00:00
Richard Davey
20fabba0b9
Impact Physics is now removed from the core API
2020-02-04 14:52:04 +00:00
Richard Davey
b5d91f1fdf
Finished JSDocs
2020-02-04 14:51:43 +00:00
Richard Davey
1a493caa4b
Merge pull request #4970 from samme/fix/arcade-body-setSize-center
...
Fix centering in Body#setSize()
2020-02-04 11:26:17 +00:00
samme
7d5673a0c7
Fix wrong body dimensions from a scaled game object
2020-02-01 17:25:15 -08:00
samme
a312d03843
Docs for Phaser.Physics.Arcade.StaticBody
...
`offset` is read only
2020-02-01 16:30:25 -08:00
samme
c07c57f9f8
Correct center
2020-02-01 16:27:02 -08:00
samme
a13d623743
Correct dimensions from game object
2020-02-01 16:20:46 -08:00
samme
37c64dc0a9
Correct center
in constructor
2020-02-01 16:19:10 -08:00
samme
34176becb5
Correct position
in constructor
2020-02-01 16:18:52 -08:00
Jason Kwok
bee54280ce
Fixed this
return types for Phaser.Plugins.PluginManager
2020-01-30 23:48:56 +08:00
Jason Kwok
f8fd901d96
Fixed this
return types for Phaser.Input.Touch.TouchManager
2020-01-30 23:46:02 +08:00
Jason Kwok
fc51d38e47
Fixed this
return types for Phaser.Input.Mouse.MouseManager
2020-01-30 23:43:02 +08:00
Jason Kwok
5f4941d9a4
Fixed this
return types for Phaser.Geom.Triangle
2020-01-30 23:41:35 +08:00
Jason Kwok
77cae094d9
Fixed this
return types for Phaser.Geom.Rectangle
2020-01-30 23:40:25 +08:00
Jason Kwok
24fbe810df
Fixed this
return types for Phaser.Geom.Polygon
2020-01-30 23:39:08 +08:00
Jason Kwok
edb035512b
Fixed this
return types for Phaser.Geom.Point
2020-01-30 23:37:03 +08:00
Jason Kwok
6dd76958fd
Fixed this
return types for Phaser.Geom.Line
2020-01-30 23:33:40 +08:00
Jason Kwok
5d11497e67
Fixed this
return types for Phaser.Geom.Ellipse
2020-01-30 23:32:05 +08:00
Jason Kwok
c8f6dfdabe
Fixed this
return types for Phaser.Geom.Circle
2020-01-30 23:29:34 +08:00
Jason Kwok
1969c8fb99
Fixed this
return types for Phaser.Curves.Path
2020-01-30 23:25:51 +08:00
Jason Kwok
aaef2d2f9f
Fixed this
return types for Phaser.Curves.Spline
2020-01-30 23:23:27 +08:00
Jason Kwok
7d600045d4
Fixed this
return types for Phaser.Curves.Ellipse
2020-01-30 23:20:17 +08:00
Jason Kwok
d46d9f3d96
Fixed this
return types for Phaser.Animations.AnimationManager
2020-01-30 23:17:23 +08:00
Jason Kwok
5c040aaa62
Fixed this
return types for Phaser.Animations.Animation
2020-01-30 23:13:27 +08:00
Jason Kwok
1146390520
Fixed this
return types for Phaser.Cache.BaseCache
2020-01-30 23:11:38 +08:00
Jason Kwok
b9e3a6395b
Fixed this
return types for Phaser.Cameras.Scene2D.CameraManager
2020-01-30 23:07:23 +08:00
Jason Kwok
293f6e77f5
Fixed this
return types for Phaser.Cameras.Scene2D.Camera
2020-01-30 23:05:56 +08:00
Jason Kwok
a7dd0d1798
Fixed this
return types for Phaser.Cameras.Scene2D.BaseCamera
2020-01-30 23:02:06 +08:00
Jason Kwok
a4745a6a38
Fixed this
return types for Phaser.Cameras.Controls.SmoothedKeyControl
2020-01-30 22:59:47 +08:00
Jason Kwok
7e584ce99d
Fixed this
return types for Phaser.Cameras.Controls.FixedKeyControl
2020-01-30 22:57:57 +08:00
Jason Kwok
02395fd568
Fixed this
return types for Phaser.Data.DataManager
2020-01-30 22:51:35 +08:00
Jason Kwok
4cd6b71413
Revert "Changed Phaser.Scale.Zoom
to @enum {integer}
"
...
This reverts commit f4eb9c04cd
.
2020-01-30 22:44:17 +08:00
Jason Kwok
fe279e9f30
Revert "Changed Phaser.Display.Align
to @enum
"
...
This reverts commit bb1b96ac33
.
2020-01-30 22:44:02 +08:00
Jason Kwok
cba41c9ed7
Revert "Use Phaser.Display.Align
enum instead of integer
"
...
This reverts commit 9e7c1af2e2
.
2020-01-30 22:43:49 +08:00
Jason Kwok
9e7c1af2e2
Use Phaser.Display.Align
enum instead of integer
2020-01-30 22:34:56 +08:00
Jason Kwok
bb1b96ac33
Changed Phaser.Display.Align
to @enum
2020-01-30 22:29:19 +08:00
Jason Kwok
f4eb9c04cd
Changed Phaser.Scale.Zoom
to @enum {integer}
2020-01-30 22:20:23 +08:00
Jason Kwok
3367ddc1fe
Fixed this
return types for Phaser.Input.InputPlugin
2020-01-30 17:48:47 +08:00
Jason Kwok
8b99c6496a
Merge branch 'master' of https://github.com/photonstorm/phaser into jsdoc
2020-01-30 17:44:06 +08:00
Jason Kwok
23ad6e4241
Fixed this
return types for Phaser.Input.Keyboard.KeyboardPlugin
2020-01-30 17:42:59 +08:00
Jason Kwok
71cb7c4e07
Merge branch 'jsdoc' of https://github.com/JasonHK/phaser into jsdoc
2020-01-30 17:40:32 +08:00
Jason Kwok
c71acd3725
Fixed this
return types for Phaser.Input.Keyboard.Key
2020-01-30 17:40:23 +08:00
Richard Davey
e4c158c883
Merge pull request #4968 from JasonHK/jsdoc
...
Fixed `this` return types
2020-01-29 11:48:43 +00:00
Richard Davey
72f0395eec
Update TransformMatrix.js
...
Added missing braces.
2020-01-29 11:48:11 +00:00
Richard Davey
52b3176771
Update MatterTileBody.js
2020-01-28 23:25:51 +00:00
Richard Davey
d56a6c8790
MatterTileBody
now extends EventEmitter
, meaning you can listen to collision events from Tiles directly and it will no longer throw errors about gameObject.emit
not working. Fix #4967
2020-01-28 23:25:12 +00:00
Richard Davey
b8d2a5b792
Undef or null
2020-01-28 16:13:59 +00:00
Richard Davey
ef641a104f
Update Rope.js
2020-01-28 12:59:11 +00:00
Richard Davey
7ce48c20de
Update Rope.js
2020-01-28 12:50:22 +00:00
Richard Davey
ddf535c6c3
Rope can now draw vertex debug to a Graphics instance
2020-01-28 12:46:35 +00:00
Richard Davey
c357b5e56d
Added alignment property
2020-01-28 12:46:11 +00:00
Richard Davey
0a4b3e3785
Update RopeCanvasRenderer.js
2020-01-28 12:46:03 +00:00
Richard Davey
0eaf0c47b5
Respect Camera.renderToGame property
2020-01-27 23:35:52 +00:00
Richard Davey
91dbd42d44
Camera.renderToGame
is a new property used in conjunction with renderToTexture
. It controls if the Camera should still render to the Game canvas after rendering to its own texture or not. By default, it will render to both, but you can now toggle this at run-time.
2020-01-27 23:35:39 +00:00
samme
bc39e70412
Fix centering Body in setSize()
2020-01-27 11:15:06 -08:00
Richard Davey
54aebfc842
Removed NOOPs and fixed UV projection for vertical atlas frames
2020-01-27 15:15:19 +00:00
Richard Davey
4de9d52769
Animation.setCurrentFrame
will no longer try to call setOrigina
or updateDisplayOrigin
if the Game Object doesn't have the Origin component, preventing unknown function errors.
2020-01-27 14:48:50 +00:00
Jason Kwok
ec25759747
Fixed this
return types for Phaser.GameObjects.Zone
2020-01-26 21:52:37 +08:00
Jason Kwok
8e82f22858
Fixed this
return types for Phaser.GameObjects.Text
2020-01-26 21:43:48 +08:00
Jason Kwok
192e03c932
Fixed this
return types for Phaser.GameObjects.Sprite
2020-01-26 21:36:59 +08:00
Jason Kwok
4578a9e13c
Fixed this
return types for Phaser.GameObjects.Quad
2020-01-26 21:26:34 +08:00
Jason Kwok
fca63274e2
Fixed this
return types for Phaser.GameObjects.Particles.Zones.EdgeZone
2020-01-26 21:21:25 +08:00
Jason Kwok
022fa20673
Fixed this
return types for Phaser.GameObjects.Particles.EmitterOp
2020-01-26 21:18:14 +08:00
Jason Kwok
270f7b33a3
Fixed this
return types for Phaser.GameObjects.Particles.ParticleEmitterManager
2020-01-26 21:15:30 +08:00
Jason Kwok
1fd71ae088
Fixed this
return types fro Phaser.GameObjects.Particles.ParticleEmitter
2020-01-26 21:13:11 +08:00
Jason Kwok
4df2179496
Fixed this
return types for Phaser.GameObjects.Light
2020-01-26 21:06:58 +08:00
Jason Kwok
66e314432c
Fixed this
return types for Phaser.GameObjects.Group
2020-01-26 21:03:57 +08:00
Jason Kwok
494ddf431d
Fixed this
return types for Phaser.GameObjects.Graphics
2020-01-26 21:01:00 +08:00
Jason Kwok
91f1fefd2b
Fixed this
return types for Phaser.GameObjects.Container
2020-01-26 20:50:59 +08:00
Jason Kwok
00818a9c61
Fixed this
return types for Phaser.GameObjects.Components.TransformMatrix
2020-01-26 20:42:58 +08:00
Jason Kwok
c97a59011d
Fixed this
return types for Phaser.GameObjects.Components.PathFollower
2020-01-26 20:36:05 +08:00
Jason Kwok
87bf4bd648
Fixed this
return types for Phaser.GameObjects.Bob
2020-01-26 20:25:26 +08:00
Jason Kwok
401cb81590
Fixed this
return type for Phaser.GameObjects.DynamicBitmapText
2020-01-26 20:16:18 +08:00
Jason Kwok
f970afb34c
Fixed this
return type for Phaser.Loader.LoaderPlugin
2020-01-26 00:31:56 +08:00
Richard Davey
009dad281f
Fixed comparison
2020-01-24 18:18:06 +00:00
Richard Davey
5022830c7a
Added preDestroy handler
2020-01-24 18:03:18 +00:00
Richard Davey
bf65d6b577
Push to the updateList too
2020-01-24 18:01:49 +00:00
Richard Davey
e5f5ed70fe
Added support for animations, texture flipping, alignment resetting and tint fill
2020-01-24 18:01:40 +00:00
Richard Davey
79357e35ab
Support Rope.alpha
2020-01-24 15:35:16 +00:00
Richard Davey
2f6921b80f
Added horizontal parameter
2020-01-24 15:35:08 +00:00
Richard Davey
1463aaaaa1
Added horizontal flag and Alpha and Flip components
2020-01-24 15:35:00 +00:00
Richard Davey
72c3b55235
Testing vertical Rope support
2020-01-24 01:58:29 +00:00
mkt
912c0e3bbc
set depth of input debug body
2020-01-22 19:01:26 +01:00
Richard Davey
0d263be52a
Config.loaderWithCredentials
is the new global setting for XHRSettings.withCredentials
.
2020-01-22 16:30:11 +00:00
Richard Davey
af85f9451d
XHRLoader
will now use the XHRSettings.withCredentials
as set in the file or global loader config.
2020-01-22 16:29:58 +00:00
Richard Davey
bf0feee498
XHRSettings.withCredentials
is a new boolean property that controls the withCredentials
setting of the XHR Request made by the Loader. It indicates whether or not cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. You can set this on a per-file basis, or global in the Game Config.
2020-01-22 16:29:47 +00:00
Gauthier Billot
78e2027a0c
Create tilesets from image collections
2020-01-21 22:15:52 +01:00
Richard Davey
392c52fa8b
Update GetEaseFunction.js
2020-01-20 23:34:40 +00:00
Richard Davey
6a72524869
Added new GetEasedPoints function
2020-01-20 23:34:33 +00:00
Richard Davey
f883cb492a
Fixed issue with not enough Rope segments being provided.
...
Allow to pass in integer to split Rope into.
2020-01-20 17:29:11 +00:00
Richard Davey
78d009c249
Merge branch 'master' of https://github.com/photonstorm/phaser
2020-01-20 16:08:15 +00:00
Richard Davey
ade73f28bf
Rope updates
2020-01-20 16:01:30 +00:00
Richard Davey
06bad68468
Improved JSDocs
2020-01-20 15:47:38 +00:00
Richard Davey
57a022db53
Always flush, because tri-strip
2020-01-17 19:04:16 +00:00
Richard Davey
d5473a4840
Added setTintFill method
2020-01-17 17:58:50 +00:00
Richard Davey
18120cb0d5
New Strip pipeline
2020-01-17 17:58:41 +00:00
Richard Davey
0af1303ba2
Added TextureTintStrip pipeline
2020-01-17 17:38:24 +00:00
Richard Davey
162b07bd6b
Added new Rope Game Object
2020-01-17 17:38:06 +00:00
Richard Davey
e4e265c857
Preparing for 3.23 dev
2020-01-17 11:02:45 +00:00
samme
f4c011496c
Fix PathFollower always at end of path
2020-01-16 14:44:26 -08:00
Richard Davey
4a6b2087f7
Fixed internal callback handlers
2020-01-15 12:45:59 +00:00
Richard Davey
ff65e69cd1
Changed copyright date to 2020
2020-01-15 12:07:09 +00:00
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