Rex
bc1fcf7357
Suport staggerIndex-even with staggerAxis-y and staggerAxis-x
2023-03-25 20:47:45 +08:00
Rex
65c0f9f73b
Support staggeraxis-x, staggerindex-odd
2023-03-25 11:54:41 +08:00
Richard Davey
f8faec2702
Fixed reference and removed mapData check
2023-03-22 18:23:36 +00:00
Richard Davey
c850e85ca4
The TilemapLayer.skipCull
feature wasn't being applied correctly for Isometric, Hexagonal or Staggered tiles, only for Orthographic tiles (the default). It will now respect the skipCull
property and return all tiles during culling if enabled. Fix #5524
2023-03-22 18:01:34 +00:00
Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
samme
390b4f577b
Docs: correct type for CreateFromTiles() etc.
...
`replacements` is nullable
2022-12-19 03:28:40 -08:00
Christen Lofland
e52f1738ef
Fix Issue #6301 causing tilemap collisions to fail.
2022-11-30 15:28:59 -06:00
Richard Davey
c0a072b37d
Update GetTileCorners.js
2022-11-28 18:34:20 +00:00
Richard Davey
7f8a4eebf4
Update GetTileCorners.js
2022-11-28 18:33:36 +00:00
Richard Davey
91c731d609
Update GetTileCornersFunction.js
2022-11-28 18:32:06 +00:00
Richard Davey
4253db9a08
The Tilemap
and TilemapLayer
classes have a new method getTileCorners
. This method will return an array of Vector2s with each entry corresponding to the corners of the requested tile, in world space. This currently works for Orthographic and Hexagonal tilemaps.
2022-11-28 18:31:20 +00:00
Richard Davey
f2aa880797
Update HexagonalTileToWorldXY.js
2022-11-28 18:16:01 +00:00
Richard Davey
3676881d57
Added comments
2022-11-28 17:34:18 +00:00
Richard Davey
f3e90518e5
Removed the HexagonalTileToWorldY
function as it cannot work without an X coordinate. Use HexagonalTileToWorldXY
instead.
2022-11-28 17:34:11 +00:00
Richard Davey
31ea1dc6da
Recoded the point conversion math in the HexagonalTileToWorldXY
function as it was incorrect. Now returns world coordinates correctly.
2022-11-28 17:33:48 +00:00
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
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
25bc5dec90
Fixed world to isometric conversion and added optional base origin property.
...
Fix #5781
2022-11-24 00:26:40 +00:00
samme
b60761a706
Fix the GetTilesWithinShape() area
...
Fixes #5640
2022-05-06 09:54:50 -07:00
Richard Davey
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
6b7a000975
Fix eslint
2021-12-07 17:30:56 +00: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
Maya Nedeljkovich
20ebc6f7a2
Fix getBounds for creating MatterTileBody for staggered tiles
2021-06-30 15:21:13 +02: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
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
Richard Davey
2e91763abc
Fixes lots of default parameters
2020-11-26 12:55:40 +00:00
Richard Davey
a5cb3779df
JSDoc fixes
2020-11-23 15:29:08 +00:00
Richard Davey
28d925b875
JSDoc fixes
2020-11-23 15:06:45 +00:00
Richard Davey
ecb567766b
Fixed filtering and style types
2020-11-23 10:54:14 +00:00
Richard Davey
8698a03bad
JSDoc fixes
2020-11-23 10:48:24 +00:00
Richard Davey
417f7684c3
More integer to number changes
2020-11-23 10:32:00 +00:00
Richard Davey
3f511a73cd
Replace integer[] with number[]
2020-11-23 10:23:10 +00:00
Richard Davey
02c34cd64e
Replace integer with number
2020-11-23 10:22:13 +00:00
Richard Davey
d852108154
JSDoc fixes
2020-11-23 10:19:39 +00:00
Richard Davey
0b589564ea
JSDoc fixes
2020-11-20 16:37:53 +00:00
Richard Davey
c5d7c94cb4
Fixed JSDocs
2020-11-20 16:20:35 +00:00
Richard Davey
750880fe5f
Fix culled tiles return
2020-11-20 14:58:43 +00:00
Richard Davey
ed756d16f1
Fixed Get Tiles Within Shape function
2020-11-20 12:39:18 +00:00
Richard Davey
536f08a4bf
Avoid deep diving into loads of functions
2020-10-15 11:47:11 +01:00
Richard Davey
67b787ab7c
Update GetTilesWithinWorldXY.js
2020-10-15 11:09:52 +01:00