mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Tileset dialog for Tilorswift and fix for adding rows.
This commit is contained in:
@@ -2,8 +2,11 @@ export default class Tilorswift
|
||||
{
|
||||
static getTerrainAsJson(terrain)
|
||||
{
|
||||
console.log('Save da shit.');
|
||||
let matrix = [];
|
||||
|
||||
console.log(terrain.fields.length);
|
||||
|
||||
for (let y = 0; y < terrain.fields.length; y++) {
|
||||
let row = [];
|
||||
|
||||
@@ -15,16 +18,13 @@ export default class Tilorswift
|
||||
}
|
||||
|
||||
let data = {
|
||||
tileset: terrain.tileset.image.src,
|
||||
tiles: terrain.tileset.tiles,
|
||||
scale: terrain.tileset.scale,
|
||||
tileset: terrain.tileset.setId,
|
||||
rows: terrain.tilesY,
|
||||
columns: terrain.tilesX,
|
||||
startX: terrain.entranceTileX,
|
||||
startY: terrain.entranceTileY,
|
||||
targetX: terrain.targetTileX,
|
||||
targetY: terrain.targetTileY,
|
||||
backgroundColor: terrain.backgroundColor,
|
||||
matrix: matrix,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user