Richard Davey
c8b40de29c
Improved jsdocs
2022-11-24 00:41:55 +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
59fbcc5ca3
Updated copyright year
2022-02-28 14:29:51 +00:00
Richard Davey
476ed38e33
Removed deprecated functions
2021-12-07 17:30:56 +00:00
samme
2ebbb970a5
Shorten the 'Valid tilelayer' warning
2021-11-22 08:47:56 -08:00
Leonardo Farroco
fc4db55b26
adds isometric ratio
2021-10-05 23:19:09 -03: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
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
4ab8a4d3a3
Merge pull request #5767 from mayacoda/master
...
Fix getBounds for creating MatterTileBody for staggered tiles
2021-09-20 12:26:55 +01:00
Richard Davey
4b011e2225
Merge pull request #5790 from samme/fix/createFromObjects-offset
...
Fix offset for non-tile objects in createFromObjects()
2021-09-20 12:12:41 +01:00
samme
08a600edcb
Docs: correct CreateFromObjectLayerConfig.classType
...
Fixes #5831
2021-09-14 09:10:09 -07:00
samme
788bcb4330
Fix offset in createFromObjects()
...
Fixes #5789
2021-07-22 11:08:32 -07:00
Maya Nedeljkovich
20ebc6f7a2
Fix getBounds for creating MatterTileBody for staggered tiles
2021-06-30 15:21:13 +02:00
Brown Dragon
a420b6e46a
Improve ObjectHelper docs even if they are just internal only
2021-05-21 09:49:19 -04:00
Brown Dragon
02e67e682f
Addresses https://github.com/photonstorm/phaser/issues/5697
...
This diff adds:
* `type` support to `createFromObjects`. See https://doc.mapeditor.org/en/stable/manual/custom-properties/#typed-tiles for the description in Tiled; this is currently not supported as a parameter, and its usage is documented within the diff.
* `createFromObjects` will also examine the tileset. As per the above link, created objects are supposed to inherit properties from the tile with the same gid, but Phaser doesn't do that right now. After this diff it optionally will, by passing an additional parameter to `createFromObjects`.
> NOTE: I'd be very happy to make this a default behavior, but that's somewhat backwards breaking
* `createFromObjects` will attempt to use the same texture and frame as Tiled when creating the object. This will behave poorly if there is no such frame (for instance, if the texture were loaded with `this.load.image` instead of `this.load.spritesheet`, or using different geometry. However, the current behavior draws missingimage, so this is a strong improvement.
2021-05-13 17:05:03 -04:00
Ben Randall
fea65988f4
Load Tiled object properties.
...
Tiled objects have properties as an array of objects like:
{ name: ..., type: ..., value: ...}
Update the parser to load these using the name/value properties instead
of just treating it as an array and loading properties named '0', '1',
etc. This is the same as how properties are handled in ParseTilesets.js
2021-01-23 14:59:33 -05:00
Richard Davey
1d58620e35
Don't render debug if not orthogonal #5447
2020-12-14 09:48:29 +00:00
Richard Davey
2e91763abc
Fixes lots of default parameters
2020-11-26 12:55:40 +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
e526af7cb9
Lint fix
2020-10-12 13:38:57 +01:00
Richard Davey
3e2041a3c5
Overhauled createFromObjects to make it much more useful. Fix #3817 #4613
2020-10-12 13:31:30 +01:00
Richard Davey
04d80a8b5c
Allow use of old method calls for now
2020-10-12 11:50:13 +01:00
Richard Davey
0ba1f08f80
The Static and Dynamic Tilemap Layer objects have been removed and consolidated into the new TilemapLayer class.
2020-10-12 11:40:40 +01:00
Richard Davey
f00bb446f8
Formating fix
2020-10-11 23:04:11 +01:00
Richard Davey
d9d4d74c89
Updated docs
2020-10-02 14:03:32 +01:00
Richard Davey
04ecc38a61
Fixed JSDocs and const path #4922
2020-10-02 11:57:37 +01:00
Richard Davey
b09197d8cb
Added proper JSDocs and fixed private accessors #4922
2020-10-02 11:53:23 +01:00
Richard Davey
398bdf4314
Tilemap.hexSideLength
is a new property that holds the length of the hexagon sides, if using Hexagonal Tilemaps.
2020-10-02 10:30:08 +01:00
Richard Davey
c3c35322c4
Merge pull request #4992 from svipal/master
...
Preliminary PR for isometric support
2020-10-02 09:42:47 +01:00
Richard Davey
8d51e8ab2c
Fix #4859
2020-09-23 12:59:03 +01:00
Svipal
299f83c13d
fixed conflicts
2020-09-19 10:56:05 +02:00
svipal
79fe9abc6e
finished updating culling system
2020-09-18 17:16:52 +02:00
Svipal
809d0b7495
merged master
2020-08-09 13:13:09 +02:00
Svipal
241d4193e8
let's try again
2020-08-09 12:33:52 +02:00
Svipal
b4a1473fea
test
2020-08-09 12:13:29 +02:00
samme
c963768c1e
Docs: SetCollisionByExclusion() and friends
...
Fixes #5179
Thanks @BoltKey
2020-06-05 10:01:30 -07:00
Richard Davey
63eb41eb94
Merge pull request #5051 from samme/feature/tiled-point-and-createFromObjects
...
Add Tiled point object and change offset in createFromObjects()
2020-04-27 13:10:34 +01:00
samme
56ad38f17d
Docs: correct Tilemap#renderDebugFull
2020-04-26 12:38:20 -07:00
svipal
5911b94d35
Revert "clean up"
...
This reverts commit 854589ddbe
.
woops
2020-04-10 20:55:31 +02:00
svipal
854589ddbe
clean up
2020-04-10 20:40:52 +02:00
Svipal
8665e08f13
refactored things so that there is no more switching at runtime depending on orientation
2020-04-03 19:36:13 +02:00
samme
5ec9e6b91a
Offset by object data dimensions, allowing zero offset
2020-03-22 09:37:42 -07:00
Svipal
cec71a85ea
added hexagonal support
2020-03-21 10:19:03 +01:00
svipal
b63a4e1107
Update Tilemap.js
2020-02-08 11:53:27 +01:00
Svipal
dc330aaf4a
linted everything
2020-02-06 11:02:44 +01:00
Svipal
95df0be94a
changed orientation localisation to layer, will make easier the fixing of pixelwidth and height and makes more sense overall
2020-01-29 20:27:40 +01:00