Commit graph

9155 commits

Author SHA1 Message Date
Richard Davey
d83b14274d
Merge pull request #5166 from samme/feature/group-setActive-setName
Add Group#setActive(), Group#setName()
2020-07-13 12:34:03 +01:00
Richard Davey
0ecaed42ec
Merge pull request #5163 from samme/fix/headless-renderTexture
Fix error adding a Render Texture with Headless renderer
2020-07-13 12:32:53 +01:00
Richard Davey
f0cbfba8e5
Merge pull request #5161 from samme/fix/stopAndReleaseAudioTag
Fix error stopping HTML5AudioSound after page blur
2020-07-13 12:31:28 +01:00
Richard Davey
54841002eb
Merge pull request #5162 from samme/docs/arcade-physics-types
Add Arcade Physics types
2020-07-13 12:27:54 +01:00
Richard Davey
818343f452 Fixed lint errors with PR #5159 2020-07-13 12:20:10 +01:00
Richard Davey
8951211c74
Merge pull request #5159 from tgroborsch/feature/multi-anims-chain
Allow chaining of multible animations
2020-07-13 12:19:03 +01:00
Richard Davey
17e9a762a0
Merge pull request #5154 from samme/feature/camera-cull-opt
Tiny optimization for BaseCamera#cull
2020-07-13 12:18:04 +01:00
Richard Davey
bafae8424d
Merge pull request #5153 from samme/fix/create-group-from-children
Fix problems passing `children` to created group
2020-07-13 12:15:26 +01:00
Richard Davey
7fa6d17e17
Merge pull request #5150 from samme/fix/static-body-from-scaled-sprite
Fix static body position from scaled sprite
2020-07-13 12:13:13 +01:00
Richard Davey
b6fd158986 Container.getBounds will no longer set the temp rect bounds to the first child of the Container by default (which would error if the child had no bounds, like a Graphics object) and instead sets it as it iterates the children 2020-07-13 12:12:28 +01:00
Richard Davey
a7ded1ee21 KeyboardPlugin.checkDown didn't set the duration to zero if the parameter was omitted, causing it to always return false. Fix #5146 2020-07-13 12:12:28 +01:00
Richard Davey
fe1f5f8eaf
Merge pull request #5139 from samme/feature/spritesheet-no-frames-warning
Print texture key in warning for zero frames
2020-07-13 12:07:12 +01:00
Richard Davey
6fddce1ef8
Merge pull request #5137 from samme/fix/decode-audio-error-msg
Fix 'Error decoding audio' message
2020-07-13 12:06:17 +01:00
Richard Davey
5b4423d6f3
Merge pull request #5135 from samme/feature/collide-use-static-tree
Always use static tree for collision checks
2020-07-13 12:03:18 +01:00
Richard Davey
2f48e5ee00
Merge pull request #5134 from samme/feature/arcade-physics-collisions-perf
Arcade Physics collisions optimizations
2020-07-13 12:02:38 +01:00
Richard Davey
feaaf04c40
Merge pull request #5131 from samme/fix/loader-file-state
Set file states FILE_LOADING and FILE_LOADED
2020-07-13 12:00:55 +01:00
Richard Davey
8c977bc391
Merge pull request #5127 from samme/fix/TimeStep-wake
Fix TimeStep#wake() when running
2020-07-13 11:52:10 +01:00
Richard Davey
4dfe40fa9a
Merge pull request #5126 from samme/fix/file-url
Fix TypeError when loading JSON objects in `url` argument
2020-07-13 11:49:37 +01:00
Richard Davey
b1ae96eb76
Merge pull request #5130 from samme/docs/gameobject-body-type
Correct types for GameObject#body
2020-07-13 11:48:35 +01:00
Richard Davey
b2a67754df
Merge pull request #5115 from samme/docs/body-drag-type
Correct docs corrections
2020-07-13 11:47:18 +01:00
Richard Davey
fc3a89a816
Merge pull request #5158 from mooreInteractive/patch-1
Update Docs for render config pixelArt to be more specific
2020-07-13 11:44:44 +01:00
Richard Davey
9a34fa9197
Merge pull request #5171 from samme/fix/input-noop
Fix NOOP import
2020-07-13 11:42:32 +01:00
Richard Davey
9bb3a4ba19
Merge pull request #5178 from samme/docs/misc-7
Docs
2020-07-13 11:41:28 +01:00
Richard Davey
3f13071368
Merge pull request #5214 from SirJosh3917/SirJosh3917-sys-add-container-jsdoc
Update ContainerFactory.js
2020-07-13 11:40:25 +01:00
Richard Davey
d00632232d
Merge pull request #5216 from SanderVanhove/master
Fix Path moveTo optional y param
2020-07-13 11:37:28 +01:00
Richard Davey
bc0c289550
Merge pull request #5218 from braindx/drag-transform-fix
Fix drag coordinates with camera zoom (issue #4755)
2020-07-13 11:36:29 +01:00
Richard Davey
d4ff957f02 Preparing for v3.24.0 2020-07-13 11:25:27 +01:00
Jay Mattis
c5cfae0118 Fix drag coordinates with camera zoom (issue 4755)
The dragX and dragY passed to 'dragStart' and 'drag' events are supported to be in world coordinates (as specified by the docs) but the coordinates used (pointer.x and pointer.y) were not transformed by the camera into world space. The drags now use pointer.worldX and pointer.worldY which are the post-transform coordinates.
2020-07-12 21:13:33 -07:00
SanderVanhove
b4dcc9b17a Fix Path moveTo optional y param 2020-07-10 19:49:45 +00:00
danilo neves cruz
7302ad1041 StaticTilemapLayerWebGLRenderer: apply rotation and parent transform 2020-07-11 02:35:20 +07:00
SirJosh3917
f2e8a83691
Update ContainerFactory.js
Given that Container's constructor allows x and y to be optional, the JSDoc should match that.
2020-07-09 23:32:54 -04:00
samme
01ca4293e4 Fix missing _crop property
Fixes #5211
2020-07-08 12:04:23 -07:00
samme
807aeed20c Correct prev and prevFrame 2020-07-03 14:02:10 -07:00
samme
3c239abf78 Add Display.Bounds.GetBounds() 2020-07-03 11:17:21 -07:00
samme
a626ba2777 Add Math#RotateTo 2020-07-03 11:08:04 -07:00
samme
16e94d79eb separateCircle fixes 2020-06-27 09:24:23 -07:00
samme
af141f6bf0 Add KeyboardPlugin#removeAllKeys 2020-06-23 11:58:26 -07:00
Michael Hadley
8285bcf44f Fix spacing 2020-06-17 08:21:06 -05:00
Michael Hadley
a161aa58cc Update TextStyle to have jsdocs for: wordWrapWidth, wordWrapUseAdvanced, wordWrapCallbackScope, wordWrapCallback 2020-06-17 07:53:23 -05:00
scott.liu
ea3279bd32 format 2020-06-17 11:03:25 +08:00
scott.liu
2f98f463d2 format 2020-06-17 11:01:50 +08:00
scott.liu
7f4bbf9192 format 2020-06-17 10:59:25 +08:00
scott.liu
104a3b9e35 format 2020-06-17 10:56:17 +08:00
scott.liu
f607f1f521 #3673 fix nested mask behaviour for Phaser.CANVAS mode 2020-06-17 10:53:38 +08:00
samme
e210de92be Docs: correct TimerEventConfig.startAt default 2020-06-16 10:57:35 -07:00
MerganThePirate
d60c9a33d8
Fixed bug from issue #5191 2020-06-15 08:25:26 -07:00
samme
3368d1e54a Docs: punctuation 2020-06-06 12:15:38 -07:00
samme
3c62cb3eb5 Configure timeline without tweens 2020-06-06 11:44:40 -07:00
samme
51779a80aa Docs: tween onStop, etc. 2020-06-06 11:21:23 -07:00
samme
de4943a407 Add tween 'stop' event and 'onStop' callback 2020-06-06 11:21:23 -07:00
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