Commit graph

16705 commits

Author SHA1 Message Date
Brown Dragon
a420b6e46a Improve ObjectHelper docs even if they are just internal only 2021-05-21 09:49:19 -04:00
Josh Black
1a0b0beaae Add 'capacitor://' to local file check in loader File base class to allow capacitor-wrapped iOS apps to read media files 2021-05-18 08:06:45 +01:00
VektreX
b63bb53430 Reset _codePaused to false in play handlers to allow video to resume 2021-05-18 01:32:45 +02:00
Joshua Meyer
a0838c184f
dx1 !== 0 was an unnecessary restriction
In the previous version, if x1 == x2 the code was never able to detect an intersection even if there was one.

This limitation was because of the unnecessary division by dx1. With its removal it should work now.
2021-05-14 21:04:33 +02:00
Brown Dragon
02e67e682f Addresses https://github.com/photonstorm/phaser/issues/5697
This diff adds:
* `type` support to `createFromObjects`. See https://doc.mapeditor.org/en/stable/manual/custom-properties/#typed-tiles for the description in Tiled; this is currently not supported as a parameter, and its usage is documented within the diff.
* `createFromObjects` will also examine the tileset. As per the above link, created objects are supposed to inherit properties from the tile with the same gid, but Phaser doesn't do that right now. After this diff it optionally will, by passing an additional parameter to `createFromObjects`.
> NOTE: I'd be very happy to make this a default behavior, but that's somewhat backwards breaking
* `createFromObjects` will attempt to use the same texture and frame as Tiled when creating the object. This will behave poorly if there is no such frame (for instance, if the texture were loaded with `this.load.image` instead of `this.load.spritesheet`, or using different geometry. However, the current behavior draws missingimage, so this is a strong improvement.
2021-05-13 17:05:03 -04:00
Benjamin Magalhaes
562a05a642 Remove unused WebGLPipelineUniformsConfig 2021-05-13 15:21:35 +02:00
Benjamin Magalhaes
aa97541c3f Fix WebGLPipelineAttributeConfig documentation 2021-05-13 13:31:18 +02:00
Sebastian Fast
df9f367b95 #5689 moved _pending to beginning of function 2021-05-13 10:52:06 +02:00
Francisco Pereira Alvarado
699e81e008
Update CHANGELOG.md - new helpers added 2021-05-10 12:02:56 +02:00
Richard Davey
1f037d7670 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-05-07 11:30:55 +01:00
Ali Karbassi
dd4ef06f97
GameObjectConfig allow type object
GameObjectConfig x, y, rotation, angle, and alpha should allow type object

Fixes #5682
2021-05-05 17:01:56 -05:00
Richard Davey
144924bc61 JSDoc fix 2021-05-03 18:15:29 +01:00
Richard Davey
f802ac5d8c The Input.Pointer.event property can now be a WheelEvent as well. 2021-05-03 18:15:20 +01:00
Richard Davey
c5f3f377ce Improved JSDocs 2021-04-26 10:05:57 +01:00
Rex
62ea171971 Add MoveAbove, MoveBelow methods of List structure
MoveAbove: Moves the given array element above another one in the array.
MoveBelow: Moves the given array element below another one in the array.
2021-04-26 15:17:42 +08:00
Richard Davey
682ac1a108 Update CHANGELOG.md 2021-04-25 20:33:02 +01:00
Richard Davey
7d3970178d The RenderTexture.endDraw method has a new optional boolean erase which allows you to draw all objects in the batch using a blend mode of ERASE. This has the effect of erasing any filled pixels in the objects being drawn. 2021-04-25 20:32:56 +01:00
Richard Davey
6735f7e88e Update Shape.js 2021-04-20 15:15:51 +01:00
Rex
fca1eb1206 Also fix it in CanvasRender 2021-04-20 21:15:46 +08:00
Richard Davey
20ce4b9090 Merge branch 'master' of https://github.com/photonstorm/phaser 2021-04-20 08:53:44 +01:00
Richard Davey
5cdf60167e Update CHANGELOG.md 2021-04-20 08:53:41 +01:00
Rex
e6ed148abc Invoke addToRenderList first before leaving render method
Leaving render method when children count is 0
2021-04-20 10:22:59 +08:00
Richard Davey
7a12a205b8
Merge pull request #5661 from Palats/master
Fix Phaser.GameObjects.Components.Pipeline#postPipelines doc
2021-04-19 20:41:29 +01:00
Richard Davey
2156be011b Update Extern.js 2021-04-19 08:52:25 +01:00
Pierre Palatin
93543d650a
Fix Phaser.GameObjects.Components.Pipeline#postPipelines doc
* Updates the Documentation

Describe the changes below:
The `s` was missing in the doc for `postPipelines`, leading to wrong Typescript typing and misleading documentation.
2021-04-18 17:49:32 +02:00
Richard Davey
2712e87ca2 Graphics and Shape now use the new Multi Pipeline 2021-04-16 18:19:39 +01:00
Richard Davey
9879a1062e Merged the Graphics Pipeline functions into the MultiPipeline 2021-04-16 18:18:42 +01:00
mojixiang
7f161fa3ad
Update PutTileAt.js 2021-04-15 18:24:06 +08:00
moJiXiang
f686a9674b fix PutTileAt tile size with releated tileset width and height, releated bug #5647 2021-04-15 18:04:14 +08:00
valadaptive
4640874643 Fix check for new text measurement results
actualBoundingBoxDescent is *not* defined on the TextMetrics object
returned from measureText--it's defined on its prototype. This oversight
was causing the slow path to be taken in all browsers.
2021-04-14 22:44:10 -04:00
valadaptive
4cd7706390 Only call getImageData once in MeasureText 2021-04-14 22:38:58 -04:00
Richard Davey
f41d7fb3e7 Update CHANGELOG.md 2021-04-13 14:48:17 +01:00
Richard Davey
958364ce98 Update CHANGELOG.md 2021-04-13 14:44:51 +01:00
Richard Davey
aaa66488dc The Mesh Game Object would incorrectly cull faces if the Camera scrolled. It now calculates the cull correctly, regardless of camera world position, zoom or rotation. Fix #5570 2021-04-13 14:44:46 +01:00
Richard Davey
4e2285fd05 Fixed docs 2021-04-13 14:44:38 +01:00
Richard Davey
ab7e287305 Update CHANGELOG.md 2021-04-13 13:42:37 +01:00
Richard Davey
bb1a078243 The GameObjectFactory.existing method will now accept Layer as a TypeScript type. Fix #5642 2021-04-13 13:42:33 +01:00
Richard Davey
85d554c1a8 Update CHANGELOG.md 2021-04-13 13:40:09 +01:00
Richard Davey
c1f7753dd8 Typo. Fix #5649 2021-04-13 13:40:06 +01:00
Richard Davey
6b785b1288 Update CHANGELOG.md 2021-04-13 13:38:47 +01:00
Richard Davey
f425880db9
Merge pull request #5652 from vforsh/webgl-texture-compression
Improve types for WebGL texture compression support
2021-04-13 13:37:45 +01:00
Richard Davey
896befc722
Merge pull request #5639 from mattjennings/fix/load-video-by-config
Fix incorrect key when loading a Video with a config object
2021-04-13 13:36:34 +01:00
Richard Davey
3c3b32ec77
Merge pull request #5641 from samme/fix/UpdateList-shutdown
Fix scene PRE_UPDATE handlers removed at scene shutdown
2021-04-13 13:33:52 +01:00
Richard Davey
d86962e344
Merge pull request #5638 from samme/patch-9
Docs: fix type for KeyboardPlugin#manager
2021-04-13 13:31:42 +01:00
Richard Davey
26709924ce
Merge pull request #5643 from Trissolo/master
Fix - Math#ToXY, in a specific case, does not set the existing vector passed as 'out' parameter
2021-04-13 13:30:14 +01:00
Vladislav Forsh
670a66c697 Improve types for WebGL texture compression support
(cherry picked from commit 5626acffec17c6b4d66c78b8e0aa52e5cfcd8478)
2021-04-13 13:19:24 +03:00
Trissolo
8ae19dee83 Fixed - Math#ToXY: now the existing vector passed as 'out' is setted even if 'index' is 0. 2021-04-05 10:31:21 +02:00
samme
2856b1ab3a Fix clearing PRE_UPDATE by mistake 2021-04-02 19:02:14 -07:00
Matt Jennings
33014d8d6a fix key not being correct when loading video via config object 2021-04-02 15:18:40 -05:00
samme
9e4d693481
Docs: fix type for KeyboardPlugin#manager 2021-04-02 10:31:49 -07:00