samme
36f08e75b8
Fix error for missing audio tag (already released)
2020-05-21 16:40:50 -07:00
Adam Moore
341bc9b9d8
update docs for pixelArt to be more specific
...
For pixel art, we want the aliasing, so anti-aliasing should be off, or false.
2020-05-20 17:25:50 -07:00
samme
ee284c6a42
Remove fullscreen promise, handle in onFullScreenChange() instead
...
Lets Safari start fullscreen (#5143 )
2020-05-14 08:43:32 -07:00
samme
7ab57258fc
Tiny optimization for BaseCamera#cull
2020-05-13 11:20:38 -07:00
samme
1ed0aaf8ba
Fix position from scaled sprite
2020-05-11 10:38:48 -07:00
samme
fa2e76c18c
Add missing config when passing children only
2020-05-11 10:24:01 -07:00
samme
6f3c0d2bb8
Don't discard config
2020-05-11 10:22:13 -07:00
samme
70b8bfe4b0
Add children after configuration
...
Ensures the create handler is called
2020-05-11 10:20:52 -07:00
samme
f374a4c045
Docs: Body descriptions
...
'boundary' is ambiguous, given the other bounds
2020-05-08 10:50:11 -07:00
samme
35672274bc
Docs: Correct description in ArcadeWorldConfig
2020-05-08 10:46:08 -07:00
samme
00d645e438
Print texture key in warning for zero frames
2020-05-08 10:31:20 -07:00
samme
d89b09f181
Fix undefined key in error message
2020-05-06 18:07:23 -07:00
samme
928ac2c31c
Docs for Phaser.Physics.Arcade.Body#facing
2020-05-06 10:26:27 -07:00
samme
ee957757bf
Docs: correct type for Phaser.Loader.File#url
2020-05-06 08:53:47 -07:00
samme
b2eb6bfc43
Docs: Phaser.Physics.Arcade.World#useTree
...
Static bodies are always kept in an RTree
2020-05-05 15:32:49 -07:00
samme
62f0cf732a
Always search the static tree
2020-05-05 10:47:21 -07:00
samme
d80e4f5824
Skip intersects check by argument
2020-05-04 22:06:24 -07:00
samme
992af0b15e
Fast path for overlapOnly
2020-05-03 23:17:27 -07:00
samme
b7bc26d06f
Correct types for GameObject#body?
2020-05-02 16:16:16 -07:00
samme
1f21a7d3be
Fix url type check
...
Fixes #5125
2020-05-02 12:36:19 -07:00
samme
9965c81c66
Set states FILE_LOADING and FILE_LOADED
2020-05-02 10:01:38 -07:00
samme
db8db69575
Correct type for Phaser.Physics.Arcade.Body#drag
...
Fixes #5100
2020-04-29 11:18:56 -07:00
samme
f8376c83bb
Fix wake() when running
...
Should not sleep
2020-04-29 09:39:22 -07:00
Richard Davey
56474423df
Use Events and remove dead code
2020-04-27 16:40:46 +01:00
Richard Davey
afe3d7ff7b
Update InputPlugin.js
2020-04-27 16:40:33 +01:00
Richard Davey
6668a8d763
New Events and lint fixes
2020-04-27 16:36:23 +01:00
Richard Davey
ca8f0be256
Added more docs
2020-04-27 16:21:34 +01:00
Richard Davey
33dfd5c519
Fixed method name
2020-04-27 16:21:27 +01:00
Richard Davey
96b1d4c783
Update LayerDataConfig.js
2020-04-27 16:16:50 +01:00
Richard Davey
ee0a04ec19
Fixed data type
2020-04-27 16:15:05 +01:00
Richard Davey
cef9aa2120
New Type Defs
2020-04-27 16:13:49 +01:00
Richard Davey
b035d190e9
Added JSDocs
2020-04-27 16:13:40 +01:00
Richard Davey
4d190470f3
Fixed Vector2Like types
2020-04-27 16:13:17 +01:00
Richard Davey
6783a430de
Dropped beta flag
2020-04-27 15:41:58 +01:00
Richard Davey
4c77f26a29
Added JSDocs
2020-04-27 15:41:44 +01:00
Richard Davey
f770c433ce
Fixed types ( fix #5017 )
2020-04-27 15:23:00 +01:00
Richard Davey
19c53407e5
CanvasTexture.setSize
forgot to update the width
and height
properties of the Texture itself. These now match the underlying canvas element. Fix #5054
2020-04-27 15:19:00 +01:00
Richard Davey
7525ed2533
Updated docs
2020-04-27 15:09:37 +01:00
Richard Davey
e4a784cb8b
Lint fixed version of #4373
2020-04-27 14:40:42 +01:00
Richard Davey
74bd872704
Updated version numbers
2020-04-27 14:00:47 +01:00
Richard Davey
756072b058
Merge pull request #4159 from jan1za/master
...
Added RotateTo Effect to Camera
2020-04-27 13:57:47 +01:00
Richard Davey
20ae4e3806
Merge pull request #4618 from jorbascrumps/feat-multiple-loader-headers
...
Adds support for multiple custom Loader headers
2020-04-27 13:54:26 +01:00
Richard Davey
2d05802125
Merge pull request #4851 from rexrainbow/Input-event-of-container-bug
...
Fix input-event bug in nested container
2020-04-27 13:50:16 +01:00
Richard Davey
bf9cbabe50
Fixed lint errors with #4964 PR
2020-04-27 13:46:37 +01:00
Richard Davey
06f8d1b8a5
Merge pull request #4964 from gogoprog/feature/tilemapImageCollections
...
Create tilesets from image collections
2020-04-27 13:42:46 +01:00
Richard Davey
e1b8b04623
Merge pull request #4975 from JasonHK/jsdoc
...
Fixed `this` return types
2020-04-27 13:25:58 +01:00
Richard Davey
fd4ac6dfdf
Merge pull request #5052 from aucguy/contribute
...
Fix loading audio and video with blob urls
2020-04-27 13:12:17 +01:00
Richard Davey
63eb41eb94
Merge pull request #5051 from samme/feature/tiled-point-and-createFromObjects
...
Add Tiled point object and change offset in createFromObjects()
2020-04-27 13:10:34 +01:00
Richard Davey
e85a66f4e9
Shouldn't be part of the Container
2020-04-27 13:04:08 +01:00
Richard Davey
91e8d331c6
lint fixes
2020-04-27 13:03:55 +01:00
Richard Davey
f66e05b81d
Merge pull request #5042 from Minious/master
...
Fix wrong Container.getBounds with child container
2020-04-27 13:01:53 +01:00
Richard Davey
a03b6e6592
Lint fixes
2020-04-27 12:59:28 +01:00
Richard Davey
3df2b2eac4
Merge pull request #5041 from samme/fix/audiofile-state
...
Fix undefined state during processing of AudioFile and VideoFile
2020-04-27 12:54:27 +01:00
Richard Davey
2c80fad116
When enabling a Game Object for Input Debugging the created debug shape will now factor in the position, scale and rotation of the Game Objects parent Container, if it has one. #4998
2020-04-27 12:52:36 +01:00
Richard Davey
9f5ac5e46b
Merge pull request #4998 from scott20145/fix_inputdebug_shape_position
...
Fix inputDebug shape position when the target is inside a container
2020-04-27 12:45:25 +01:00
Richard Davey
d438c93435
Merge pull request #4985 from rexrainbow/datamanager-improvement
...
Add incData, toggleData methods
2020-04-27 12:43:56 +01:00
Richard Davey
91bfd7d0c2
Merge pull request #4984 from Nightspeller/issue#4983
...
Proposed fix for the issue#4983
2020-04-27 12:39:24 +01:00
Richard Davey
f92b649d85
Merge pull request #5004 from samme/fix/4976-headless-text
...
Fix updateText() error for headless renderer
2020-04-27 12:36:01 +01:00
Richard Davey
ba76f61109
Merge pull request #4995 from samme/fix/checkCollision-none-vs-tile
...
Fix checkCollision none for tile collisions; and optimizations
2020-04-27 12:32:40 +01:00
Richard Davey
0b1267e93a
Merge pull request #4965 from mktcode/patch-1
...
set depth of input debug body
2020-04-27 12:25:45 +01:00
Richard Davey
eaebcbd91f
Merge pull request #5033 from samme/fix/matter-common-isString
...
Fix 'TypeError: Invalid calling object' in IE
2020-04-27 12:23:46 +01:00
Richard Davey
6a93f9e746
Merge pull request #5043 from samme/fix/setGameSize-aspect
...
Fix wrong display aspect ratio after setGameSize()
2020-04-27 12:21:54 +01:00
Richard Davey
d0c4f4df12
Merge pull request #5047 from jdcook/fix/particles-get-points
...
added stepRate check for GetPoints methods
2020-04-27 12:20:22 +01:00
Richard Davey
598356dfef
Merge pull request #5048 from samme/docs/PackFileSection
...
Add Phaser.Types.Loader.FileTypes.PackFileSection
2020-04-27 12:16:34 +01:00
Richard Davey
ab7b7b19a4
Merge pull request #5066 from samme/fix/5065-scene-update-before-create
...
Fix scene update before create
2020-04-27 12:15:41 +01:00
Richard Davey
db882e82dd
Merge pull request #5060 from jjcapellan/fix5059
...
fix #5059
2020-04-27 12:13:51 +01:00
Richard Davey
c34212aed4
Merge pull request #5070 from 123survesh/fix_mozLockOrientation
...
Fix for issue #5069 , where using lockOrientation breaks in firefox
2020-04-27 12:11:51 +01:00
Richard Davey
d2dce27e25
Merge pull request #5082 from MrMadClown/master
...
#5078
2020-04-27 12:09:36 +01:00
Richard Davey
5d2f61b232
Merge pull request #5094 from samme/feature/path-getTangent
...
Add Phaser.Curves.Path#getTangent
2020-04-27 12:06:50 +01:00
Richard Davey
e9afbdd933
Merge pull request #5099 from TroKEMp/master
...
Fix camera's fadeIn/fadeOut effects
2020-04-27 12:04:54 +01:00
Richard Davey
625ca20a0e
Fix lint error introduced by #4989
2020-04-27 12:02:30 +01:00
Richard Davey
c8e0f91083
Merge pull request #4989 from jjcapellan/syncToRender
...
New property Arcade.World.fixedStep
2020-04-27 12:01:24 +01:00
Richard Davey
43670b1abc
Merge pull request #5032 from jcyuan/master
...
TS def improvements
2020-04-27 11:56:59 +01:00
Richard Davey
b14b60516a
Fixed duplicate event introduced in #5038
2020-04-27 11:53:08 +01:00
Richard Davey
70a4b9843e
Merge pull request #5038 from halilcakar/master
...
Update JSDocs for events
2020-04-27 11:51:40 +01:00
Richard Davey
46a42f1440
Fix blur / focus event issue (re: #5013 )
2020-04-27 11:13:54 +01:00
Richard Davey
d7ccddb19d
Merge pull request #5101 from MartinBlackburn/addTypes
...
added down key to types for SmoothedKeyControlConfig
2020-04-27 10:27:36 +01:00
Richard Davey
8733847842
Should be between -180, 180 #5075
2020-04-27 10:23:55 +01:00
Richard Davey
92e4345c0e
Should be between -pi, pi #5075
2020-04-27 10:23:44 +01:00
Richard Davey
18d5767e14
Merge pull request #5075 from samme/feature/math-angle-random
...
Add Phaser.Math.Angle.Random() and Phaser.Math.Angle.RandomDegrees()
2020-04-27 10:18:59 +01:00
Richard Davey
fbceacf387
Merge pull request #5092 from samme/feature/Vector2-methods
...
Add Phaser.Math.Vector2 methods
2020-04-27 10:17:42 +01:00
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
Svipal
aae73c3cb8
fixed independent ttw calls in physics/arcade/World.js
2020-04-13 18:40:58 +02:00
svipal
641251a338
Merge pull request #6 from photonstorm/master
...
fuse with master + cleanup
2020-04-10 21:09:06 +02:00
svipal
5911b94d35
Revert "clean up"
...
This reverts commit 854589ddbe
.
woops
2020-04-10 20:55:31 +02:00
svipal
854589ddbe
clean up
2020-04-10 20:40:52 +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
Svipal
8665e08f13
refactored things so that there is no more switching at runtime depending on orientation
2020-04-03 19:36:13 +02: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
Svipal
1ccc815ce7
removed a few debug prints, moved isoBounds to a new component, started to add constants
2020-03-22 12:35:24 +01:00
Svipal
33daee1d27
canvas renderer typo fix
2020-03-22 08:48:26 +01:00
svipal
9c23f7e72f
Update src/tilemaps/ParseToTilemap.js
...
Co-Authored-By: Chris Andrew <hex727@gmail.com>
2020-03-22 08:46:07 +01: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
Svipal
72cb3343d6
cleaning up debug prints and such
2020-03-21 11:25:04 +01:00
Svipal
cec71a85ea
added hexagonal support
2020-03-21 10:19:03 +01: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
Svipal
406e6eb093
fixed worldtotilex on odd tiles
2020-03-14 10:57:19 +01:00
Svipal
66e99bccc6
changed a few things, preparing tiles
2020-03-14 10:23:13 +01:00
Svipal
a7d4816564
added staggered support
2020-03-14 10:11:04 +01: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
svipal
9780592a90
Update StaticTilemapLayer.js
2020-02-08 15:55:22 +01:00
svipal
8e30c5ef1c
Update TileToWorldX.js
2020-02-08 15:53:53 +01:00
svipal
cf622269e8
Update PutTileAt.js
2020-02-08 15:51:12 +01:00
svipal
a40ff084f9
Update DynamicTilemapLayerWebGLRenderer.js
2020-02-08 15:25:51 +01:00
svipal
304ff79b2b
Update StaticTilemapLayer.js
2020-02-08 12:23:09 +01:00
svipal
283bb46358
Update ParseJSONTiled.js
2020-02-08 12:15:30 +01:00
svipal
71cf182d97
Update LayerData.js
2020-02-08 12:14:49 +01:00
svipal
a8719c5697
Update StaticTilemapLayer.js
2020-02-08 12:06:02 +01:00
svipal
e8fe850edf
Update StaticTilemapLayerCanvasRenderer.js
2020-02-08 12:03:43 +01:00
svipal
7122ea0b6b
Update GetTilesWithinShape.js
2020-02-08 11:56:38 +01:00
svipal
e4c43e59ba
Update CullTiles.js
2020-02-08 11:55:33 +01:00
svipal
dc604e6336
Update TilemapCreator.js
2020-02-08 11:54:09 +01:00
svipal
b63a4e1107
Update Tilemap.js
2020-02-08 11:53:27 +01:00
svipal
7ba3771045
Update Tile.js
2020-02-08 11:51:14 +01:00
svipal
4ca9f5dbf1
Update Tile.js
2020-02-08 11:47:43 +01:00
svipal
4007e92be0
Update GetTileAt.js
2020-02-08 10:32:35 +01:00
svipal
f48e4aa9aa
Update GetTileAt.js
2020-02-08 10:31:59 +01:00
svipal
891c39cc69
Update TileIntersectsBody.js
2020-02-08 10:31:23 +01:00
svipal
f47d2a028a
Update TileIntersectsBody.js
2020-02-08 10:30:54 +01:00
Svipal
9b86c5e6ed
commented
2020-02-07 15:31:15 +01:00
Svipal
1573e25214
added isoCullDistances parameter to DynamicTilemapLayer
2020-02-07 15:21:11 +01:00
Svipal
d7a857697f
fixed worldToTileXY and tileToWorldXY undefined point mistakes. Fixed getTilesWithinXY incorrect snaptoFloor setting
2020-02-07 14:05:42 +01:00
jjcapellan
7e4c08c270
Added new property syncToRender
2020-02-06 19:58:43 +01:00
Svipal
dc330aaf4a
linted everything
2020-02-06 11:02:44 +01:00
svipal
786834be5e
Merge pull request #5 from photonstorm/master
...
keeping up with master again.
2020-02-05 18:45:52 +01:00
Svipal
5747f7102d
fixed problems with removeTileAt
2020-02-05 18:42:20 +01:00
Svipal
aaf512b9cd
fixed problems with putting tiles from null tiles
2020-02-05 18:37:40 +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
Svipal
a8b60cf946
fixed dynamic layer rendering
2020-02-04 04:57:28 +01: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
Svipal
fd29e96a5d
changed orientation to be part of the layer, really cleaned up API. Started tests on the dynamic layer. Trying to understand getTileAt bug
2020-01-30 15:58:07 +01: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
Svipal
70cbdc0925
preparing for WIP PR 4
2020-01-29 20:32:08 +01:00
Svipal
c4739dc01d
Merge branch 'master' of https://github.com/svipal/phaser
2020-01-29 20:28:06 +01:00
Svipal
95df0be94a
changed orientation localisation to layer, will make easier the fixing of pixelwidth and height and makes more sense overall
2020-01-29 20:27:40 +01:00
svipal
cf348779dc
Merge pull request #4 from photonstorm/master
...
Keeping up with master again.
2020-01-29 19:28:09 +01:00
Svipal
d6489d1146
preparing WIP PR 2
2020-01-29 19:21:27 +01:00
Svipal
ccbff39074
preparing WIP PR
2020-01-29 19:20:25 +01:00
Svipal
a82b27ce6f
added deep copy, doesn't change anything , this.orientation in the tile still bugging
2020-01-29 19:01:22 +01:00
Svipal
050325bff0
tried to pin down where the orientation became undefined, no success.
2020-01-29 17:42:39 +01: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
Svipal
95d2ff9996
need to compare across commits to understand regression regarding this.x
2020-01-27 20:12:53 +01: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
svipal
208c77f3fd
Merge pull request #3 from photonstorm/master
...
getting up to date with master again
2020-01-26 22:53:30 +01:00
Svipal
946857f756
pixel changes
2020-01-26 22:51:01 +01: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
Svipal
e4857ce48a
yoyuee
2020-01-19 20:55:09 +01:00
Svipal
fbe3345e54
Updated RemoveTileAtWorldXy, PutTileAtWorldXY, GetTilesWithinShape and GetTilesWithinWorldXY
2020-01-19 20:50:57 +01:00
svipal
eb90fc2ab4
Merge pull request #2 from photonstorm/master
...
keeping up with master #2
2020-01-18 14:21:26 +01: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
No
1a88ff95ba
updated dynamic layer and tilemap
2020-01-17 16:15:59 +01:00
No
f17aef0abf
wordtotileX or Y cannot be called independently either
2020-01-17 15:15:15 +01:00
No
ddbcf85194
woops
2020-01-17 14:49:02 +01:00
No
83bbf08902
changed world to tile and tile to world in isometric mode
2020-01-17 14:47:33 +01: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
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
Javier García Álvarez
718db273c2
Added doc for GameObjectFactory.register
and GameObjectFactory.remove
2019-12-18 11:32:29 +01:00
Javier García Álvarez
7576c824af
Fixed semicolon in updateList doc
2019-12-18 10:38:44 +01:00
Richard Davey
5cb7d8484f
Added Game Object level collision events
2019-12-18 02:22:37 +00:00
Richard Davey
a7c644454f
Update PhysicsEditorParser.js
2019-12-17 18:04:10 +00:00
Richard Davey
e6b43a2f48
Improves jsdocs
2019-12-17 18:03:23 +00:00
Richard Davey
efcbd1e4e5
Added helper methods for setting body collision callbacks
2019-12-17 16:42:46 +00:00
Richard Davey
f64d3e59d0
Per-body collision callbacks
2019-12-17 16:42:30 +00:00
Richard Davey
0d62f60f60
Removed un-used properties, functions and docs
2019-12-17 16:42:16 +00:00
Richard Davey
21a6458608
Added new collision pair type defs
2019-12-17 16:41:58 +00:00
Richard Davey
ac124b8e20
Better handling of the runner config
2019-12-17 13:52:57 +00:00
Richard Davey
1412e1f4f9
Added typedef for Matter Runner config
2019-12-17 13:52:46 +00:00
Richard Davey
a158b14228
Matter.World.has
is a new method that will take a Matter Body, or Game Object, and search the world for it. If found, it will return true
.
2019-12-17 13:15:15 +00:00
Richard Davey
67a6fa81f9
Added jsdocs and property
2019-12-17 13:08:32 +00:00
Richard Davey
d260643c61
Stricter checks against body removal and addition
2019-12-17 13:07:16 +00:00
Richard Davey
29525868ff
Added jsdocs
2019-12-17 13:06:11 +00:00
Richard Davey
43b111dc3e
Removed unused code and tidied up the Phaser specific additions
2019-12-17 13:06:01 +00:00
Richard Davey
9c43681b79
Added jsdocs and off handler
2019-12-17 13:05:37 +00:00
Richard Davey
37b2fbd044
Removed calcOffset
2019-12-17 13:05:16 +00:00
Richard Davey
32b46b8e20
TimeStep.smoothStep
is a new boolean property that controls if any delta smoothing takes place during the game step. Delta smoothing has been enabled in Phaser since the first version and helps avoid delta spikes and dips, especially after loss of focus. However, you can now easily toggle if this happens via this property and the corresponding FPSConfig
property.
2019-12-17 13:04:50 +00:00
Richard Davey
1a50665ce1
Function not triggering properly. Adding to Body directly.
2019-12-17 02:14:54 +00:00
Richard Davey
819a6b20ae
Walking through Matter compare merge
2019-12-16 17:12:12 +00:00
Richard Davey
f9e5246af0
Refactored so ops are done when the engine udates, not when the dom updates
2019-12-13 19:41:47 +00:00
Richard Davey
87a8af35c5
Added in Matter Runner
2019-12-13 19:41:27 +00:00
Richard Davey
604531d70a
Disable sync verts for now
2019-12-13 19:41:18 +00:00
Richard Davey
e117a679d2
Still fix sleeping
2019-12-13 01:16:54 +00:00
Richard Davey
63083882d3
MatterGameObject
has a new optional boolean parameter addToWorld
which lets you control if the Body should be added to the world or not. Useful for toggling off should you be merging pre-existing bodies with Game Objects.
2019-12-12 17:15:00 +00:00
samme
fa57f74b8f
Docs for Arcade Physics
2019-12-12 08:14:53 -08:00
Richard Davey
7ba6e9fe6b
Added setCompositeRenderStyle method
2019-12-12 13:31:47 +00:00
Richard Davey
093557a6ea
Removed worldConstraint changes
2019-12-12 13:31:36 +00:00
Richard Davey
03e67e2c50
Added docs and Body level syncVerts property
2019-12-12 12:41:11 +00:00
Richard Davey
01fa4d2c54
Fix handling of centerOfMass
2019-12-11 16:06:15 +00:00
Richard Davey
7a2c434ffc
Remove deprecated code
2019-12-11 16:06:01 +00:00
Richard Davey
4032f87368
Fixed handling deeply nested bodies
2019-12-11 16:05:52 +00:00
Richard Davey
4b14e489af
Added start of fromJSON
2019-12-11 15:01:05 +00:00
Richard Davey
69eec0add9
Fixed overlap method
2019-12-11 15:00:51 +00:00
Richard Davey
c267662259
Update World.js
2019-12-11 15:00:41 +00:00
Richard Davey
30750d1208
Update PhysicsEditorParser.js
2019-12-11 13:07:04 +00:00
Richard Davey
826431c7fa
Tidying up
2019-12-11 13:06:07 +00:00
Richard Davey
19fc914a5b
PhysicsEditorParser.parseVertices
now uses Bodies.flagCoincidentParts
to avoid duplicating code.
2019-12-11 13:05:58 +00:00
Richard Davey
f5908fee8f
Matter.Bodies.flagCoincidentParts
is a new function that will flags all internal edges (coincident parts) on an array of body parts. This was previously part of the fromVertices
function, but has been made external for outside use.
2019-12-11 13:05:49 +00:00
Richard Davey
bf00d63cc6
Body.syncVerts
is a new function that will re-sync the vert positions with the body position. Called if Engine.syncVerts
is set (which is now the default)
2019-12-10 17:53:44 +00:00
Richard Davey
a910a27349
Engine.syncVerts
is a new Engine config property that allows you to run a vert re-sync at the end of the Engine step. This can help massively if you find you've got verts drifting out of alignment with the body position when using pointer contraints, or high velocity environments. Uses the new Engine._bodiesSync
function.
2019-12-10 17:52:37 +00:00
Richard Davey
444bdf116f
Debug tweaks
2019-12-10 17:50:04 +00:00
Richard Davey
c6bfaa8e4a
Vertices.calcOffset
is a new function that calculates the vert body position offset, used for keeping data in sync.
2019-12-10 17:49:41 +00:00
Richard Davey
4f3a524114
Update World.js
2019-12-10 14:02:50 +00:00
Richard Davey
b7343f3424
Bumped Matter Plugin versions to avoid console logs from Common.info and Common.warn.
2019-12-10 14:02:10 +00:00
Richard Davey
56929fb8c6
Removed use of Common.indexOf (no need for it)
2019-12-10 12:07:03 +00:00
Richard Davey
118aa3a941
Format fix
2019-12-10 12:05:12 +00:00
Richard Davey
0e95c1ad19
Merged Body.setCentre
2019-12-10 12:03:27 +00:00
Richard Davey
dc127081eb
Merged new pointAWorld and pointBWorld functions
2019-12-10 12:01:58 +00:00
Richard Davey
257c00228b
Removed un-used _requireGlobal function
2019-12-10 12:01:42 +00:00
Richard Davey
f22c3ad17d
New fromPath reg exp
2019-12-10 12:01:24 +00:00
Richard Davey
5b17e35a87
Format tidy-up
2019-12-10 12:01:14 +00:00
Richard Davey
7bdcb5a892
Temp bounds debug
2019-12-10 02:42:16 +00:00
Richard Davey
b92e8e9a60
Moved position update to earlier (was too soon)
2019-12-09 17:13:10 +00:00
Chris Andrew
15ac5e736a
#4903 Clarified z position documentation by linking to depth GO component.
2019-12-09 16:57:05 +00:00
Richard Davey
eb254f0c5c
If the Matter.Body
config doesn't contain a position
property, it will now default to using Vertices.centre(body.vertices)
as the position. In most cases, this is what you need, so it saves having to pass it in the config object.
2019-12-09 13:22:55 +00:00
Richard Davey
c9adc01111
The Matter.PhysicsEditorParser
has been updated so it no longer needs to set the render offsets, and instead uses the center of mass values.
2019-12-09 12:52:05 +00:00
Richard Davey
8f67dad4a5
Matter.setExistingBody
, which is called interally whenever a Body is set on a Game Object, now uses the new centerOffset
values to ensure that the texture frame is correctly centered based on the center of mass, not the Body bounds, allowing for much more accurate body to texture mapping with complex multi-part compound bodies.
2019-12-09 12:51:26 +00:00
Richard Davey
53314ca435
The Matter.Mass.centerOfMass
component property now returns the pre-calculated Body centerOfMass
property, which is much more accurate than the previous bounds offset value.
2019-12-09 12:49:55 +00:00
Richard Davey
9f012ebf86
Matter.Transform.centerOffsetX
is a new read-only property available on all Matter Game Objects that returns the horizontal offset between the center of the frame and the center of mass. This can be used to allow for accurately mapping texture centers to the body center.
2019-12-09 12:48:51 +00:00
Richard Davey
50b511e872
Matter.Body.centerOfMass
is a new property added to the Matter Body object that retains the center of mass coordinates when the Body is first created.
2019-12-09 12:45:44 +00:00
Richard Davey
7ae124ff6e
Docs fix.
2019-12-09 08:57:24 +00:00
Richard Davey
44ff20d07e
Added deltaXFinal
and deltaYFinal
methods.
2019-12-09 08:55:37 +00:00
samme
77ad6c66fe
Correct type for Phaser.Tilemaps.LayerData#data
...
Fixes #4904 ?
2019-12-08 15:23:15 -08:00
samme
da2a0233a6
Correct docs for Phaser.Math.GetSpeed()
...
Fixes #4895
2019-12-04 12:34:09 -08:00
Richard Davey
a123faafdc
Added new intersects, overlap and collision filter methods.
2019-12-04 03:52:00 +00:00
Richard Davey
e7cac4ebe9
Removed old config values and now handles opacity properly
2019-12-04 03:14:06 +00:00
Richard Davey
aeb3d5af06
Removed old properties and added new ones
2019-12-04 03:13:44 +00:00
Richard Davey
22baba0749
Updated custom render properties
2019-12-04 03:13:02 +00:00
Richard Davey
59749ab519
Skip matching a body against itself
2019-12-04 03:12:46 +00:00
Richard Davey
9b8ce1b8e3
Adjust Resolver properties from matter config
2019-12-03 16:56:29 +00:00
Richard Davey
75e2f76f8f
Update Collision.js
2019-12-03 16:56:16 +00:00
Richard Davey
76c81e19c3
Moved the render style methods to World and use them as part of the event proxy
2019-12-03 14:48:04 +00:00
Richard Davey
7d2f3b33b5
Added setBodyRenderStyle and setConstraintRenderStyle methods.
2019-12-03 14:06:32 +00:00
Richard Davey
c299b02542
Update MatterCollisionEvents.js
2019-12-03 14:06:15 +00:00
Richard Davey
9a0218b3da
Fixed line style and updated parameter names.
2019-12-03 14:06:10 +00:00
Richard Davey
f050b148ec
Rewrote plugin to tidy it up.
2019-12-03 10:43:35 +00:00
Richard Davey
e0ae756f0d
Add the new collision events plugin.
2019-12-02 19:21:04 +00:00
Richard Davey
ca293d710f
Proxy the add and remove events and better handle debug draw injection.
2019-12-02 19:20:54 +00:00
Richard Davey
bdbd74917a
Added missing plugin configs.
2019-12-02 19:20:24 +00:00
Richard Davey
b38668eb5f
Finished all the JSDocs, exposed all Matter modules and added the new point checking methods.
2019-12-02 19:20:13 +00:00
Richard Davey
d75fb5b918
Removed un-used render properties and added new ones
2019-12-02 19:19:42 +00:00
Richard Davey
c32368e03e
Added the new ADD and REMOVE Matter World events
2019-12-02 19:19:21 +00:00
Richard Davey
b71d4059a7
100% JSDoc'd!
2019-12-02 15:07:44 +00:00
Valentin Vetter
f3350ce5a8
TypeScript: improve pick/shuffle types
2019-12-01 22:36:47 +01:00
Richard Davey
4f8dd24df2
Handle legacy configs for now.
2019-11-28 16:19:03 +00:00
Richard Davey
2a4dadf3a7
Update MatterWorldConfig.js
2019-11-28 16:18:53 +00:00
Richard Davey
8a844fc4d3
Create MatterDebugConfig.js
2019-11-28 16:18:49 +00:00
Richard Davey
f126f28121
Split out the debug rendering process into single methods, so they can be called externally if required
2019-11-28 10:43:26 +00:00
Richard Davey
352863d664
Bump to 3.22
2019-11-28 10:43:02 +00:00
Richard Davey
65008266d6
Fixed worldConstraint
2019-11-27 17:49:38 +00:00
Richard Davey
4a1b9691c8
Custom render values set?
2019-11-27 17:49:30 +00:00
Richard Davey
3d46304b6a
Final new debug config added
2019-11-27 17:49:21 +00:00
Hua
3c4cf8834e
Don't add white space at last word of a line
2019-11-27 13:09:07 +08:00
Hua
3010c005dc
Fix bug of game.destroy()
2019-11-27 11:09:12 +08:00
Hua
a2a6124ee5
Mark arguments as optional
2019-11-27 10:05:54 +08:00
Richard Davey
7b280e4fb2
Redoing debug config
2019-11-26 16:39:34 +00:00
Richard Davey
7e4577556c
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-11-26 14:31:37 +00:00
Richard Davey
7650c5535f
BitmapText with a maxWidth
set wouldn't update the text correctly if it was modified post-creation. You can now update the text and/or width independantly and it'll update correctly. Fix #4881
2019-11-26 14:31:27 +00:00
Richard Davey
2386d4d98c
Merge pull request #4882 from fselcukcan/patch-1
...
changed L12 `"pointerup"` to `"pointerout"`
2019-11-26 14:05:09 +00:00
Richard Davey
409a5eb592
3.21.1
2019-11-26 14:04:52 +00:00
F. Selçuk Can
4354255602
changed L12 "pointerup"
to "pointerout"
2019-11-26 13:33:29 +03:00
Hua
155995ce45
Remove il variable
2019-11-26 10:15:23 +08:00
Hua
73c919995a
Override default Curve.getUtoTmapping method
...
Since `u` is equal to `t` in LineCurve, `Line.getUtoTmapping` could return `u` directly.
2019-11-26 10:08:25 +08:00
Hua
2ec969e718
Add arguments step and out
...
Take an optional array as the 3rd parameter in which to store the points results
2019-11-25 11:51:21 +08:00
Richard Davey
467aac2308
JSDoc fix
2019-11-22 17:46:26 +00:00
Richard Davey
4a33c7b5c8
Don't reset text
2019-11-22 16:43:13 +00:00
Richard Davey
a7b3cd585d
Tidying up
2019-11-22 16:42:53 +00:00
Richard Davey
0d46c7107a
Fixed issue with carriage-returns not reflowing text
2019-11-22 16:42:43 +00:00
Richard Davey
4435791cc1
Updated to use current null approach
2019-11-22 13:54:07 +00:00
Richard Davey
28982fb7fc
Fixed word wrapping
2019-11-22 13:48:10 +00:00
Richard Davey
b297950875
Added wordWrapCharCode
2019-11-22 13:48:01 +00:00
Richard Davey
5b1401153c
Working through BitmapText wrapping
2019-11-21 17:11:43 +00:00
Richard Davey
dc6b080091
Merge pull request #4874 from samme/feature/overlapCirc
...
Add ArcadePhysics#overlapCirc()
2019-11-20 22:02:15 +00:00
Richard Davey
e5421c4ebf
Fixed namespace #4873
2019-11-20 22:00:17 +00:00
Richard Davey
ce2dbb7095
Merge pull request #4873 from samme/feature/group-type
...
Add `type` for Group, Arcade.Group, Arcade.StaticGroup
2019-11-20 21:54:10 +00:00
samme
b0f99db47d
Add ArcadePhysics#overlapCirc()
2019-11-20 12:21:53 -08:00
samme
8585541e15
Add type
for Group, PhysicsGroup, StaticPhysicsGroup
2019-11-20 11:53:38 -08:00
Richard Davey
72cbc89817
Fixes Rollup freaking out over an eval
2019-11-20 17:19:20 +00:00
Richard Davey
0bfebb29ed
The requestAnimationFrame
polyfill no longer expects a Browserify environment and uses window
through-out.
2019-11-20 17:10:11 +00:00
Richard Davey
5e1d86b75b
WebAudioSoundManager.setAudioContext
is a new method that allows you to set the Sound Manager Audio Context to a different context instance. It will also disconnect and re-create the gain nodes on the new context.
2019-11-20 14:50:28 +00:00
Richard Davey
77ca0d0bbd
The WebAudioSoundManager.unlock
method will now listen for keydown
events in order to unlock the Audio Context, as well as touch and pointer events, making it more accessible
2019-11-20 13:50:55 +00:00
Richard Davey
a5d494f9d2
JSDoc fix. Fix #4871
2019-11-20 13:02:56 +00:00
samme
482757c1a8
Fix bad parameter in Timeline callbacks and events
...
Fixes #4810
2019-11-19 15:37:25 -08:00
Richard Davey
3eafac9f4f
lint fixes
2019-11-19 13:02:05 +00:00
Richard Davey
7d53dc3447
Added support for mipmap texture generation and filter levels
2019-11-19 13:00:54 +00:00
Richard Davey
ffabf069e0
Added mipmapFilter to game config
2019-11-19 13:00:37 +00:00
Richard Davey
c37058ef4b
When calling TileSprite.setTexture
or setFrame
, if the new frame size didn't match the old one, the new fill pattern would become distorted and the potWidth
and potHeight
values would be incorrect.
2019-11-19 11:49:54 +00:00
Richard Davey
b95a6a45bd
Fixed some JSDocs resulting from #4850
2019-11-19 11:23:19 +00:00
Richard Davey
4606f0b443
Merge pull request #4850 from rexrainbow/group-improvement
...
Add some action methods
2019-11-19 11:04:17 +00:00
Richard Davey
e09a687955
Correct version number
2019-11-19 11:00:42 +00:00
Richard Davey
171ca39544
Merge pull request #4847 from rexrainbow/Action-of-scrollFactor
...
Add SetScrollFactor into Action and Group's createFromConfig
2019-11-19 10:55:16 +00:00
Richard Davey
e5f93738ca
Merge pull request #4807 from jcyuan/master
...
fix TS issues and fix the condition to check video support.
2019-11-19 10:49:09 +00:00
Richard Davey
1091d09d93
Video.destroy
has been renamed to Video.preDestroy
, so that it now destroys properly like all other Game Objects. Fix #4821
2019-11-18 22:20:08 +00:00
Richard Davey
9ff331e10e
Merge pull request #4829 from jsoref/spelling
...
Spelling
2019-11-18 21:47:26 +00:00
Richard Davey
1e20ad706e
ADD and SUBTRACT added
2019-11-18 17:09:30 +00:00
Richard Davey
50d9931c11
Added cached MIN/MAX SAFE INT for IE support #4833
2019-11-18 17:01:55 +00:00
Richard Davey
922cbaa8ea
3.21 version and audit fix
2019-11-18 16:36:52 +00:00
Richard Davey
4a32318185
eslint fixes
2019-11-18 16:36:52 +00:00
Richard Davey
2a7e7157bd
Merge pull request #4831 from apasov/patch-1
...
Fix: enable loading video file as data URI (fixes #4830 )
2019-11-18 16:26:06 +00:00
Richard Davey
cc6cec5c83
Added in forceSetTimeout fps value ( #4179 )
2019-11-18 16:23:29 +00:00
Richard Davey
7b530ee699
Code format fixes
2019-11-18 16:08:36 +00:00
Richard Davey
0ba697ee4a
JSDoc updates
2019-11-18 16:02:34 +00:00
Richard Davey
9863eafc00
Merge pull request #4820 from Olliebrown/tiled-layer-groups
...
Support for Tiled layer groups
2019-11-18 16:01:04 +00:00
Richard Davey
f36235319f
Merge pull request #4836 from Olliebrown/tilemap_remove_bug
...
Fix for bug related to Issue #4737
2019-11-18 15:58:51 +00:00
Richard Davey
55a4146726
Merge pull request #4826 from Olliebrown/input-drag-thresholds
...
Fixes for malfunctioning Drag Threshold properties (Issue #4667 )
2019-11-18 15:51:26 +00:00
Richard Davey
82e4490a07
Merge pull request #4827 from koljakutschera/master
...
fix light2d using tileset from dynamictilemaplayer (#4167,#4079)
2019-11-18 15:48:34 +00:00
Richard Davey
8528e414f0
Merge pull request #4828 from Olliebrown/input-debugHitbox-fixes
...
Fixes for drawing offset hitboxes in input.enableDebug (fixes #4722 )
2019-11-18 15:44:31 +00:00
Richard Davey
6b1cdc80a3
Merge pull request #4858 from samme/feature/closest-furthest-targets
...
Add `targets` argument to ArcadePhysics#closest() and ArcadePhysics#furthest()
2019-11-18 13:44:23 +00:00
Hua
4c6cac514c
Typo
2019-11-18 11:21:31 +08:00
Hua
a8516d70c9
Typo
2019-11-18 11:17:15 +08:00
Hua
f0d2394c6f
Typo
2019-11-18 11:11:25 +08:00
Hua
c198c4e2b3
Override default Curve.arcLengthDivisions to 1
2019-11-18 11:01:35 +08:00
Hua
5f53466d0e
Add stepRate argument in getPoints method
2019-11-18 11:01:22 +08:00
samme
e572921f38
Add targets
argument to closest(), furthest()
...
And exclude `source` from targets
2019-11-13 09:56:37 -08:00
Hua
3b47221d25
Fix input-event bug in nested container
2019-11-06 15:51:01 +08:00
Hua
a02ce69329
Fix typo
2019-11-06 14:22:56 +08:00
Hua
f0c1d8f846
Add some action methods
2019-11-06 14:22:47 +08:00
Hua
53e9fd1465
Add SetScrollFactor into Action and Group's createFromConfig
2019-11-05 14:39:56 +08:00
samme
c46ab84fd9
Use body center in closest, furthest
2019-11-04 16:11:38 -08:00
Seth Berrier
13b6d6d5ae
Fix for bug related to Issue #4737
...
- When removing a layer from a tilemap, layerIndex can become invalid
- Added loop to fix any existing tilemapLayer.layerIndex vales
2019-10-31 16:03:48 -05:00
Ilya Apasov
abe3247e47
Enable loading video file as data URI ( fixes #4830 )
2019-10-29 19:02:56 +02:00
Josh Soref
f21c3f4e07
spelling: yoyo'ing
2019-10-29 02:43:09 -04:00
Josh Soref
c0d92a56a7
spelling: will
2019-10-29 02:42:27 -04:00
Josh Soref
02a7169129
spelling: vertex
2019-10-29 02:41:21 -04:00
Josh Soref
e57d5fcf2f
spelling: repeated
2019-10-29 02:33:37 -04:00
Josh Soref
94e96b3fd2
spelling: renderered
2019-10-29 02:33:23 -04:00
Josh Soref
315d43f893
spelling: receive
2019-10-29 02:33:06 -04:00
Josh Soref
0be8286887
spelling: intersection
2019-10-29 02:24:28 -04:00
Josh Soref
013ece9373
spelling: indices
2019-10-29 02:22:43 -04:00
Josh Soref
0526276e68
spelling: in case
2019-10-29 02:21:46 -04:00
Josh Soref
3abbb13de5
spelling: formula
2019-10-29 02:19:05 -04:00
Josh Soref
d9acb432c6
spelling: falsey
2019-10-29 02:18:26 -04:00
Josh Soref
d6820e6da8
spelling: envelope
2019-10-29 01:53:22 -04:00
Josh Soref
4a322dc7be
spelling: dynamic
2019-10-29 01:52:45 -04:00
Josh Soref
0b4a951cf5
spelling: discrepancies
2019-10-29 01:52:04 -04:00
Josh Soref
4670619f6c
spelling: dependencies
2019-10-29 01:51:28 -04:00
Josh Soref
22fb1f785f
spelling: delimiter
2019-10-29 01:51:13 -04:00
Josh Soref
9fb412bb07
spelling: coordinates
2019-10-29 01:50:33 -04:00
Josh Soref
1731360a6d
spelling: constituent
2019-10-29 01:50:10 -04:00
Josh Soref
4d1683c9ee
spelling: component
2019-10-29 01:49:23 -04:00
Josh Soref
b394e7d777
spelling: collinear
2019-10-29 01:49:07 -04:00
Josh Soref
b7d0f9e309
spelling: browserify
2019-10-29 01:45:05 -04:00
Seth Berrier
174dcfdada
Fixes for drawing of hitboxes in input.debug
...
- Offset hitboxes now draw properly when debug enabled for all shapes
- Addresses issue #4722
2019-10-28 09:43:25 -05:00
Kolja Kutschera
c893ca6186
fix light2d using tileset from dynamictilemaplayer (#4167,#4079)
2019-10-26 00:56:43 +02:00
Seth Berrier
7b711bd11b
Fixes for malfunctioning Drag Threshold properties
...
- According to issue #4667 drag thresholds have been broken since 3.18
- Changed processDragMove event to check thresholds if set
- Fixed use of '||' when it should be '&&' for skipping threshold checks
- Adding missing 'time' parameter when calling threshold check function
2019-10-25 14:03:43 -05:00
Seth Berrier
61479c5188
Remove debugging output
2019-10-25 11:32:24 -05:00
Seth Berrier
13625a5f8c
Updates for Supporting Group Layers
...
- Updated documentation to mention support for groups and naming layers
- Added more verbose output when an unknown layer name is specified
> Error output now lists the valid layer names
- Added functions to return array of tile, object, or image layer names
2019-10-23 15:56:35 -05:00
Seth Berrier
a9e897370a
Support for Tiled Groups and Infinite Map Fixes
...
- Added support for Tiled group layers (issue #4099 )
- Fixed some layer offset bugs for infinite maps
2019-10-23 12:35:25 -05:00
J.C
67ea9c627e
fix bug: CONST
does not have PORTRAIT
and LANDSCAPE
member, they are in CONST.ORIENTATION object.
2019-10-23 17:48:43 +08:00
J.C
6c880c7976
fix wrong function name of TS def (the correct names are in index.js
)
2019-10-23 17:47:19 +08:00
J.C
8d259cd6c2
add missing parameters for addGLTexture
method for TS def
2019-10-23 17:45:48 +08:00
J.C
d56deef62b
undo brackets removal
2019-10-18 12:03:11 +08:00
Richard Davey
fb05e1de49
Merge pull request #4805 from samme/fix/headless-destroy
...
Fix headless game failing to destroy
2019-10-17 13:27:52 +01:00
Richard Davey
5352390811
3.20.2 version
2019-10-17 13:26:10 +01:00
Richard Davey
1df9b9655a
Shouldn't remove the blob data, or videos too large for memory cannot replay
2019-10-17 13:25:32 +01:00
J.C
94648e4c0d
ts fix for TweenManager
2019-10-16 13:59:15 +08:00
J.C
87b54d2f4f
fixed a bug: in case if the environment does not support HTMLVideoElement.
2019-10-16 13:39:52 +08:00
J.C
9507ec7591
fix ts error, and update the output file.
2019-10-16 13:39:06 +08:00
samme
bc55428c49
Check pendingDestroy in headlessStep()
...
Fixes #4804
2019-10-15 12:00:44 -07:00
Richard Davey
24029b27db
3.20.1 Release
2019-10-15 12:30:09 +01:00
Richard Davey
657200226a
SceneManager.run
(and consequently ScenePlugin.run
) was using an out-dated way of checking if a Scene was paused before trying to resume it, causing a Scene to be started again instead of resumed. It now uses the Systems.isPaused
function instead. Fix #3931
2019-10-15 11:53:43 +01:00
Richard Davey
6b973dcf58
DynamicTilemapLayer.setCollision
would cause an indexOf
error when trying to access the layer data. Fix #4800
2019-10-15 11:34:32 +01:00
Richard Davey
04bfe30255
Container.mask
wouldn't render in WebGL due to a change in the way child masks were handled. Container masking now works again as in 3.19. Fix #4803
2019-10-15 11:29:47 +01:00
Richard Davey
c37a3634c0
UpdateList.shutdown
wasn't removing the Scene Update event listener, causing actions to be multiplied on Scene restart (such as animation playback). Fix #4799
2019-10-15 11:18:36 +01:00
J.C
96dbb3e11a
check to see if the environmet has video element
2019-10-15 15:24:36 +08:00
Richard Davey
d846cdb462
Merge pull request #4797 from xSke/docs/path-docs
...
Improve documentation for Phaser.Curves.Path
2019-10-14 16:11:17 +01:00
Richard Davey
34caaca2df
3.20.1 prep
2019-10-14 16:08:52 +01:00
Ske
b74c9ae39f
Improve documentation for Phaser.Curves.Path
2019-10-12 13:45:44 +02:00
Richard Davey
28316ec4fe
Merged ProcessQueue docs
2019-10-11 18:53:11 +01:00
Richard Davey
c60530eedd
Removed commented-out code
2019-10-11 18:35:27 +01:00
Richard Davey
e8ac166ab2
Update UpdateList.js
2019-10-11 18:34:01 +01:00
Richard Davey
91c0b1c8a4
Create VideoFileConfig.js
2019-10-11 18:31:58 +01:00
Richard Davey
312797dc8e
JSDoc fixes
2019-10-11 18:29:55 +01:00
Richard Davey
be15a59093
Your guess is as good as mine \o/~?
2019-10-11 18:19:25 +01:00
Richard Davey
9ea3eb1abd
Added getValue method back and updated it
2019-10-11 18:15:44 +01:00
Richard Davey
595fd0b286
Removed beta1
2019-10-11 13:53:51 +01:00
Richard Davey
ce6a0c1d76
ScaleManager.startFullscreen
now checks to see if the call returns a Promise, rather than checking if the browser supports them, before waiting for promise resolution. This fixes a runtime console warning in Microsoft Edge. Fix #4795
2019-10-11 13:53:21 +01:00
Richard Davey
c1044379f3
TouchManager.disableContextMenu
is a new method that will try to disable the context menu on touch devices, if the Game Config disableContextMenu
is set. Previously, it only tried to do it for the Mouse Manager, but now does it for touch as well. Fix #4778
2019-10-11 13:42:33 +01:00
Richard Davey
4d4ab051fb
Merge pull request #4785 from Frozzy6/master
...
Set 'part.angle' in 'Body.update' into matter-js
2019-10-11 13:36:32 +01:00
Richard Davey
39118a2778
Merge pull request #4700 from cristlee/master
...
add an optional textureData when initialize shader
2019-10-11 13:34:22 +01:00
Richard Davey
65c6cec148
Merge pull request #4781 from rexrainbow/export-modules
...
Expose BaseCamera module
2019-10-11 13:32:35 +01:00
Richard Davey
ab924492b5
Added optional data object to stop method
2019-10-11 13:31:56 +01:00
Richard Davey
eca54ab2a3
Updated docs
2019-10-11 13:31:44 +01:00
Richard Davey
2ac193b32b
Merge pull request #4783 from Olliebrown/scene-stop-data-pass
...
Feature/Fix for issue #4510
2019-10-11 13:26:19 +01:00
Richard Davey
585a8a93ee
Merge pull request #4787 from firefalcom/fix/normalMapRotation
...
Fix incorrect lighting when batching several sprites
2019-10-11 13:21:39 +01:00
Richard Davey
efb7fd307c
Merge pull request #4789 from arnekeller/patch-1
...
Updated scaleManager.js Docs
2019-10-11 13:20:24 +01:00
Richard Davey
9656c9858c
Emit event after playback
2019-10-11 13:19:55 +01:00
Richard Davey
29f5acab15
Added all of the Video Events and completed the jsdocs
2019-10-11 12:26:24 +01:00
Richard Davey
0958df8592
Finished method jsdocs
2019-10-10 23:51:03 +01:00
Richard Davey
620ce8556f
Update GLOBAL_MUTE_EVENT.js
2019-10-10 23:50:55 +01:00
Richard Davey
9b8bc99538
Lots of jsdocs added
2019-10-10 17:42:57 +01:00
Richard Davey
e3b4ec1b6f
Don't access currentTime if no video loaded
2019-10-10 14:26:19 +01:00
Richard Davey
29b9801c5d
Load as blob works and finished documentation.
2019-10-10 14:26:03 +01:00
Richard Davey
dcdc219442
Added flipY support into saveTexture for use in shaders
2019-10-10 12:27:14 +01:00
Richard Davey
61f5fadddf
Split up canvas and video texture creation and updating.
2019-10-10 12:26:39 +01:00
Richard Davey
9659ec2f47
Added flipY property and setFlipY method.
2019-10-10 12:26:25 +01:00
Richard Davey
2fb190f023
changeSource works and loadURL works too
2019-10-09 17:42:51 +01:00
Richard Davey
bd7592a408
No URL in constructor
2019-10-09 17:42:37 +01:00
Richard Davey
bede5d29f0
Video source change now working
2019-10-09 15:31:37 +01:00
Richard Davey
e69c46d30e
Added snapshot methods.
2019-10-09 10:50:01 +01:00
Richard Davey
69346bb1d3
TextureManager.get
can now accept either a string-based key, or a Texture instance, as its parameter.
2019-10-09 10:49:47 +01:00
Richard Davey
ed69ef6626
The GameObject.setTexture
method can now accept either a string, in which case it looks for the texture in the Texture Manager, or a Texture instance, in which case that instance is set as the Game Object's texture.
2019-10-09 10:49:37 +01:00
Richard Davey
06047b6d68
Only autoplay if muted, plus some debugging handlers
2019-10-09 10:17:29 +01:00
Richard Davey
226a0f87ea
Video seeking only updates texture when the seek is complete and added marker support
2019-10-09 10:17:15 +01:00
Richard Davey
35dfd2fb30
Fixed noAudio
2019-10-09 00:40:09 +01:00
Richard Davey
5b98d5737e
Non-Promise support + seeking texture update
2019-10-08 17:44:01 +01:00
Richard Davey
5b34726e64
Refactored how pause / resume / play works and texture updating, much cleaner and more resilient
2019-10-08 17:15:26 +01:00
Richard Davey
7fb8718c80
Added new noAudio
parameter, because it's a load setting, not an instance one
2019-10-08 17:15:06 +01:00
Richard Davey
5ac4afb1f8
Getting autoplay working
2019-10-07 17:08:45 +01:00
Arne Keller
c77bc8d66c
Updated scaleManager.js Docs
...
Use SCALE_MODE `NONE` instead of `NO_SCALE` in the docs
2019-10-07 12:23:24 +02:00
Gauthier Billot
7ffeb4785e
Added currentNormalMapRotation and updated setNormalMapRotation
2019-10-06 20:31:29 +02:00
Anatoly Rybalchenko
03810ecccf
Set 'part.angle' in 'Body.update' into matter-js
2019-10-05 02:02:30 +03:00
Richard Davey
07a2a81263
grab and saveToTexture methods now work
2019-10-04 13:40:42 +01:00
Richard Davey
633af46f71
Removed snapshot and handled locked and unlocked playback
2019-10-04 13:14:32 +01:00
Richard Davey
59cdc1fef0
Update WebAudioSoundManager.js
2019-10-04 13:14:11 +01:00
Richard Davey
3d31e27926
Don't render if there's no texture
2019-10-04 13:14:06 +01:00
Richard Davey
e8e95d6a6c
Updated docs
2019-10-04 11:13:11 +01:00
Richard Davey
5de4641e49
Added jsdocs
2019-10-04 11:13:05 +01:00
Richard Davey
6b67862cb7
Finally resolved webgl texture issues when loaded too early
2019-10-04 00:58:43 +01:00
Seth Berrier
6735c8e0a6
Feature/Fix for issue #4510
...
- Passes through data parameter to Stop()
2019-10-03 12:08:43 -05:00
Richard Davey
800381b7fc
Better handling of texture creation
2019-10-03 17:51:11 +01:00
Richard Davey
7ef1b06d4c
Supports blob and url loading
2019-10-03 17:50:54 +01:00
Richard Davey
9989f271d4
Pass in the key and url
2019-10-03 17:50:42 +01:00
Richard Davey
c860d1b46c
Expose the VideoFile file type
2019-10-03 17:50:30 +01:00
Richard Davey
94e2ac4f79
Passes off creation to new videoToTexture method
2019-10-03 17:50:18 +01:00
Richard Davey
49012d6237
Added createTexture2D.forceSize parameter, videoToTexture method and strengthened empty texture creation
2019-10-03 17:49:58 +01:00
Richard Davey
3dd82c4e02
Working through the Video loader
2019-10-03 14:14:07 +01:00
Richard Davey
edf6375cea
Device.Video property name changes to normalize with Audio
2019-10-03 14:13:56 +01:00
Richard Davey
3c7b05a52a
Add Video cache
2019-10-03 14:13:32 +01:00
Richard Davey
237d13ec27
Create VideoFile.js
2019-10-03 02:29:24 +01:00
Richard Davey
9429f66adb
Added first pass at Video Game Object
2019-10-03 02:29:05 +01:00
Richard Davey
de1034091e
TextureSource.isVideo
is a new boolean property that is set when the Texture Source is backed by an HTML Video Element.
2019-10-03 02:28:47 +01:00
Hua
9377f8c8a0
Expose BaseCamera module
2019-10-03 09:26:14 +08:00
Richard Davey
619cd7a9d6
Docs update
2019-10-02 17:32:06 +01:00
Richard Davey
a3469ad37e
The Tween.getValue
method has been removed. It was a legacy function from Phaser 2 and always only returned the first TweenData from the data array, ignoring any subsequent properties or targets, making it redundant. Fix #4717
2019-10-02 17:25:00 +01:00
Richard Davey
3b05f3bcf7
Removed BasePlugin properties #4488
2019-10-02 16:32:04 +01:00
Richard Davey
9e3efb4ff8
Merge pull request #4488 from samme/misc/plugins
...
Remove BasePlugin#boot; and plugins docs updates
2019-10-02 16:25:34 +01:00
Richard Davey
3a8a1f7b05
Added the new customBoundsRectangle config properties
2019-10-02 16:03:52 +01:00
Richard Davey
f0ed52c033
Tidy-up the customBoundsRectangle changes
2019-10-02 16:03:36 +01:00
Richard Davey
4f4b69123e
Merge branch 'master' into arcade_body_custom_bounds
2019-10-02 15:41:49 +01:00
Richard Davey
3a3ce8b914
Merge branch 'master' into tile-collision-update
2019-10-02 15:15:18 +01:00
Richard Davey
4e8ab3dcae
MouseManager.target
can now be defined as either a string or by passing an HTMLElement directly. Fix #4353
2019-10-02 13:39:42 +01:00
Richard Davey
7063085120
Updated jsdocs. Fix #4200
2019-10-02 13:21:51 +01:00
Richard Davey
89c30fe42f
BaseSoundManager.forEachActiveSound
will now only invoke the callback if the sound actually exists and isn't pending removal. Fix #3383
2019-10-02 12:50:10 +01:00
Richard Davey
3ab903b3c5
UpdateList now extends ProcessQueue and uses all of its methods instead.
2019-10-02 12:13:43 +01:00
Richard Davey
7212945bea
ProcessQueue now extends Event Emitter. Also added removeAll method and length getter.
2019-10-02 12:13:07 +01:00
Richard Davey
f3cc1f82fe
Added new ProcessQueue events
2019-10-02 12:12:37 +01:00
Richard Davey
ea75c5ca9a
Updated quad alpha checks
2019-10-02 10:11:07 +01:00
Richard Davey
a7a15bcb4d
Merge pull request #4715 from MrcSnm/master
...
Container now can apply alpha quads
2019-10-02 09:55:59 +01:00
Marcelo Silva Nascimento Mancini
b7166bba3b
ESLint correction
2019-10-01 16:11:29 -03:00
Richard Davey
be02c80be9
Origin and canvas renderer work again now. Fix #4108
2019-10-01 17:43:47 +01:00
Richard Davey
5dbfbae5f9
Updated jsdoc types. Fix #4308
2019-10-01 17:04:06 +01:00
Richard Davey
1a42c54398
Set image smoothing based on renderer or scale mode.
2019-10-01 16:10:50 +01:00
Richard Davey
d405bab92c
Set image smoothing based on renderer or scale mode.
2019-10-01 16:10:46 +01:00
Richard Davey
0aaa67957a
Tilemap Canvas Render functions now respect game pixel art settings
2019-10-01 16:10:29 +01:00
Richard Davey
b3ea5bddd2
SetTransform
will now set the imageSmoothingEnabled context value based on the renderer and texture source scale mode.
2019-10-01 16:10:05 +01:00
Richard Davey
8d5c097720
Removed un-used import
2019-10-01 16:05:18 +01:00
FengLi
217d1daa2f
add an optional textureData when initialize shader
2019-10-01 22:52:35 +08:00
Richard Davey
b1b95c066b
The BuildGameObject
function will no longer set scaleMode
because it's not a valid Game Object property.
2019-10-01 14:54:52 +01:00
Richard Davey
1cc5b1a66e
CanvasRenderer.antialias
is a new property, populated by the game config property of the same name (or via the pixelArt
property) that will tell the canvas renderer what to set image interpolation to during rendering of Sprites.
2019-10-01 14:54:40 +01:00
Richard Davey
38fb420cc4
CanvasInterpolation
has updated the order of the CSS properties so that crisp-edges
comes after the browser prefix versions.
2019-10-01 14:43:26 +01:00
Richard Davey
342ad984ac
TextureSource.setFilter
will now set the scaleMode
to the given filter.
2019-10-01 14:42:30 +01:00
Richard Davey
55c73d399b
GameObject.ToJSON
will no longer output the scaleMode
in the json because it's not a valid Game Object property.
2019-10-01 14:41:58 +01:00
Richard Davey
ea7691518b
Use public property for blend mode check #4771
2019-10-01 14:08:13 +01:00
Richard Davey
a0292b5685
TextureSource.isGLTexture
now checks if the browser supports WebGLTexture
before checking to see if source is an instance of one. This should fix issues with Phaser in HEADLESS mode running under node / jsdom, or where WebGLTexture isn't present. Fix #4711
2019-10-01 13:46:37 +01:00
Richard Davey
5b6d9895be
TileSprites will now throw a console warning if you try to use a RenderTexture or GLTexture as their frame source. Fix #4719
2019-10-01 13:37:37 +01:00
Richard Davey
2c5b552bd5
Formatting tweak
2019-10-01 13:29:05 +01:00
Richard Davey
b78dbd81ac
Moved author block and fixed Body reset issue
2019-10-01 13:28:59 +01:00
Richard Davey
f16a16ba7d
Merge pull request #4729 from Gamefroot/arcade-physics-fps-fixes
...
Arcade physics fps fixes
2019-10-01 13:17:41 +01:00
Hua
8a9e74ffe9
Add tint feature of bob
2019-10-01 10:17:14 +08:00
Richard Davey
487ec88529
RenderTexture.fill
wasn't setting the camera up before drawing the fill rect, causing it to appear in the wrong place and the wrong size. Fix #4390
2019-09-30 15:08:53 +01:00
Richard Davey
9616e8187a
MultiAtlasFiles
would incorrectly add the atlas JSON into the JSON cache, causing you to not be able to destroy and reload the texture using the same atlas key as before. Fix #4720
2019-09-30 14:24:16 +01:00
Richard Davey
2f976acb13
If more than one MultiAtlasFile
used the same internal file name for its images, subsequent multi-atlases would fail to load. Fix #4330
2019-09-30 14:11:29 +01:00
Richard Davey
2829d27e8a
Fixed return type. Fix #4772
2019-09-30 13:32:14 +01:00
Richard Davey
973bf76b14
MultiAtlasFiles
that loaded their own external images would obtain incorrect path and URL values if the path had been changed by another file in the queue. They now retain the loader state and apply it to all child files during load.
2019-09-27 16:11:30 +01:00
Richard Davey
999967c772
MultiFile
has three new internal properties: baseURL
, path
and prefix
which allow them to retain the state of the loader at the time of creation, to be passed on to all child-files. Fix #4679 .
2019-09-27 16:06:51 +01:00
Richard Davey
cde1210523
The Container WebGLRenderer will now handle child new type switching, allowing you to carry on with a batch of same-type Game Objects even if they're nested within Containers. Fix #4710
2019-09-27 15:41:51 +01:00
Richard Davey
107bccf105
Tween.updateTo
would break out of the TweenData iteration as soon as it adjusted the first matching key, causing tweens acting on multiple targets to only update the first target. It now updates them all. Fix #4763
2019-09-26 12:46:55 +01:00
Richard Davey
1d30497a8f
Merge pull request #4745 from yhwh/enhancement/WebGLPipeline
...
update vertexComponentCount in WebGLPipeline addAttribute
2019-09-26 12:41:35 +01:00
Richard Davey
f3e18000f2
Merge pull request #4760 from rexrainbow/blitter-enhancement
...
Set dirty flag only when render state of bob is changed
2019-09-26 12:32:34 +01:00
Richard Davey
7584b9b17f
Merge pull request #4752 from funnisimo/separateCircle
...
FIX #4751 - Physics.Arcade.World.separateCircle - weird effects when …
2019-09-26 12:30:18 +01:00
Richard Davey
800aac5820
Merge pull request #4749 from funnisimo/hitTest
...
Fix for Issue #4748 - Physics.Arcade.Body.hitTest - bug with circles
2019-09-26 12:27:14 +01:00
Richard Davey
8c18699e74
A hasOwnProperty
check has been applied to the SceneManager.createSceneFromObject
method when parsing additional properties in the extend
object
2019-09-26 12:24:59 +01:00
Richard Davey
ddc1a136ce
MatterPhysics.shutdown
could try to access properties that may have been previously removed during the Game.destroy process, causing a console error. It now checks properties before removing events from them
2019-09-26 12:17:16 +01:00
Richard Davey
4be4ba4823
Merge pull request #4707 from MatthewAlner/Bug#4706-ignored-attempt-to-cancel-a-touchstart
...
Bug#4706 add `event.cancelable` check
2019-09-26 12:09:06 +01:00
Richard Davey
1e8fcc0ee1
Merge pull request #4761 from rexrainbow/rendertexture-enhancement
...
Update display-origin when resizing
2019-09-26 12:05:24 +01:00
Richard Davey
b704fdd680
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-09-24 12:36:32 +01:00
Richard Davey
d875a59958
InteractiveObject.alwaysEnabled
is a new boolean that allows an interactive Game Object to always receive input events, even if it's invisible or won't render.
2019-09-24 12:36:28 +01:00
Rex
6deec2c44b
Also resize hit-area when resizing
2019-09-21 20:24:26 +08:00
Rex
08a2082d46
Update display-origin when resizing
2019-09-21 20:21:09 +08:00
Rex
7795713ab5
Set dirty flag only when render state of bob is changed
2019-09-21 20:15:56 +08:00
Richard Davey
5c04e20b20
The private Shader._savedKey
property has been removed as it wasn't used anywhere internally.
2019-09-20 14:48:41 +01:00
Richard Davey
bc5c7cf7ab
When calling Shader.setRenderToTexture()
it will now draw the shader just once, immediately to the texture, to avoid the texture being blank for a single frame (thanks Kyle)
2019-09-19 23:32:40 +01:00
Funnisimo
4455237967
need to do velocity based separation too
2019-09-19 14:13:07 -05:00
Richard Davey
9f8e9d2afc
InputPlugin.processDragMove
has been updated so that the resulting dragX
and dragY
values, sent to the event handler, now compensate for the scale of the Game Objects parent container, if inside of one. This means dragging a child of a scale Container will now still drag at 'full' speed.
2019-09-16 15:47:18 +01:00
Funnisimo
b7ff2c02ae
FIX #4751 - Physics.Arcade.World.separateCircle - weird effects when bounce=0
2019-09-13 11:34:11 -05:00
Funnisimo
4bffc5a341
updated for lint
2019-09-12 10:09:47 -05:00
Funnisimo
bfcfde52f9
FIX : #4748 Physics.Arcade.Body.hitTest - bug with circles
2019-09-12 10:02:01 -05:00
Nicolas Ferrero
a76e3c7cb6
update vertexComponentCount in WebGLPipeline
2019-09-10 18:55:30 +03:00
Nicolas Ferrero
18060a841e
RenderTexture would not update texture size on resize
2019-09-10 17:03:52 +03:00
Richard Davey
5b10c07d2e
ArcadePhysics.Body.checkWorldBounds
would incorrectly report as being on the World bounds if the blocked.none
flag had been toggled elsewhere in the Body. It now only sets if it toggles a new internal flag
2019-09-05 16:06:08 +01:00
Richard Davey
fc5630cb72
The displayWidth
and height should never be negative.
2019-08-30 19:35:52 +01:00
Richard Davey
67e28efd2e
Removed dead code
2019-08-30 03:47:58 +01:00
Richard Davey
e3039ffb64
Added antialiasGL
option
2019-08-29 11:46:58 +01:00
Ben Richards
95d413dc3f
Fix friction issues at low frame rates or repeated physics steps.
...
- Add `prevFrame` to hold previous frame positions (`prev` now holds
previous step positions explicitly).
- Reset `prev` per step, fixing physics that relies on it.
- Remove `_reset` in favour of `moves`, which was all it ever checked.
Ironically, `_reset` never reset itself.
- Remove some `postUpdate` property setting which is now unnecessary.
The `prev` values now update just before they're used, so if you check
them outside the physics step, they reflect the previous step.
- Reset `World#stepsLastFrame` per frame, so it won't get stuck on.
2019-08-29 10:06:10 +12:00
Ben Richards
fd0dd79417
Prevent objects from sinking into tilemaps at low frame rates.
...
Because `blocked` would be set by the first collision,
repeated steps would then skip it, and allow gravity or acceleration
to ignore tiles in that direction for those steps.
2019-08-29 10:06:10 +12:00
Richard Davey
24f0187028
Preparing for 3.20 dev
2019-08-28 12:03:38 +01:00
Richard Davey
6887e7b4f0
JSDoc fix
2019-08-28 12:00:19 +01:00
=
e7cce944dd
Container now can apply alpha quads
2019-08-19 13:26:14 -03:00
Matthew Alner
4b42bc426b
Bug#4706 add event.cancelable
check
2019-08-11 12:46:28 +01:00
Richard Davey
7d2eaae693
The Container renderer functions will now read the childs alpha
property, instead of _alpha
, allowing it to work with more variety of custom children.
2019-08-08 14:03:23 +01:00
Richard Davey
35c2f9c28a
Bumped version
2019-08-08 13:30:36 +01:00
Richard Davey
ca74b85b75
Better Sound Manager type
2019-08-07 18:20:19 +01:00
Richard Davey
5a255eceed
Fixed Tween Event defs. Fix #4666
2019-08-07 13:46:50 +01:00
Richard Davey
d5cd37a9ac
Texture.remove
is a new method that allows you to remove a Frame from a Texture based on its name. Fix #4460
2019-08-07 13:03:00 +01:00
Richard Davey
6c04d99039
Frame.destroy
will now null the Frames reference to its parent texture, glTexture and clear the data and customData objects.
2019-08-07 12:59:23 +01:00
Richard Davey
b5d9ba3891
Added namespace for TS
2019-08-07 12:47:51 +01:00
Richard Davey
bf3a424dfd
It was not possible to set the zoom value of the Scale Manager back to 1 again, having changed it to a different value. Fix #4633
2019-08-07 12:47:40 +01:00
Richard Davey
f872b1ece9
Updated docs
2019-08-07 12:20:17 +01:00
Richard Davey
5dd75b64fc
Pointer.updateWorldPoint
is a new method that takes a Camera and then updates the Pointers worldX
and worldY
values based on the cameras transform
2019-08-07 12:10:50 +01:00
Richard Davey
717258e3f1
Docs update
2019-08-05 14:07:36 +01:00
Richard Davey
9f15b5a96b
Removed scale abs, as deeper effects unknown
2019-08-03 11:08:22 +01:00
Richard Davey
cc85ec1d35
Fixed scaleX and scaleY
2019-08-02 17:28:46 +01:00
Richard Davey
95678284de
Merge branch 'master' of https://github.com/photonstorm/phaser
2019-08-02 01:51:56 +01:00
Richard Davey
c1767e404f
Fixed scaleX and scaleY to handle negative scales and added rotation fix
2019-08-02 01:50:02 +01:00
Richard Davey
f5ead70206
Merge pull request #4685 from jcyuan/patch-1
...
fix `intensity` parameter type for typescript
2019-08-01 22:11:02 +01:00
Richard Davey
87a685dccc
Calling CanvasTexture.update
will now automatically call refresh
if running under WebGL. This happens for both draw
and drawFrame
, meaning you no longer need to remember to call refresh
after drawing to a Canvas Texture in WebGL, keeping it consistent with the Canvas renderer.
2019-08-01 19:27:47 +01:00
Richard Davey
6e2d22e5cb
jsdoc update
2019-08-01 17:44:20 +01:00
J.C
f3ce3c9359
fix intensity
type
2019-08-01 16:19:32 +08:00
J.C
ddae8f97fc
fix intensity
type
2019-08-01 16:15:52 +08:00
Richard Davey
0de2695b07
PhysicsEditorParser
has now been exposed under the Phaser.Physics.Matter
namespace, so you can call methods on it directly.
2019-07-26 18:15:26 +01:00
Richard Davey
718f75b797
TransformMatrix.rotation
now returns the properly normalized rotation value
2019-07-26 14:20:38 +01:00
Richard Davey
14faabcadf
Updated docs
2019-07-26 14:19:44 +01:00
Richard Davey
64b3e834d3
Testing rotation fix
2019-07-25 17:57:20 +01:00
Richard Davey
cf0b872636
CreateDOMContainer
will now use div.style.cssText
to set the inline styles of the container, so it now works on IE11. Fix #4674
2019-07-24 15:16:08 +01:00
Richard Davey
9e9d264973
getPixels defaults to 0x0
2019-07-21 16:18:21 +01:00
Richard Davey
08c09b539d
Added enableDebug
and removeDebug
from the Input Plugin, allowing you to create debug shapes to test where input hit areas are.
2019-07-19 15:16:10 +01:00