Graphic set preview icons can now be specified

This commit is contained in:
Mal
2023-09-27 22:05:06 +02:00
parent d41f7eaeed
commit feb3f9c844
4 changed files with 17 additions and 6 deletions

View File

@@ -175,7 +175,7 @@ export default class Tilorswift
{
this.tileset = new Tileset(tilesetIndex);
this.level.terrain = new Terrain(this.tileset, tilesX, tilesY, GraphicSet[tilesetIndex].backgroundColor);
this.level.setGravity(GraphicSet[tilesetIndex].gravity);
document.body.style.backgroundColor = this.level.getBackgroundColor();
if (GraphicSet[tilesetIndex].backgroundImage !== null) {