mirror of
https://git.leinelab.org/Mal/mr-crocs-adventures.git
synced 2025-09-11 02:57:36 +02:00
Startpoint widget implemented
This commit is contained in:
@@ -20,6 +20,8 @@ export default class Tilorswift
|
||||
scale: terrain.tileset.scale,
|
||||
rows: terrain.tilesY,
|
||||
columns: terrain.tilesX,
|
||||
startX: terrain.entranceTileX,
|
||||
startY: terrain.entranceTileY,
|
||||
backgroundColor: terrain.backgroundColor,
|
||||
matrix: matrix,
|
||||
};
|
||||
@@ -29,6 +31,11 @@ export default class Tilorswift
|
||||
|
||||
static saveTerrainToFile(terrain)
|
||||
{
|
||||
if (!terrain.hasEntrancePoint()) {
|
||||
alert('Es muss ein Startpunkt definiert sein!');
|
||||
return;
|
||||
}
|
||||
|
||||
let filename = prompt('Dateiname', 'terrain.json');
|
||||
|
||||
if (filename === null) {
|
||||
|
||||
Reference in New Issue
Block a user