Richard Davey
|
1839e58581
|
Tidied up formatting #4922
|
2020-10-02 12:05:52 +01:00 |
|
Richard Davey
|
8ea29b6cf2
|
Removed console warnings
|
2020-10-02 12:02:48 +01:00 |
|
Richard Davey
|
89cec01b39
|
Updated types
|
2020-10-02 12:02:40 +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
|
d5561ad97a
|
Use cached vec2s to avoid constant vector creation
|
2020-10-02 11:41:11 +01:00 |
|
Richard Davey
|
aafd5c6cee
|
Use cached vec2s to avoid constant vector creation
|
2020-10-02 11:36:44 +01:00 |
|
Richard Davey
|
f03ddf033b
|
Formatting fix #4992
|
2020-10-02 11:27:50 +01:00 |
|
Richard Davey
|
a3f67973cd
|
Corrected documentation and tidied up #4992
|
2020-10-02 11:25:48 +01:00 |
|
Richard Davey
|
ffb49bdb3a
|
Tilemaps.Components.StaggeredTileToWorldXY is a new function that converts staggered tile coordinates to world coordinates.
|
2020-10-02 11:22:48 +01:00 |
|
Richard Davey
|
4281bc1763
|
Tilemaps.Components.IsometricTileToWorldXY is a new function that converts isometric tile coordinates to world coordinates.
|
2020-10-02 11:22:39 +01:00 |
|
Richard Davey
|
3c3c01d4d5
|
Tilemaps.Components.HexagonalTileToWorldXY is a new function that converts hexagonal tile coordinates to world coordinates.
|
2020-10-02 11:22:30 +01:00 |
|
Richard Davey
|
a51e0b8a68
|
Tilemaps.Components.GetWorldToTileXYFunction is a new function that returns the correct conversion function to use.
|
2020-10-02 11:22:18 +01:00 |
|
Richard Davey
|
6049701d91
|
Restored previous function
|
2020-10-02 11:22:02 +01:00 |
|
Richard Davey
|
a89a58bd6c
|
Restore previous function
|
2020-10-02 11:16:32 +01:00 |
|
Richard Davey
|
769850a400
|
Tilemaps.Components.StaggeredTileToWorldY is a new function that converts a staggered Y coordinate to a world coordinate.
|
2020-10-02 11:16:18 +01:00 |
|
Richard Davey
|
0b7d3236b4
|
Tilemaps.Components.HexagonalTileToWorldY is a new function that converts a hexagonal Y coordinate to a world coordinate.
|
2020-10-02 11:16:07 +01:00 |
|
Richard Davey
|
0b630754f7
|
Tilemaps.Components.GetTileToWorldYFunction is a new function that returns the correct conversion function to use.
|
2020-10-02 11:15:54 +01:00 |
|
Richard Davey
|
00603c0d39
|
Tilemaps.Components.GetTileToWorldXFunction is a new function that returns the correct conversion function to use.
|
2020-10-02 11:03:56 +01:00 |
|
Richard Davey
|
3eaacffb37
|
Restore previous function #4992
|
2020-10-02 11:03:03 +01:00 |
|
Richard Davey
|
0952421bfb
|
Expose the new functtions #4992
|
2020-10-02 11:00:30 +01:00 |
|
Richard Davey
|
da3d0108f4
|
Restore back to previous version
|
2020-10-02 10:59:24 +01:00 |
|
Richard Davey
|
9c22133bb2
|
Tilemaps.Components.StaggeredWorldToTileXY is a new function that converts world coordinates to staggered tile coordinates.
|
2020-10-02 10:58:36 +01:00 |
|
Richard Davey
|
b8520f3b0d
|
Tilemaps.Components.IsometricWorldToTileXY is a new function that converts world coordinates to isometric tile coordinates.
|
2020-10-02 10:58:18 +01:00 |
|
Richard Davey
|
7402d22c53
|
Tilemaps.Components.HexagonalWorldToTileXY is a new function that converts world coordinates to hexagonal tile coordinates.
|
2020-10-02 10:57:57 +01:00 |
|
Richard Davey
|
7d39bf9217
|
Tidy return statements
|
2020-10-02 10:57:14 +01:00 |
|
Richard Davey
|
ef2d4f6d7a
|
Tilemaps.Components.GetWorldToTileXYFunction is a new function that returns the correct conversion function to use.
|
2020-10-02 10:56:44 +01:00 |
|
Richard Davey
|
2537e3ff70
|
Tilemaps.Components.GetWorldToTileXFunction is a new function that returns the correct conversion function to use.
|
2020-10-02 10:37:41 +01:00 |
|
Richard Davey
|
3352bd800c
|
Restored previous version #4992
|
2020-10-02 10:37:30 +01:00 |
|
Richard Davey
|
92b431646a
|
Tilemaps.Components.GetWorldToTileYFunction is a new function that returns the correct type of translation to use.
|
2020-10-02 10:31:02 +01:00 |
|
Richard Davey
|
f1c85fc220
|
Tilemaps.Components.HexagonalWorldToTileY is a new function that converts world Y coordinates from pixels to hexagonal tile Y coordinates.
|
2020-10-02 10:30:53 +01:00 |
|
Richard Davey
|
cb09374f9d
|
Tilemaps.Components.StaggeredWorldToTileY is a new function that converts world Y coordinates from pixels to staggered tile Y coordinates.
|
2020-10-02 10:30:43 +01:00 |
|
Richard Davey
|
17df0f7135
|
Restored to previous version. #4992
|
2020-10-02 10:30:30 +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
|
24437485af
|
Fixed static function #4992
|
2020-10-02 10:19:13 +01:00 |
|
Richard Davey
|
ba4be029be
|
Create TilemapOrientationType.js
|
2020-10-02 10:18:57 +01:00 |
|
Richard Davey
|
a8bd2204f2
|
Fixed updatePixelXY and prioritied orthogonal maps. #4992
|
2020-10-02 09:52:40 +01:00 |
|
Richard Davey
|
555c47e773
|
Moved Tilemap const declarations to the correct place. #4992
|
2020-10-02 09:48:44 +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
|
79920709e5
|
removed useless change
|
2020-09-23 01:13:20 +02:00 |
|
Svipal
|
3997cad5a7
|
same work
|
2020-09-19 13:05:56 +02:00 |
|
Svipal
|
5fd854fd26
|
fixed dynamic layer
|
2020-09-19 11:45:46 +02:00 |
|
Svipal
|
a9e8c49bf0
|
fixed typo
|
2020-09-19 11:04:28 +02: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 |
|
Richard Davey
|
6a966e3f3b
|
Removed interpolationPercentage parameter from all render methods, as it has never been used.
|
2020-09-14 15:33:58 +01:00 |
|
Richard Davey
|
951457c881
|
As a result of the change to the shader, all uses of the WebGL Util function getTintAppendFloatAlphaAndSwap have been replaced with getTintAppendFloatAlpha instead.
|
2020-09-14 15:02:13 +01:00 |
|
Richard Davey
|
e450bf2f1f
|
Swap to using constants for pipeline names
|
2020-09-09 13:05:18 +01:00 |
|
Richard Davey
|
d198818d80
|
Game Objects now call the new Pipeline Manager methods directly
|
2020-09-09 13:05:18 +01:00 |
|
Svipal
|
1994185d6f
|
merged master
|
2020-09-08 22:17:04 +02:00 |
|
Richard Davey
|
0d934c730e
|
Every single Tilemap.Component function has now been made public. This means you can call the Component functions directly, should you need to, outside of the Tilemap system.
|
2020-09-02 11:54:24 +01:00 |
|
Richard Davey
|
07865a5823
|
Final set of namespace changes. Fix #5062
|
2020-09-01 20:28:42 +01:00 |
|
Richard Davey
|
0dd07333af
|
Updated to use MultiPipeline
|
2020-08-21 16:14:59 +01:00 |
|
Svipal
|
40a26256c4
|
oop
|
2020-08-09 15:55:00 +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
|
97bb9b4a8f
|
bad bad idea
|
2020-08-09 12:33:26 +02:00 |
|
Svipal
|
c77731d127
|
bad idea
|
2020-08-09 12:24:56 +02:00 |
|
Svipal
|
b4a1473fea
|
test
|
2020-08-09 12:13:29 +02:00 |
|
Svipal
|
a72efc8ac8
|
Update ParseTileLayers.js
|
2020-08-09 11:50:25 +02:00 |
|
Richard Davey
|
f3ebada1e0
|
Tidy up everything after rendering
|
2020-07-17 15:49:03 +01:00 |
|
Richard Davey
|
9280a73bf9
|
StaticTilemapLayer now includes the ModelViewProjection mixin, so it doesn't need to modify the pipeline during rendering.
|
2020-07-17 15:48:53 +01:00 |
|
Richard Davey
|
10c19bd24d
|
StaticTilemapLayer.upload will now set the vertex attributes and buffer the data, and handles internal checks more efficiently.
|
2020-07-17 13:58:38 +01:00 |
|
Richard Davey
|
6e15f6b77d
|
Refactored to tidy it up and also now works with Light2D pipeline
|
2020-07-17 13:56:56 +01:00 |
|
Richard Davey
|
dc04949d3d
|
Needs fixing tomorrow
|
2020-07-16 18:10:40 +01:00 |
|
Richard Davey
|
f89d53ca0d
|
Update DynamicTilemapLayerWebGLRenderer.js
|
2020-07-16 17:43:14 +01:00 |
|
Richard Davey
|
d34d52550d
|
Renders using setTextureZero
|
2020-07-15 18:03:57 +01:00 |
|
Richard Davey
|
0003d278fd
|
Updated to use new external MVP functions
|
2020-07-14 16:49:30 +01:00 |
|
Richard Davey
|
2a2a2eafe8
|
Reverted PR #5219 because it breaks camera zooming on tilemaps
|
2020-07-14 08:47:52 +01:00 |
|
Richard Davey
|
cbba26e08c
|
Merge pull request #5215 from cruzdanilo/layer-webgl-transform
StaticTilemapLayerWebGLRenderer: apply rotation and parent transform
|
2020-07-13 13:18:02 +01:00 |
|
danilo neves cruz
|
7302ad1041
|
StaticTilemapLayerWebGLRenderer: apply rotation and parent transform
|
2020-07-11 02:35:20 +07:00 |
|
Svipal
|
b4d9d71009
|
fixed orthogonal world to tile
|
2020-06-25 15:04:57 +02:00 |
|
Svipal
|
9bd310810d
|
done
|
2020-06-06 11:13:11 +02:00 |
|
Svipal
|
9c8cdd4063
|
trying to fix conflic in ParseTileLayers
|
2020-06-06 11:11:43 +02:00 |
|
Svipal
|
e6d468cda7
|
worldToTile fixed
|
2020-06-06 00:23:16 +02:00 |
|
samme
|
c963768c1e
|
Docs: SetCollisionByExclusion() and friends
Fixes #5179
Thanks @BoltKey
|
2020-06-05 10:01:30 -07:00 |
|
Richard Davey
|
96b1d4c783
|
Update LayerDataConfig.js
|
2020-04-27 16:16:50 +01:00 |
|
Richard Davey
|
cef9aa2120
|
New Type Defs
|
2020-04-27 16:13:49 +01:00 |
|
Richard Davey
|
b035d190e9
|
Added JSDocs
|
2020-04-27 16:13:40 +01:00 |
|
Richard Davey
|
bf9cbabe50
|
Fixed lint errors with #4964 PR
|
2020-04-27 13:46:37 +01:00 |
|
Richard Davey
|
06f8d1b8a5
|
Merge pull request #4964 from gogoprog/feature/tilemapImageCollections
Create tilesets from image collections
|
2020-04-27 13:42:46 +01: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 |
|
Richard Davey
|
91bfd7d0c2
|
Merge pull request #4984 from Nightspeller/issue#4983
Proposed fix for the issue#4983
|
2020-04-27 12:39:24 +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 |
|
samme
|
4a711e42fe
|
Docs: fix description for TiledObject.point
|
2020-04-03 20:13:13 -07: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
|
bc8606c65c
|
Add Phaser.Types.Tilemaps.TiledObject.point
|
2020-03-22 16:09:23 -07:00 |
|
samme
|
5ec9e6b91a
|
Offset by object data dimensions, allowing zero offset
|
2020-03-22 09:37:42 -07:00 |
|
samme
|
fb881a54b9
|
Add 'point' property for points
https://doc.mapeditor.org/en/latest/reference/json-map-format/#point-example
|
2020-03-22 09:29:10 -07:00 |
|
samme
|
df1537fa36
|
Remove redundant assignments
Already picked
|
2020-03-22 09:28:24 -07:00 |
|
Svipal
|
1ccc815ce7
|
removed a few debug prints, moved isoBounds to a new component, started to add constants
|
2020-03-22 12:35:24 +01:00 |
|
Svipal
|
33daee1d27
|
canvas renderer typo fix
|
2020-03-22 08:48:26 +01:00 |
|
svipal
|
9c23f7e72f
|
Update src/tilemaps/ParseToTilemap.js
Co-Authored-By: Chris Andrew <hex727@gmail.com>
|
2020-03-22 08:46:07 +01:00 |
|
Svipal
|
72cb3343d6
|
cleaning up debug prints and such
|
2020-03-21 11:25:04 +01:00 |
|
Svipal
|
cec71a85ea
|
added hexagonal support
|
2020-03-21 10:19:03 +01:00 |
|
Svipal
|
406e6eb093
|
fixed worldtotilex on odd tiles
|
2020-03-14 10:57:19 +01:00 |
|
Svipal
|
66e99bccc6
|
changed a few things, preparing tiles
|
2020-03-14 10:23:13 +01:00 |
|
Svipal
|
a7d4816564
|
added staggered support
|
2020-03-14 10:11:04 +01:00 |
|
svipal
|
9780592a90
|
Update StaticTilemapLayer.js
|
2020-02-08 15:55:22 +01:00 |
|
svipal
|
8e30c5ef1c
|
Update TileToWorldX.js
|
2020-02-08 15:53:53 +01:00 |
|
svipal
|
cf622269e8
|
Update PutTileAt.js
|
2020-02-08 15:51:12 +01:00 |
|
svipal
|
a40ff084f9
|
Update DynamicTilemapLayerWebGLRenderer.js
|
2020-02-08 15:25:51 +01:00 |
|
svipal
|
304ff79b2b
|
Update StaticTilemapLayer.js
|
2020-02-08 12:23:09 +01:00 |
|
svipal
|
283bb46358
|
Update ParseJSONTiled.js
|
2020-02-08 12:15:30 +01:00 |
|
svipal
|
71cf182d97
|
Update LayerData.js
|
2020-02-08 12:14:49 +01:00 |
|
svipal
|
a8719c5697
|
Update StaticTilemapLayer.js
|
2020-02-08 12:06:02 +01:00 |
|
svipal
|
e8fe850edf
|
Update StaticTilemapLayerCanvasRenderer.js
|
2020-02-08 12:03:43 +01:00 |
|
svipal
|
7122ea0b6b
|
Update GetTilesWithinShape.js
|
2020-02-08 11:56:38 +01:00 |
|
svipal
|
e4c43e59ba
|
Update CullTiles.js
|
2020-02-08 11:55:33 +01:00 |
|
svipal
|
dc604e6336
|
Update TilemapCreator.js
|
2020-02-08 11:54:09 +01:00 |
|
svipal
|
b63a4e1107
|
Update Tilemap.js
|
2020-02-08 11:53:27 +01:00 |
|
svipal
|
7ba3771045
|
Update Tile.js
|
2020-02-08 11:51:14 +01:00 |
|
svipal
|
4ca9f5dbf1
|
Update Tile.js
|
2020-02-08 11:47:43 +01:00 |
|
svipal
|
4007e92be0
|
Update GetTileAt.js
|
2020-02-08 10:32:35 +01:00 |
|
svipal
|
f48e4aa9aa
|
Update GetTileAt.js
|
2020-02-08 10:31:59 +01:00 |
|
Svipal
|
9b86c5e6ed
|
commented
|
2020-02-07 15:31:15 +01:00 |
|
Svipal
|
1573e25214
|
added isoCullDistances parameter to DynamicTilemapLayer
|
2020-02-07 15:21:11 +01:00 |
|
Svipal
|
d7a857697f
|
fixed worldToTileXY and tileToWorldXY undefined point mistakes. Fixed getTilesWithinXY incorrect snaptoFloor setting
|
2020-02-07 14:05:42 +01:00 |
|
Svipal
|
dc330aaf4a
|
linted everything
|
2020-02-06 11:02:44 +01:00 |
|
Svipal
|
5747f7102d
|
fixed problems with removeTileAt
|
2020-02-05 18:42:20 +01:00 |
|
Svipal
|
aaf512b9cd
|
fixed problems with putting tiles from null tiles
|
2020-02-05 18:37:40 +01:00 |
|
Serg
|
29c7fcaa7d
|
Proposed fix for the issue with inconsistent type of 'properties' member of Tile Layer data.
|
2020-02-04 22:47:22 -05:00 |
|
Svipal
|
a8b60cf946
|
fixed dynamic layer rendering
|
2020-02-04 04:57:28 +01:00 |
|
Svipal
|
fd29e96a5d
|
changed orientation to be part of the layer, really cleaned up API. Started tests on the dynamic layer. Trying to understand getTileAt bug
|
2020-01-30 15:58:07 +01:00 |
|
Svipal
|
70cbdc0925
|
preparing for WIP PR 4
|
2020-01-29 20:32:08 +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 |
|
Svipal
|
d6489d1146
|
preparing WIP PR 2
|
2020-01-29 19:21:27 +01:00 |
|
Svipal
|
ccbff39074
|
preparing WIP PR
|
2020-01-29 19:20:25 +01:00 |
|
Svipal
|
a82b27ce6f
|
added deep copy, doesn't change anything , this.orientation in the tile still bugging
|
2020-01-29 19:01:22 +01:00 |
|
Svipal
|
050325bff0
|
tried to pin down where the orientation became undefined, no success.
|
2020-01-29 17:42:39 +01:00 |
|
Svipal
|
95d2ff9996
|
need to compare across commits to understand regression regarding this.x
|
2020-01-27 20:12:53 +01:00 |
|
Svipal
|
946857f756
|
pixel changes
|
2020-01-26 22:51:01 +01:00 |
|
Gauthier Billot
|
78e2027a0c
|
Create tilesets from image collections
|
2020-01-21 22:15:52 +01:00 |
|
Svipal
|
e4857ce48a
|
yoyuee
|
2020-01-19 20:55:09 +01:00 |
|
Svipal
|
fbe3345e54
|
Updated RemoveTileAtWorldXy, PutTileAtWorldXY, GetTilesWithinShape and GetTilesWithinWorldXY
|
2020-01-19 20:50:57 +01:00 |
|
svipal
|
eb90fc2ab4
|
Merge pull request #2 from photonstorm/master
keeping up with master #2
|
2020-01-18 14:21:26 +01:00 |
|
No
|
1a88ff95ba
|
updated dynamic layer and tilemap
|
2020-01-17 16:15:59 +01:00 |
|
No
|
f17aef0abf
|
wordtotileX or Y cannot be called independently either
|
2020-01-17 15:15:15 +01:00 |
|
No
|
ddbcf85194
|
woops
|
2020-01-17 14:49:02 +01:00 |
|
No
|
83bbf08902
|
changed world to tile and tile to world in isometric mode
|
2020-01-17 14:47:33 +01:00 |
|
Richard Davey
|
ff65e69cd1
|
Changed copyright date to 2020
|
2020-01-15 12:07:09 +00:00 |
|
Alex
|
77dc14ee2f
|
Changed tile getTint function to use getTintAppendFloatAlphaAndSwap
|
2019-12-29 21:46:50 -05:00 |
|
samme
|
f1001578c5
|
Bracket notation for type
Phaser.Tilemaps.LayerData#data
|
2019-12-23 12:57:58 -08:00 |
|
samme
|
77ad6c66fe
|
Correct type for Phaser.Tilemaps.LayerData#data
Fixes #4904 ?
|
2019-12-08 15:23:15 -08:00 |
|
Richard Davey
|
467aac2308
|
JSDoc fix
|
2019-11-22 17:46:26 +00:00 |
|
Josh Soref
|
315d43f893
|
spelling: receive
|
2019-10-29 02:33:06 -04:00 |
|
Josh Soref
|
013ece9373
|
spelling: indices
|
2019-10-29 02:22:43 -04:00 |
|