Commit graph

211 commits

Author SHA1 Message Date
Seth Berrier
13b6d6d5ae Fix for bug related to Issue #4737
- When removing a layer from a tilemap, layerIndex can become invalid
- Added loop to fix any existing tilemapLayer.layerIndex vales
2019-10-31 16:03:48 -05:00
Richard Davey
6b973dcf58 DynamicTilemapLayer.setCollision would cause an indexOf error when trying to access the layer data. Fix #4800 2019-10-15 11:34:32 +01:00
Richard Davey
312797dc8e JSDoc fixes 2019-10-11 18:29:55 +01:00
Richard Davey
3a3ce8b914
Merge branch 'master' into tile-collision-update 2019-10-02 15:15:18 +01:00
Richard Davey
0aaa67957a Tilemap Canvas Render functions now respect game pixel art settings 2019-10-01 16:10:29 +01:00
Richard Davey
f4002471d7 Updated context lost / restored handlers 2019-07-17 16:38:00 +01:00
Richard Davey
e012115df4 DynamicTilemapLayer.destroy will now no longer run its destroy sequence again if it has already been run once. Fix #4634 2019-07-03 15:53:47 +01:00
samme
268d206e41 Fix scene arg in createFromObjects() 2019-06-29 12:13:15 -07:00
Fabadiculous
255232dd2a Fix bug where graphics methods were not renamed 2019-06-22 16:55:50 +10:00
Richard Davey
ea8bb89554 Exposed all of the Tilemap Parser functions. Fix #4318 2019-06-12 12:35:41 +01:00
Richard Davey
0f592ba91a Moved the Pick function to the object utils 2019-06-12 12:35:03 +01:00
Richard Davey
89fe081f74 Added new Tiled Object and Object Layer defs. Fix #4364 2019-06-06 11:20:40 +01:00
Richard Davey
3da69ade29 Tilemap.createDynamicLayer would fail if you called it without setting the x and y arguments, even though they were flagged as being optional. Fix #4508 2019-06-06 10:43:46 +01:00
Richard Davey
04ec7b26a1 Tilemap.createBlankDynamicLayer would fail if you provided a string for the tileset as the base tile width and height were incorrectly read from the tileset argument. Fix #4495 2019-06-06 10:29:28 +01:00
Benjamin
35776fcd2d JSDoc: Make createDynamicLayer() position optional 2019-05-22 19:18:54 +02:00
Richard Davey
c91ed91ce3 License link update 2019-05-10 16:15:04 +01:00
Richard Davey
a6341a97a8 Fixed Types references 2019-05-09 15:32:53 +01:00
Richard Davey
44faa01578 Tilemap Types 2019-05-09 12:39:19 +01:00
Richard Davey
d75431fc2b lint fixes 2019-05-03 17:38:27 +01:00
Richard Davey
0012ed3524 Added Tilemap.renderDebugFull method. 2019-04-08 16:05:12 +01:00
Richard Davey
c1400f9514 Fixed lots of Tilemap methods that claimed to return null but didn't 2019-04-08 15:59:48 +01:00
Richard Davey
0514d27efc Added new argument removeFromTilemap 2019-04-08 15:59:30 +01:00
Richard Davey
d63321eba5 Layers now remove themselves from the Tilemap when destroyed. Fix #4319 2019-04-08 15:45:43 +01:00
Richard Davey
a8027bab7f Added removeLayer and destroyLayer methods. 2019-04-08 15:45:16 +01:00
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