Commit graph

186 commits

Author SHA1 Message Date
Richard Davey
c85defe920
Merge branch 'master' into feature/support-infinite-tiled-maps 2019-04-08 14:00:03 +01:00
Richard Davey
f41cacde25
Merge pull request #4336 from florianvazelle/master
Fix getCenter methods returning wrong value for scaled layers
2019-04-08 10:20:32 +01:00
Richard Davey
e2c68c5d86
Merge pull request #4418 from martinlindhe/ts-styleconfig
improve ts type hints for Phaser.Tilemaps.Types.StyleConfig
2019-04-08 09:53:39 +01:00
Richard Davey
7dd411ddc9
Merge pull request #4419 from peterellisjones/master
Swap incorrect terms in Tilemap#convertLayerToStatic documentation
2019-04-08 09:52:11 +01:00
Richard Davey
780b0bca90 Removed missing component 2019-03-25 12:54:49 +00:00
Richard Davey
e017691c68 The ScaleMode Component has been removed from every Game Object, and along with it the scaleMode property and setScaleMode method. These did nothing anyway as they were not hooked to the render pipeline and scale mode should be set on the texture, not the Game Object. Fix #4413 2019-03-24 23:07:27 +00:00
Peter Ellis Jones
2682874d1f Fix incorrect documentation for Phaser.Tilemaps.Tilemap#convertLayerToStatic 2019-03-09 15:47:49 +02:00
Martin Lindhe
38444d3443 improve ts type hints for Phaser.Tilemaps.Types.StyleConfig 2019-03-09 11:51:00 +01:00
Richard Davey
0ee2442597 Bumping to 3.17.0 2019-03-07 12:31:06 +00:00
Richard Davey
197fef7b52 Tilemap.removeTile is a new method that allows you to remove a tile, or an array of tiles, by passing in references to the tiles themselves, rather than coordinates. The tiles can be replaced with new tiles of the given index, or removed entirely, and the method can optionally recalculate interesting faces on the layer. 2019-03-05 14:45:53 +00:00
Richard Davey
73617da673 Tidied up the formatting 2019-03-05 14:41:35 +00:00
Jeremie Corpinot
e40ff20a2c
Update Tile.properties type to any
Update `Tile.properties` type from ` object` to `any` so we can access any un-declared property without TypeScript throwing an error.

