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
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
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
Richard Davey
8ff50da910
Fixed return type
2023-04-10 17:49:42 +01:00
Richard Davey
950f0a8363
Tilemap.getLayerIndex
will now return null
if a given TilemapLayer instance doesn't belong to the Tilemap or has been destroyed.
2023-04-10 17:43:02 +01:00
Richard Davey
0f72a9781b
Updated jsdocs
2023-04-03 18:35:25 +01:00
Richard Davey
f97d4d2477
Merge pull request #6400 from imothee/addTilesetImage-tilesetOffset
...
Adds tileOffset param to Phaser.Tilemaps.Tilemap#addTilesetImage
2023-03-31 14:34:53 +01:00
Richard Davey
84dcdd9719
Fixed eslint formatting errors #6429
2023-03-31 14:23:26 +01:00
Richard Davey
b65d4b48c6
Fixed jsdocs #6429
2023-03-31 14:23:13 +01:00
Richard Davey
c32c4ccfe4
Merge pull request #6429 from rexrainbow/tilemap-hexagon-staggeraxis-x
...
Support staggeraxis-x, staggerindex-odd
2023-03-31 14:18:49 +01:00
samme
e9e87bf8b7
Clear tiles when destroying tilemap
2023-03-26 14:31:52 -07:00
samme
3d386a055d
Save tileset index, fix putting empty tile
...
Adds Phaser.Tilemaps.Tilemap#tiles
Fixes #6353
2023-03-26 09:34:25 -07:00
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
ae449ad27b
Added missing PostPipeline class
2023-03-22 17:45:31 +00:00
Richard Davey
85d1673cce
Set directly on Sprite if a property, otherwise use setData. Fix #6391
2023-03-22 16:41:13 +00:00
Tim Marks
f01cc23b41
Adds tileOffset param to addTilesetImage function
2023-02-20 18:41:39 -08:00
samme
c7148b3378
Docs: createFromObjects() description
...
#5698
2023-02-15 13:40:17 -08:00
Pavle Goloskokovic
815e1460d6
TilemapFilterCallback return value type fix
2023-01-17 15:19:36 +01:00
Richard Davey
468bf7821d
Updated copyright year
2023-01-02 17:36:27 +00:00
Richard Davey
58533686d5
Merge pull request #6321 from samme/docs/constructor-types
...
Docs: change "Constructor" types to `function`
2022-12-19 16:43:31 +00:00
samme
390b4f577b
Docs: correct type for CreateFromTiles() etc.
...
`replacements` is nullable
2022-12-19 03:28:40 -08:00
samme
09be12612b
Docs: change "Constructor" types to function
...
- Phaser.Types.GameObjects.Group.GroupClassTypeConstructor
- Phaser.Types.GameObjects.Particles.ParticleClassConstructor
- Phaser.Types.Tilemaps.CreateFromObjectsClassTypeConstructor
Fixes #6318
2022-12-16 15:37:09 -08:00
Oni
6d9eebd45e
Add additional type to orientation property
2022-12-13 16:14:42 +01:00
Christen Lofland
e52f1738ef
Fix Issue #6301 causing tilemap collisions to fail.
2022-11-30 15:28:59 -06:00
Richard Davey
14ddd29fbd
Fixed TS errors
2022-11-30 15:06:52 +00: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