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
Richard Davey
db2fdc14d1
Update GetTileAt.js
2020-10-15 11:09:37 +01:00
Richard Davey
b4fed98aa2
Update SetCollisionBetween.js
2020-10-15 11:08:18 +01:00
Richard Davey
24777aa327
No need for isoCullDistances
, just use existing cullPadding
properties
2020-10-12 11:42:01 +01:00
Richard Davey
607fec9450
Use a cached Rectangle for speed
2020-10-12 11:40:52 +01:00
Richard Davey
9e68f41118
Formatting
2020-10-11 23:04:00 +01:00
Richard Davey
39f74d2e95
Use a cached vector to save constant allocation and fixed y culling limit
2020-10-11 23:03:52 +01:00
Richard Davey
114201f497
Fixed tilemaps with missing function
2020-10-08 11:07:05 +01:00
Richard Davey
c0c00b66be
Tilemaps.Components.IsometricCullTiles
is a new function that culls tiles in a isometric map.
2020-10-02 13:48:52 +01:00
Richard Davey
ab753ffe10
Tilemaps.Components.StaggeredCullTiles
is a new function that culls tiles in a staggered map.
2020-10-02 13:48:42 +01:00
Richard Davey
0b8b9fb3ba
Tilemaps.Components.HexagonalCullTiles
is a new function that culls tiles in a hexagonal map.
2020-10-02 13:48:33 +01:00
Richard Davey
c44c43a553
Tilemaps.Components.StaggeredCullBounds
is a new function that calculates the cull bounds for a staggered map.
2020-10-02 13:48:22 +01:00
Richard Davey
e42b407721
Tilemaps.Components.HexagonalCullBounds
is a new function that calculates the cull bounds for a hexagonal map.
2020-10-02 13:48:13 +01:00
Richard Davey
2450a16911
Tilemaps.Components.GetCullTilesFunction
is a new function that returns the correct culling function to use.
2020-10-02 13:48:01 +01:00
Richard Davey
c66df4b94b
Deleted unused files
2020-10-02 13:47:49 +01:00
Richard Davey
9c92fccd3a
Updated to use new components
2020-10-02 13:47:36 +01:00
Richard Davey
f58ec09489
Tilemaps.Components.CullBounds
is a new function that calculates the cull bounds for an orthogonal map.
2020-10-02 13:47:27 +01:00
Richard Davey
b11e5fe1fb
Tilemaps.Components.RunCull
is a new function that runs the culling process from the combined bounds and tilemap.
2020-10-02 13:47:10 +01:00
Richard Davey
da651dc650
Fixed require filename
2020-10-02 12:06:07 +01:00
Richard Davey
d5561ad97a
Use cached vec2s to avoid constant vector creation
2020-10-02 11:41:11 +01:00
Richard Davey
aafd5c6cee
Use cached vec2s to avoid constant vector creation
2020-10-02 11:36:44 +01:00
Richard Davey
f03ddf033b
Formatting fix #4992
2020-10-02 11:27:50 +01:00
Richard Davey
a3f67973cd
Corrected documentation and tidied up #4992
2020-10-02 11:25:48 +01:00
Richard Davey
ffb49bdb3a
Tilemaps.Components.StaggeredTileToWorldXY
is a new function that converts staggered tile coordinates to world coordinates.
2020-10-02 11:22:48 +01:00
Richard Davey
4281bc1763
Tilemaps.Components.IsometricTileToWorldXY
is a new function that converts isometric tile coordinates to world coordinates.
2020-10-02 11:22:39 +01:00
Richard Davey
3c3c01d4d5
Tilemaps.Components.HexagonalTileToWorldXY
is a new function that converts hexagonal tile coordinates to world coordinates.
2020-10-02 11:22:30 +01:00
Richard Davey
a51e0b8a68
Tilemaps.Components.GetWorldToTileXYFunction
is a new function that returns the correct conversion function to use.
2020-10-02 11:22:18 +01:00
Richard Davey
6049701d91
Restored previous function
2020-10-02 11:22:02 +01:00
Richard Davey
a89a58bd6c
Restore previous function
2020-10-02 11:16:32 +01:00