Solve issue https://github.com/photonstorm/phaser/issues/4356
2019-02-13 20:04:45 +01:00
Richard Davey
4fc817c519 Final batch of typedefs 2019-02-13 16:06:00 +00:00
Richard Davey
60542a25cc Numerous jsdoc and TS related fixes 2019-02-04 17:16:08 +00:00
Richard Davey
348306cafb Lots more jsdoc fixes and new documentation 2019-01-31 14:47:50 +00:00
Richard Davey
4f6f6ee72f Lots of jsdoc and type fixes 2019-01-31 12:19:01 +00:00
florianvazelle
01f1daad51 Fix getCenter methods returning wrong value for scaled layers 2019-01-30 15:57:51 +01:00
Richard Davey
974c5342e7 Fixed jsdoc types (#4311) 2019-01-28 13:45:48 +00:00
jestarray
ade92db0e9
Updated Docs 2019-01-23 15:01:56 -08:00
jestarray
8a41b1f56a
Updated Docs 2019-01-23 15:00:07 -08:00
jestarray
4b0464a632 Updated tilemap jsdocs 2019-01-23 11:30:08 -08:00
Richard Davey
498ea6bf9a Fixed jsdocs. 2019-01-23 16:24:02 +00:00
Richard Davey
1eccff1e3b Fixed jsdoc links and markdown bullet lists 2019-01-18 15:20:56 +00:00
Richard Davey
aa341854c7 Happy New Year 2019-01-15 16:20:22 +00:00
Craig Whiteside
48fc7dc388
Merge branch 'master' into feature/support-infinite-tiled-maps 2018-12-20 16:51:42 +00:00
Richard Davey
b3c3b4bae7 Adjust pixel position so scaled tiles don't offset 2018-12-13 13:16:46 +00:00
Richard Davey
aae1cf5ae5 Tidying up 2018-12-13 13:10:31 +00:00
Richard Davey
ffd217dbdd Fixed size calculation and updated docs 2018-12-13 11:46:17 +00:00
Richard Davey
eef553d4c2 Fixed layer size calculations. Also changed rendering to use tileset tile sizes, as it should do. 2018-12-13 11:07:53 +00:00
Richard Davey
74d5af20c6 Tidying up 2018-12-13 11:07:20 +00:00
Richard Davey
79ee2229ad
Merge pull request #4207 from tfelix/fix/tilemap-layer-typedef-fix
fixes the typedef for the layer parameter
2018-12-12 11:28:57 +00:00
Richard Davey
2780babe10 Final Doc Jam merge 2018-12-03 15:16:23 +00:00
Thomas Felix
bd5f2b3bf5 fixes the typedef for the layer parameter
The layer parameter is used to call getLayer() so the parameter type for
the parent function should match the on of getLayer().
2018-12-01 20:40:17 +01:00
Richard Davey
6f8759c186 Whenever Camera.roundPixels was enabled it would use a bitwise operation to truncate the float (x |= 0) - this has been replaced across all files that used it, with a call to Math.round instead. This gives far better results when zooming cameras both in and out of a Scene, stopping thin gaps appearing between closely packed Game Objects. 2018-11-30 10:27:25 +00:00
Richard Davey
1e32537276 Merge branch 'master' of https://github.com/photonstorm/phaser 2018-11-20 12:45:52 +00:00
Richard Davey
625955178e Updated docs 2018-11-20 12:45:47 +00:00
Richard Davey
ee2459652c
Merge pull request #4173 from WaSa42/master
Fix: Cannot read property 'index' of undefined at GetTileAt and RemoveTileAt
2018-11-20 12:41:53 +00:00
Richard Davey
5c45b477b3 Fixed lint errors in #4152 2018-11-20 12:33:08 +00:00
Richard Davey
45342229cb
Merge pull request #4152 from quadrupleslap-forks-things/master
Fix Tile.tileset to return just the containing tileset instead of all…
2018-11-20 12:28:53 +00:00
Richard Davey
5985e33caf
Merge pull request #4105 from the-realest-stu/master
Fix #4104
2018-11-20 11:05:05 +00:00
Nicolas Rouvière
7b9f7f0217 Fix: Cannot read property 'index' of undefined at GetTileAt and RemoveTileAt 2018-11-19 00:08:36 +01:00
Ram Kaniyur
e5ebfe861f Fix Tile.tileset to return just the containing tileset instead of all of them. 2018-11-08 21:27:16 +11:00
Richard Davey
956a0913b8 Added new jsdocs 2018-10-22 12:12:31 +01:00
Richard Davey
a73249563e Fixed formatting 2018-10-19 13:51:32 +01:00
Richard Davey
0eafcc0d57
Merge pull request #4119 from nkholski/master
Pick up animation data from Tiled 1.2+
2018-10-19 13:49:10 +01:00
Richard Davey
8a58ceeded
Merge pull request #4113 from Siyalatas/culling-fix
Simple fix for a reference error when culling tilemaps
2018-10-19 13:36:31 +01:00
Richard Davey
4c4421c47f Docjam merge 2018-10-19 12:32:43 +01:00
Niklas Berg
206c12d70d Pick up animation data from Tiled 1.2+ 2018-10-17 15:12:41 +02:00
foobar
e481ea4cfd Fix reference error when culling 2018-10-15 20:31:46 +02:00
Richard Davey
4b1c762296 Updated @memberOf to @memberof 2018-10-10 10:49:13 +01:00