Begehbarkeit stand als Präfixliste in stadt.gd, die Position als Konstante, und das Gespräch schrieb direkt in Widgets. Jetzt: - Die Karte trägt die Begehbarkeit selbst: legend.<zeichen>.boden, start, exits in data/maps/garana.json; _schema.json und validate_data.py prüfen Start auf Boden und Ausgänge als Durchgang. - scripts/core/karte.gd beantwortet Start, Boden, Ausgang und NSC in Rufweite — ohne Knoten, Textur oder Dateinamen. - Game (game_state.gd) hält Position, Belegung und Gespräch und entscheidet den Schritt; platz_geaendert, dialog_geaendert und ausgang_erreicht sind die einzigen Wege zur Szene. stadt.gd zeichnet und sendet Absichten. - Selbstprüfung: neun Punkte für die Regeln ohne Szene (23 statt 12); Probes fragen Game.position statt Szenenfelder. docs/engine.md §6.1 hält die drei Grenzen fest und nennt, was noch offen ist (MapView-Schnitt, Kampf erbt keine Regel aus der Stadt).
160 lines
3.2 KiB
JSON
160 lines
3.2 KiB
JSON
{
|
|
"schema": 1,
|
|
"entries": {
|
|
"garana": {
|
|
"name": "Garana",
|
|
"kind": "town",
|
|
"width": 20,
|
|
"height": 12,
|
|
"legend": {
|
|
".": {"tile": "battle_erde_96px_1", "boden": true},
|
|
",": {"tile": "tile_grasland_96px", "boden": true},
|
|
"#": {"tile": "tile_wand_stein_96px"},
|
|
"d": {"tile": "tile_dach_mitte_96px"},
|
|
"=": {"tile": "battle_stein_96px_1", "boden": true},
|
|
"f": {"tile": "tile_haus_wand_96px"},
|
|
"g": {"tile": "tile_haus_tuer_96px", "boden": true}
|
|
},
|
|
"start": {"x": 10, "y": 8},
|
|
"tiles": [
|
|
"####################",
|
|
"#.ddd...,,....ddd..#",
|
|
"#.ddd...,,....ddd..#",
|
|
"#.fgf...====..fgf..#",
|
|
"#.......====.......#",
|
|
"#..................#",
|
|
"#.ddd...,,....ddd..#",
|
|
"#.ddd...,,....ddd..#",
|
|
"#.fgf...,,....fgf..#",
|
|
"#..................#",
|
|
"#..................#",
|
|
"####################"
|
|
],
|
|
"objects": [
|
|
{
|
|
"id": "objekt_brunnen_96px",
|
|
"x": 9,
|
|
"y": 3
|
|
},
|
|
{
|
|
"id": "objekt_fass_96px",
|
|
"x": 6,
|
|
"y": 5
|
|
},
|
|
{
|
|
"id": "objekt_fass_96px",
|
|
"x": 13,
|
|
"y": 5
|
|
},
|
|
{
|
|
"id": "objekt_tisch_96px",
|
|
"x": 7,
|
|
"y": 4
|
|
},
|
|
{
|
|
"id": "objekt_kiste_96px",
|
|
"x": 12,
|
|
"y": 4
|
|
},
|
|
{
|
|
"id": "objekt_truhe_96px",
|
|
"x": 14,
|
|
"y": 3
|
|
},
|
|
{
|
|
"id": "objekt_fackel_96px",
|
|
"x": 5,
|
|
"y": 3
|
|
},
|
|
{
|
|
"id": "objekt_fackel_96px",
|
|
"x": 15,
|
|
"y": 3
|
|
}
|
|
],
|
|
"npcs": [
|
|
{
|
|
"id": "wache",
|
|
"x": 9,
|
|
"y": 8
|
|
},
|
|
{
|
|
"id": "haendler",
|
|
"x": 6,
|
|
"y": 4
|
|
},
|
|
{
|
|
"id": "dorfbewohnerin",
|
|
"x": 12,
|
|
"y": 6
|
|
}
|
|
],
|
|
"exits": [
|
|
{
|
|
"x": 9,
|
|
"y": 10,
|
|
"to": "ortsbild"
|
|
}
|
|
],
|
|
"hintergrund": "hintergrund_stadt_gemalt",
|
|
"begehbar": [
|
|
[
|
|
3,
|
|
3,
|
|
16,
|
|
10
|
|
]
|
|
],
|
|
"ortsbild": {
|
|
"bild": "ortsbild_stadt",
|
|
"name": "Garana",
|
|
"hotspots": [
|
|
{
|
|
"id": "tor",
|
|
"name": "Stadttor",
|
|
"rect": [
|
|
210,
|
|
580,
|
|
380,
|
|
420
|
|
],
|
|
"ziel": null
|
|
},
|
|
{
|
|
"id": "markt",
|
|
"name": "Marktplatz",
|
|
"rect": [
|
|
600,
|
|
240,
|
|
540,
|
|
330
|
|
],
|
|
"ziel": "garana"
|
|
},
|
|
{
|
|
"id": "taverne",
|
|
"name": "Taverne",
|
|
"rect": [
|
|
1150,
|
|
0,
|
|
640,
|
|
350
|
|
],
|
|
"ziel": null
|
|
},
|
|
{
|
|
"id": "schmiede",
|
|
"name": "Schmiede",
|
|
"rect": [
|
|
1180,
|
|
460,
|
|
540,
|
|
440
|
|
],
|
|
"ziel": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
}
|