Richard Davey
03842535c3
TilemapLayer.setTint
is a new method that allows you to set the tint color of all tiles in the given area, optionally based on the filtering search options. This is a WebGL only feature.
2022-05-24 18:27:33 +01:00
Richard Davey
4e391fa6ab
Merge pull request #6108 from samme/feature/TilemapLayer-mask
...
Add Mask component to TilemapLayer
2022-05-16 15:58:47 +01:00
samme
b6171f6e43
Add Mask component to TilemapLayer
2022-05-10 10:37:45 -07:00
Richard Davey
a4d8e87095
Fixed lint errors
2022-05-10 17:06:53 +01:00
Richard Davey
d8947e84b0
Merge pull request #6081 from adamazmil/iso-map
...
Fixes getTop for creating MatterTileBody for isometric tiles
2022-05-09 17:09:08 +01:00
Richard Davey
919fa39faa
Merge pull request #6067 from TJ09/commonjs-import-change
...
Don't reassign the return values from require()
2022-05-09 16:49:58 +01:00
samme
b60761a706
Fix the GetTilesWithinShape() area
...
Fixes #5640
2022-05-06 09:54:50 -07:00
Adam Azmil
902b916dd1
Fixes getTop for creating MatterTileBody for isometric tiles
2022-04-19 16:43:28 +08:00
T.J. L
ff4ef2872b
Don't overwrite the return values from require()
2022-04-02 01:49:19 -07:00
samme
7f37d52ba9
Docs: add CreateFromObjectsClassTypeConstructor
2022-03-30 11:05:27 -07:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
58f09aa006
Update Tile.js
2022-02-22 13:51:03 +00:00
Richard Davey
a4308cfa3a
Skips Canvas drawImage calls if invalid frame sizes given. Fix #5951
2022-02-03 16:44:24 +00:00
Richard Davey
476ed38e33
Removed deprecated functions
2021-12-07 17:30:56 +00:00
Richard Davey
6b7a000975
Fix eslint
2021-12-07 17:30:56 +00:00
samme
2ebbb970a5
Shorten the 'Valid tilelayer' warning
2021-11-22 08:47:56 -08:00
samme
15b62e1756
Docs: fix types in Phaser.Tilemaps.ObjectHelper#setFromJSON
2021-10-13 15:58:32 -07:00
kainage
369bf06b8e
Fix WebGL Tilemap Layer Rendering
...
* A typo was blowing up rendering the tilemaps all together
* FIx the X coord not being calculated correctly in the `batchTexture` call
2021-10-06 22:01:12 -07:00
Richard Davey
8aa6385cec
Fixed JSDocs
2021-10-06 21:39:44 +01:00
Richard Davey
6f4ceba23f
Merge pull request #5855 from lfarroco/master
...
Fix rendering of Tiled object layers on isometric maps
2021-10-06 21:11:34 +01:00
Leonardo Farroco
fc4db55b26
adds isometric ratio
2021-10-05 23:19:09 -03:00
Richard Davey
7934613e8f
The Tilemaps.Tile.getBounds
method would take a camera
parameter but then not pass it to the methods called internally, thus ignoring it. It now factors the camera into the returned Rectangle.
2021-10-05 21:52:54 +01:00
Leonardo Farroco
64f7b992be
linting
2021-10-03 16:35:02 -03:00
Leonardo Farroco
687942e77e
Change positioning for isometric object layer from Tiled
2021-10-03 16:30:05 -03:00
Richard Davey
550dd2bd85
Merge pull request #5514 from etherealmachine/patch-1
...
Fix typing of MapData objects
2021-09-23 16:03:24 +01:00
Richard Davey
5dfab5f5d9
eslint and jsdoc fixes for #5697
2021-09-23 16:02:52 +01:00
Richard Davey
d44e8e782e
Merge branch 'master' into tilemap
2021-09-23 15:47:47 +01:00
Richard Davey
f4c7cb4a6d
Fixed jsdocs. Renamed property to tileOffset
. Fixed parsing of it. #5637
2021-09-22 11:26:08 +01:00
Richard Davey
736be1abc8
tileOffset hadn't been applied to the canvas renderer #5637
2021-09-22 11:25:39 +01:00
Richard Davey
d0b5b91a5e
tileOffset is always set, so this check is redundant #5637
2021-09-22 11:25:13 +01:00
Richard Davey
d16588014f
Merge pull request #5637 from moJiXiang/fix-tilemap-offset
...
fix tilemap draw offset, maybe it is a bug, related issue #5633
2021-09-22 11:14:15 +01:00
Richard Davey
7434769faf
Merge pull request #5657 from moJiXiang/fix-bug-#5647
...
fix PutTileAt tile size with releated tileset width and height, releated bug #5647
2021-09-22 11:10:03 +01:00
Richard Davey
2771f280d2
Merge pull request #5750 from jonnytest1/master
...
assign array by index for skipped chunks
2021-09-22 11:03:44 +01:00
Richard Davey
4fd0a27b15
Formatting fix
2021-09-20 12:34:35 +01:00
Richard Davey
4ab8a4d3a3
Merge pull request #5767 from mayacoda/master
...
Fix getBounds for creating MatterTileBody for staggered tiles
2021-09-20 12:26:55 +01:00
Richard Davey
4b011e2225
Merge pull request #5790 from samme/fix/createFromObjects-offset
...
Fix offset for non-tile objects in createFromObjects()
2021-09-20 12:12:41 +01:00
samme
08a600edcb
Docs: correct CreateFromObjectLayerConfig.classType
...
Fixes #5831
2021-09-14 09:10:09 -07:00
samme
788bcb4330
Fix offset in createFromObjects()
...
Fixes #5789
2021-07-22 11:08:32 -07:00
Maya Nedeljkovich
20ebc6f7a2
Fix getBounds for creating MatterTileBody for staggered tiles
2021-06-30 15:21:13 +02:00
jonnytest1
46009935b4
assign array by index for skipped chunks
...
loading breaks for layers that skip chunks with no data
2021-06-18 02:34:05 +02:00
Brown Dragon
a420b6e46a
Improve ObjectHelper docs even if they are just internal only
2021-05-21 09:49:19 -04: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
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
moJiXiang
7579702b7a
fix tilemap draw offset, maybe it is a bug, related issue #5633
2021-04-01 18:43:27 +08:00
Richard Davey
0c05d681e6
Update ParseTilesets.js
2021-02-16 11:44:49 +00:00
Richard Davey
e8fe16c417
Fixed function name and formatting #5292
2021-02-16 11:44:43 +00:00
Richard Davey
be2dad8a70
Merge pull request #5292 from browndragon/tiled
...
Fix up tiled json parsing.
2021-02-16 11:35:24 +00:00
Richard Davey
3493c4cd7b
Merge pull request #5523 from veleek/veleek/tiledobjectprops
...
Load Tiled object properties using names.
2021-02-10 09:30:56 +00:00
Ben Randall
40ff85bdc5
Fix IsometricWorldToTileXY result
...
IsometricWorldToTileXY returns a tile that is offset by (-0.5, 0.5)
tiles from the expected location. This fixes the function so that
Tile => World => Tile conversion returns the same value.
2021-01-28 12:25:51 -05:00