Spaces:
Running

4math's picture
Sync from GitHub 964d9e3
950662b verified
Raw History Blame Contribute Delete
2.01 kB
import type { Theme } from "../types.js";
// Sprite paths are "./assets/<theme_lowercase>/<role>.png", relative to the repository root
// (or TILED_ASSETS_DIR). save_to_disk rewrites them relative to the saved .tmj file.
const P = "./assets/spring";
export const SPRING: Theme = {
key: "SPRING",
name: "Spring Meadow",
description:
"Fields in bloom, tender grass, clear streams, budding trees. Open meadows, druid circles, sacred fountains.",
tilesetName: "spring-tileset",
tilewidth: 64,
tileheight: 32,
tiles: [
{ role: "walkable_floor", tileType: "WALKABLE", spriteId: "spring.green_meadow", imageFile: `${P}/walkable_floor.png` },
{ role: "walkable_floor_alt", tileType: "WALKABLE", spriteId: "spring.clover_field", imageFile: `${P}/walkable_floor_alt.png` },
{ role: "wall", tileType: "WALL", spriteId: "spring.living_hedge", imageFile: `${P}/wall.png`, imageWidth: 64, imageHeight: 64 },
{ role: "wall_corner", tileType: "WALL", spriteId: "spring.flowered_arch", imageFile: `${P}/wall_corner.png`, imageWidth: 64, imageHeight: 64 },
{ role: "difficult_terrain", tileType: "DIFFICULT_TERRAIN", spriteId: "spring.muddy_puddle", imageFile: `${P}/difficult_terrain.png` },
{ role: "hazard_primary", tileType: "HAZARD", spriteId: "spring.swollen_stream", imageFile: `${P}/hazard_primary.png`, imageWidth: 64, imageHeight: 64 },
{ role: "obstacle_decor", tileType: "OBSTACLE", spriteId: "spring.maypole", imageFile: `${P}/obstacle_decor.png`, imageWidth: 64, imageHeight: 64 },
{ role: "decoration_minor", tileType: "WALKABLE", spriteId: "spring.wildflower", imageFile: `${P}/decoration_minor.png` },
{ role: "door_closed", tileType: "DOOR", spriteId: "spring.woven_wicker_door", imageFile: `${P}/door_closed.png`, imageWidth: 64, imageHeight: 64 },
{ role: "stairs", tileType: "STAIRS", spriteId: "spring.moss_steps", imageFile: `${P}/stairs.png`, imageWidth: 64, imageHeight: 64 },
],
ambient: { lightColor: "#1a2a1a", fogIntensity: 0.15 },
};