Commit graph

9155 commits

Author SHA1 Message Date
samme
fd3c682646 Add Arcade.Body#updateFromGameObject 2020-06-05 10:32:05 -07:00
samme
c963768c1e Docs: SetCollisionByExclusion() and friends
Fixes #5179

Thanks @BoltKey
2020-06-05 10:01:30 -07:00
Rex
84fd7eaa98 Fix bug about setting xRadius/yRadius by width/height
xRadius/yRadius is half of width/height
2020-06-02 14:00:52 +08:00
samme
dd7976699d Docs: grammar 2020-06-01 09:57:36 -07:00
samme
e091aecead Docs: Phaser.Tweens.Tween#callbacks
Tween#stop() does not invoke onComplete
2020-06-01 09:38:34 -07:00
samme
84d11e4772 Docs: add missing Phaser.GameObjects.Shape#geom 2020-05-31 15:07:12 -07:00
Michael Hadley
4e0176691a Fix return type in Text#getTextMetrics: object -> Phaser.Types.GameObjects.Text.TextMetric 2020-05-30 07:53:48 -05:00
Laurence
1238727256 Add info to the scene manager method headers where data is passed to (Scene.init and Scene.create) 2020-05-29 08:18:43 +01:00
samme
4722750f62 Fix NOOP import
Fixes #5170
2020-05-27 18:20:05 -07:00
samme
f1eb31c81a Add Phaser.GameObjects.Group#setActive 2020-05-25 10:58:26 -07:00
samme
6aeb609d55 Docs: whitespace 2020-05-25 10:58:10 -07:00
samme
5b9c34a32a Docs: Depth#depth and Depth#setDepth() 2020-05-25 09:20:42 -07:00
samme
9ffa3bd262 Remove spurious assignment 2020-05-24 22:25:21 -07:00
samme
634dfe4f29 Add Phaser.GameObjects.Group#setName 2020-05-24 22:17:55 -07:00
samme
50e93d2cee Fix error for headless renderer 2020-05-23 11:45:01 -07:00
samme
c0b6027160 Add Arcade Physics types 2020-05-23 10:09:41 -07:00
timo
a39199849e Allow chaining of multible animations
With this commit it is possible to chain more than one animation together for example:
this.mole.anims.play('digging',true).anims.chain('lifting').anims.chain('looking').anims.chain('lowering');

This commit introduces a property nextAnimsQueue. It holds all additional nextAnim-Keys in the order the chain()-method was called. It is handed over to the nextAnim-Property in the stop()-method.
2020-05-22 14:03:42 +02:00
timo
b00acb1838 Revert "Allow for chaining multible animations"
This reverts commit a5eacab048.
2020-05-22 13:45:21 +02:00
timo
a5eacab048 Allow for chaining multible animations
This allows for chaining multible animations by calling the chain(key) method multible times like this:
this.mole.anims.play('digging',true).anims.chain('lifting').anims.chain('looking').anims.chain('lowering');

This commit adds a new property nextAnimsQueue. This is an array that holds the chained keys in order of chain() requests.
This list will be worked on in the stop() function.
2020-05-22 13:30:37 +02:00
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
Godard
5fd94d76a7 fix Input enableDebug function, add debug Shape to parentContainer 2020-04-09 12:04:20 -04:00
Godard
9c2447dcb8 fix Container pointToContainer function 2020-04-09 12:02:31 -04:00
lucap
ace0e200e4 #5078
- passing the data from the transition to the System.wake method
- added missing property to the SceneTransitionConfig definition
2020-04-08 20:20:01 +02:00
samme
e8381c1b9b Add new Sound Manager methods
- BaseSoundManager#get()
- BaseSoundManager#getAll()
- BaseSoundManager#removeAll()
- BaseSoundManager#stopByKey()
2020-04-04 14:29:31 -07:00
samme
eeb00c1a92 Docs: when to quote fontFamily
Fixes #5076
2020-04-04 10:56:52 -07:00
samme
dfe4219f65 Add Geom.Rectangle.FromXY 2020-04-03 20:46:10 -07:00
samme
4a711e42fe Docs: fix description for TiledObject.point 2020-04-03 20:13:13 -07:00
Survesh
ed0e76cdbf Updated fix for issue #5069 2020-04-03 18:48:49 +05:30
samme
b51b0a1d2a Add Math.Angle.Random() and Math.Angle.RandomDegrees() 2020-04-02 10:41:43 -07:00
samme
f6dfb9a278 Reset sceneUpdate in boot
Fixes #5065
2020-04-01 13:12:25 -07:00
samme
9ff1634e66 Docs: correct names for easing functions
Linear, Stepped. #5062
2020-03-29 14:42:42 -07:00
jjcapellan
4e4b1359de fix #5059 2020-03-28 19:20:07 +01:00
samme
08aaf6231f Docs: fix my math in Transform#rotation 2020-03-27 21:18:49 -07:00
samme
51ecad61ad Clamp volume
Fixes 'IndexSizeError: The index is not in the allowed range'
2020-03-24 17:00:25 -07:00
samme
cae9d2ec07 Description for BaseSoundManager#playAudioSprite 2020-03-24 13:56:22 -07:00
aucguy
ff886b001e Fix loading audio and video with blob urls
Passing a blob url as the second parameter to `this.load.audio` or
`this.load.video` would cause Phaser to load a different url.
Additionally, `this.load.path` would incorrectly be prepended to the
url.

`AudioFile.getAudioURL` and `VideoFile.getVideoURL`, are expected to
return an object with two properties; url and type. However when passed
a blob url they return a string. The return value's
`url` property is inspected to get the url. For strings' the property is
`undefined`. If the url property is undefined then a url derived from
the asset key is used instead.
2020-03-22 22:21:27 -05:00
samme
bc8606c65c Add Phaser.Types.Tilemaps.TiledObject.point 2020-03-22 16:09:23 -07:00
samme
5ec9e6b91a Offset by object data dimensions, allowing zero offset 2020-03-22 09:37:42 -07:00
samme
fb881a54b9 Add 'point' property for points
https://doc.mapeditor.org/en/latest/reference/json-map-format/#point-example
2020-03-22 09:29:10 -07:00
samme
df1537fa36 Remove redundant assignments
Already picked
2020-03-22 09:28:24 -07:00
samme
c3dae63c20 Description for Vector2#normalizeRightHand 2020-03-21 13:57:12 -07:00
samme
700d3b7316 Physics groups descriptions 2020-03-21 09:46:31 -07:00
samme
037d3f1823 Description for pack property 2020-03-18 10:24:59 -07:00