Richard Davey
e550202b28
v4.0.0 Alpha 1 merge
2024-11-14 11:40:26 +00:00
Richard Davey
c066ffef1b
The HexagonalTileToWorldXY
function incorrectly used this
instead of layer
causing it to error in hex tilemaps with x axis staggering. Fix #6913
2024-10-04 15:53:27 +01:00
Richard Davey
f519c582c7
Fixed jsdocs
2024-07-23 16:58:57 +01:00
Richard Davey
ee2110c062
Removed debugging info.
2024-07-23 16:38:07 +01:00
Richard Davey
6c02206a90
Debugging tile spacing
2024-07-22 19:03:57 +01:00
Richard Davey
52085dba91
Don't call setTileSize or setSpacing unless values are given
2024-07-22 19:03:11 +01:00
Richard Davey
f2cc3c0b91
Update TilemapLayer.js
2024-07-15 17:24:27 +01:00
samme
9037738bce
Docs: nonNull arg for GetTileAt() etc.
2024-06-27 14:17:47 -07:00
Richard Davey
c445303ffb
Revert define changes as they don't work
2024-02-21 13:23:52 +00:00
Richard Davey
7aaa976a4e
Updated webpack config DefinePlugin use and corresponding defs to allow those crazy souls who import source directly on node to have a better life #6644
2024-02-21 12:57:48 +00:00
Richard Davey
d855fa73d3
The TilemapWebGLRenderer
function has been fixed so it now uses the TileSet width and height for the tile draw command. This fixes an issue where the Tilemap would render incorrectly if the base tile size was different to the tile size. Fix #5988
2024-02-21 00:17:09 +00:00
Richard Davey
c273a1c9af
Handle non-sprite sheets
2024-02-21 00:01:28 +00:00
Richard Davey
133073a55e
The Tileset.updateTileData
method has two new optional parameters offsetX
and offsetY
which allow you to set the offset that the tile data starts from within the base source texture.
2024-02-20 23:56:14 +00:00
Richard Davey
085bfa0cac
Use the TextureManager
2024-02-20 23:53:11 +00:00
Richard Davey
ebe627836e
Fixed object creation, sprite origin and added useSpriteSheet property
2024-02-20 21:38:42 +00:00
Richard Davey
0002c009f7
Updated jsdocs
2024-02-20 21:38:19 +00:00
Richard Davey
89811d7388
The Tilemap.createFromTiles
method has been updated. It will now copy the following properties, if set in the Tile, to the Sprites it creates: rotation
, flipX
, flipY
, alpha
, visible
and tint
. If these properties are declared in the spriteConfig
passed to the method, those will be used instead, otherwise the Tile values are used. Fix #6711
2024-02-20 18:39:52 +00:00
Richard Davey
38da7de892
Fix Tilemap properties JSDoc type. Fix #6331
2024-02-20 16:35:18 +00:00
Richard Davey
1f8276ac76
Updated copyright year, company and author
2024-02-19 17:12:24 +00:00
Ben Richards
587b6e7bcd
Merge branch 'master' into webgl-wrappers
2024-02-01 11:00:08 +13:00
Robert Kowalski
ab0ce4d335
CheckIsoBounds after checking if the iso tile will be visible
2024-01-31 11:34:21 -05:00
Robert Kowalski
b27e4d3744
Merge pull request #6537 from jorbascrumps/feat-use-seeded-random-for-tilemap-weighted-randomize
...
Updates `Tilemaps.Components.WeightedRandomize` to use seeded random value
2024-01-30 18:45:20 -05:00
samme
002fa6300a
Improve the warnings in addTilesetImage()
2024-01-29 09:17:41 -08:00
Ben Richards
b591c3674a
Document usage of WebGLTextureWrapper
in place of WebGLTexture
.
2024-01-29 11:47:39 +13:00
Richard Davey
0b32610e56
Updated version to 3.70
2023-11-10 15:04:01 +00:00
Richard Davey
070e42d64e
Merge pull request #6648 from samme/fix/PutTileAt-2
...
Fix TypeError in PutTileAt()
2023-11-08 15:28:12 +00:00
Richard Davey
ed5c44a65e
Fixed an issue in the way the Tilemap WebGL Renderer would call batchTexture
that meant if you applied a PostFX to a Tilemap it would apply the fx for every single tile in the layer, instead of just once per layer. In a simple map this fix has reduced draw calls from over 12,000 to just 52, making it useable.
2023-11-07 22:51:11 +00:00
Richard Davey
4748edf908
Use the new tile.tintFill boolean
2023-10-11 20:53:40 +01:00
Richard Davey
c04c61ad1a
TilemapLayer.setTintFill
is a new method that will apply a fill-based tint to the tiles in the given area, rather than an additive-based tint, which is what the setTint
method uses.
2023-10-11 20:53:31 +01:00
Richard Davey
641276c625
Tile.tintFill
is a new boolean property that controls if the tile tint is additive or fill based. This is used in the TilemapLayerWebGLRenderer function.
2023-10-11 20:53:12 +01:00
samme
034a24b74b
Fix TypeError in PutTileAt()
...
Fixes #6622
2023-10-10 11:36:23 -07:00
Richard Davey
3268650dcb
Make Collision Component capable of working with Groups and Tilemap Layers
2023-10-04 17:09:37 +01:00
Richard Davey
2461bf076a
Added collision category, collision mask and related methods
2023-10-04 16:28:22 +01:00
samme
a581b821eb
Docs: correct type for BuildTilesetIndex(mapData)
...
This should be close enough
2023-09-06 16:26:36 -07:00
Richard Davey
28738a4046
Tile
was incorrectly using the Alpha
Game Object component, instead of the AlphaSingle
component, which meant although the methods implied you could set a different alpha per tile corner, it was never reflected in the rendering. It has now been updated to use just the single alpha value. Fix #6594
2023-08-28 16:04:14 +01:00
Richard Davey
ab9fced253
Fixed breaking typo introduced by #6474
2023-08-01 21:15:01 +01:00
Richard Davey
1ad5e626af
Updated version number
2023-07-21 16:49:24 +01:00
Richard Davey
80515012bd
Merge pull request #6542 from rui-han-crh/expose-layer-id
...
Expose layer id from Tiled map parser in LayerData and ObjectLayer
2023-07-21 16:40:53 +01:00
Richard Davey
1217464a0b
Merge pull request #6487 from DaliborTrampota/master
...
Fixes drawing hexagonal tilemaps
2023-07-21 16:35:28 +01:00
Richard Davey
939bd5da5b
Merge pull request #6474 from wjaykim/patch-2
...
fix: Crash in PutTileAt
2023-07-21 16:25:56 +01:00
Richard Davey
915f662d95
Merge pull request #6488 from samme/fix/setFromJSON
...
Fix `createFromObjects()` from Tiled array of object custom properties
2023-07-21 16:07:34 +01:00
Rui Han
fababac09a
Change the note in documentation of id to be more descriptive
2023-07-09 23:57:02 +08:00
Rui Han
a3b3eb1d7a
Record layer id from Tiled map json in LayerData config
2023-07-07 18:14:21 +08:00
Rui Han
90209b3d10
Add layer id to ObjectLayer
2023-07-07 18:11:52 +08:00
Rui Han
f421546e39
Add layer id to LayerData
2023-07-07 18:11:13 +08:00
Chris Wright
af220fa531
Updated weighted random to use seeded random
2023-07-05 10:50:49 -04:00
samme
c3335db081
Docs: Tilemap#createFromObjects description
2023-05-04 16:38:39 -07:00
samme
b70e353d49
Fix copying from the other Tiled object custom properties format
...
Fixes #6391
2023-05-01 11:30:44 -07:00
Dalibor Trampota
0ac9d48686
Fixes drawing hexagonal tilemaps
2023-05-01 19:39:32 +02:00
Jay Kim
745fb79aad
fix: Crash in PutTileAt
...
If mutliple layer exists in tilemap and tilesets were added in each layers, calling putTileMap crashes the game because it tries to get tileset from its layers' own tileset array. Because tile index were gotten from tilemap.tiles, its index differ from index in layer specific tileset array.
2023-04-15 16:48:24 +09:00