Richard Davey
|
27bbf9b2f5
|
Tilemap.copy would error if you copied a block of tiles over itself, even partially, as it tried to copy already replaced tiles as part of the function. It will now copy correctly, regardless of source or destination areas. Fix #6188
|
2022-11-28 13:35:04 +00:00 |
|
Richard Davey
|
18b25d5bc1
|
Update GetTilesWithin.js
|
2022-11-28 13:34:57 +00:00 |
|
Richard Davey
|
949852d8d5
|
Recoded the point conversion math in the HexagonalWorldToTileXY function as it was incorrect. Now detects any dimension hexagon correctly. Fix #5608
|
2022-11-24 23:31:49 +00:00 |
|
Richard Davey
|
5139d22814
|
Added debug code commented out
|
2022-11-24 23:11:11 +00:00 |
|
Richard Davey
|
84ef41f470
|
Fixed math for any layer scale
|
2022-11-24 23:11:01 +00:00 |
|
Richard Davey
|
ddd4eeaa53
|
Now works - time to tidy up
|
2022-11-24 21:29:58 +00:00 |
|
Richard Davey
|
d570b9b26b
|
Debugging hex coords
|
2022-11-24 18:54:17 +00:00 |
|
Richard Davey
|
c4b9dbc260
|
Added staggerAxis and staggerIndex
|
2022-11-24 18:54:10 +00:00 |
|
Richard Davey
|
b065452cc4
|
Debugging
|
2022-11-24 13:44:52 +00:00 |
|
Richard Davey
|
4bf7e1978f
|
WorldToTileXY now does all the calculations and X and Y just call it.
|
2022-11-24 12:51:18 +00:00 |
|
Richard Davey
|
36bbc88995
|
Removed HexagonalWorldToTileY as it cannot work without an X value
|
2022-11-24 12:41:42 +00:00 |
|
Richard Davey
|
cf657f4fc7
|
Calling Tilemap.worldToTileX or worldToTileY on a Isometric or Hexagonal Tilemap will now always return null instead of doing nothing, as you cannot convert to a tile index using just one coordinate for these map types, you should use worldToTileXY instead.
|
2022-11-24 00:42:13 +00:00 |
|
Richard Davey
|
c8b40de29c
|
Improved jsdocs
|
2022-11-24 00:41:55 +00:00 |
|
Richard Davey
|
6aa193c21b
|
Added new getIsoTileAtWorldXY method.
|
2022-11-24 00:27:01 +00:00 |
|
Richard Davey
|
25bc5dec90
|
Fixed world to isometric conversion and added optional base origin property.
Fix #5781
|
2022-11-24 00:26:40 +00:00 |
|
Richard Davey
|
ce12d63d01
|
The Tilemap.destroyLayer method would throw an error "TypeError: layer.destroy is not a function". It now correctly destroys the TilemapLayer. Fix #6268
|
2022-11-17 14:34:46 +00:00 |
|
Richard Davey
|
759599e4d1
|
MapData and ObjectLayer will now enforce that the Tilemap.objects property is always an array. Sometimes Tiled willl set it to be a blank object in the JSON data. This fix makes sure it is always an array. Fix #6139
|
2022-11-17 14:28:23 +00:00 |
|
Richard Davey
|
05845c6ee0
|
The ParseJSONTiled function will now run a DeepCopy on the source Tiled JSON, which prevents object mutation, fixing an issue where Tiled Object Layer names would be duplicated if used across multiple Tilemap instances. Fix #6212
|
2022-11-17 14:17:58 +00:00 |
|
Richard Davey
|
06b1adca14
|
Lint fix
|
2022-09-20 22:23:09 +01:00 |
|
samme
|
cfb92c6957
|
Give TilemapLayer origin (0, 0)
|
2022-09-19 08:33:33 -07:00 |
|
Richard Davey
|
bdbadd1339
|
Update CreateGroupLayer.js
|
2022-09-12 20:17:11 +01:00 |
|
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 |
|