diff --git a/art/final/gemalt/portrait_volk_elf_384.png b/art/final/gemalt/portrait_volk_elf_384.png new file mode 100644 index 0000000..d1da94b Binary files /dev/null and b/art/final/gemalt/portrait_volk_elf_384.png differ diff --git a/art/final/gemalt/portrait_volk_halbling_384.png b/art/final/gemalt/portrait_volk_halbling_384.png new file mode 100644 index 0000000..b08d2f0 Binary files /dev/null and b/art/final/gemalt/portrait_volk_halbling_384.png differ diff --git a/art/final/gemalt/portrait_volk_mensch_384.png b/art/final/gemalt/portrait_volk_mensch_384.png new file mode 100644 index 0000000..b1d088c Binary files /dev/null and b/art/final/gemalt/portrait_volk_mensch_384.png differ diff --git a/art/final/gemalt/portrait_volk_zwerg_384.png b/art/final/gemalt/portrait_volk_zwerg_384.png new file mode 100644 index 0000000..3fb8dac Binary files /dev/null and b/art/final/gemalt/portrait_volk_zwerg_384.png differ diff --git a/art/license-log.csv b/art/license-log.csv index 47e664c..5f64325 100644 --- a/art/license-log.csv +++ b/art/license-log.csv @@ -178,3 +178,7 @@ datum,endpoint_id,request_id,prompt,seed,lizenz 2026-11-17,fal-ai/flux-2/klein/9b,01a1e9a0-9592-7271-a923-12e8d1fe1411,"illustrated fantasy RPG art, late-1980s role-playing game cover-illustration sensibility, flat color shapes with hard edges, limited palette of six to eight hues - muted ochre, dusty slate blue, olive green, warm cream highlights, deep umber shadow, no gradients except two-step blends, strong silhouettes, readable at small size, painterly but economical detail, full body of a massive ogre with mottled grey-green skin, a heavy hunched back, a big belly, long thick arms and a crude wooden club in one hand, side-on three-quarter view, centered, isolated on a flat solid magenta background, complete silhouette with both arms and both legs visible, no cast shadow, no ground plane",271828,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1536x1536, 2.3593 MP, x-fal-billable-units 9.0 = 0.06 USD, 4 Bilder" 2026-11-17,fal-ai/flux-2/klein/9b,01a1e9a0-c51a-70d0-b2f1-7bd6301fabf1,"illustrated fantasy RPG art, late-1980s role-playing game cover-illustration sensibility, flat color shapes with hard edges, limited palette of six to eight hues - muted ochre, dusty slate blue, olive green, warm cream highlights, deep umber shadow, no gradients except two-step blends, strong silhouettes, readable at small size, painterly but economical detail, full body of a young adult dragon with dark olive scales, folded bat-like wings, a long neck, four powerful legs and a long tapering tail, low four-legged stance, side-on three-quarter view, centered, isolated on a flat solid magenta background, complete silhouette with all four legs, both wings and the tail visible, no cast shadow, no ground plane",271828,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 2048x2048, 4.1943 MP, x-fal-billable-units 16.0 = 0.10 USD, 4 Bilder" 2026-11-17,fal-ai/flux-2/klein/9b,01a1e9a1-12f9-7400-90bf-4f9299ff6469,"illustrated fantasy RPG art, late-1980s role-playing game cover-illustration sensibility, flat color shapes with hard edges, limited palette of six to eight hues - muted ochre, dusty slate blue, olive green, warm cream highlights, deep umber shadow, no gradients except two-step blends, strong silhouettes, readable at small size, painterly but economical detail, full body of an ancient dragon with charcoal-black scales, ember-orange eyes, spread wings raised high, a long scarred neck, four heavy legs and a massive spiked tail, side-on three-quarter view, centered, isolated on a flat solid magenta background, complete silhouette with all four legs, both wings and the tail visible, no cast shadow, no ground plane",271828,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 2048x2048, 4.1943 MP, x-fal-billable-units 16.0 = 0.10 USD, 4 Bilder" +2026-11-17,fal-ai/flux-2/klein/9b,01a1e9c8-eade-74c2-b241-2bceed5a6b90,"hand-painted 2D role-playing game character portrait, head and shoulders of a stern man in his thirties with short dark hair, a scar over one eyebrow, wearing a chainmail collar, facing the viewer, calm neutral expression, warm late-morning light from the upper left, limited warm palette of ochre, umber, olive and slate, painterly but readable, crisp edges, plain dark background, no text",7301,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1024x1024, 1.0486 MP, x-fal-billable-units 4.0 = 0.03 USD, 4 Bilder" +2026-11-17,fal-ai/flux-2/klein/9b,01a1e9c9-096e-7c13-99b2-41613a40ecbc,"hand-painted 2D role-playing game character portrait, head and shoulders of a young elf woman with long copper hair and a deep blue hood, facing the viewer, calm neutral expression, warm late-morning light from the upper left, limited warm palette of ochre, umber, olive and slate, painterly but readable, crisp edges, plain dark background, no text",7303,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1024x1024, 1.0486 MP, x-fal-billable-units 4.0 = 0.03 USD, 4 Bilder" +2026-11-17,fal-ai/flux-2/klein/9b,01a1e9c9-27ea-7531-98a5-1f752ec902a3,"hand-painted 2D role-playing game character portrait, head and shoulders of an older grey-haired dwarf with a broad weathered face and a heavy fur collar, facing the viewer, calm neutral expression, warm late-morning light from the upper left, limited warm palette of ochre, umber, olive and slate, painterly but readable, crisp edges, plain dark background, no text",7302,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1024x1024, 1.0486 MP, x-fal-billable-units 4.0 = 0.03 USD, 4 Bilder" +2026-11-17,fal-ai/flux-2/klein/9b,01a1e9c9-4675-73b0-8353-6c4c4c78b89c,"hand-painted 2D role-playing game character portrait, head and shoulders of a cheerful young halfling man with curly brown hair and a leather jerkin, facing the viewer, calm neutral expression, warm late-morning light from the upper left, limited warm palette of ochre, umber, olive and slate, painterly but readable, crisp edges, plain dark background, no text",7304,"FLUX.2 [klein] 9B über fal.ai (BFL Non-Commercial License: Gewichte/Selbsthosting; Outputs nach §2d frei nutzbar, keine IP-Indemnity) - 1024x1024, 1.0486 MP, x-fal-billable-units 4.0 = 0.03 USD, 4 Bilder" diff --git a/art/prep/erstellung/README.md b/art/prep/erstellung/README.md index 78411d1..8e818ee 100644 --- a/art/prep/erstellung/README.md +++ b/art/prep/erstellung/README.md @@ -19,8 +19,10 @@ Fläche — nur `UiTheme` und die sechs vorhandenen Porträts. - Hintergrund: `assets/gemalt/ortsbild_stadt.png`, abgedunkelt. - Flächen: `UiTheme.flaeche()`, Schrift `font16_12_2x.fnt` (32 px). -- Porträts: `assets/players/portrait_*_96px.png`, ganzzahlig 2× bzw. 3× - nearest skaliert (Roster 192, Vorschau 288). +- Vorschau und Roster: gemalte Volk-Porträts + `assets/gemalt/portrait_volk_*_384.png` (linear auf 288 bzw. 192). +- Die sechs kleinen Gesichter sind die HUD-Miniaturen + (`assets/players/portrait_*_96px.png`), 2× nearest. - Roster ist `Game.party`; „Übernehmen" ruft `Game.party_aufnehmen()`. - Der Start geht durch die Erstellung; `--ohne-erstellung` springt direkt in die Stadt, `--figur` öffnet die Maske für Screenshots. @@ -45,7 +47,6 @@ Figur und prüft Name, Volksbonus, Porträt und TP im Datensatz. ## Offen -- Startausrüstung je Klasse (sonst bleibt RK bei 10 + GES). -- Vier Volk-Porträts à 384 px plus vier Klassen-Embleme; die sechs 96er sind - HUD-Miniaturen, keine 4×4-Kombination. +- Klassen-Embleme à 64 px; die vier Volk-Porträts und die Startausrüstung + stehen. Die sechs 96er bleiben HUD-Miniaturen. - Titelschirm davor (Neu/Weiter/Laden). diff --git a/art/prep/erstellung/_figur_1920x1080.png b/art/prep/erstellung/_figur_1920x1080.png index f70b573..8821f2c 100644 Binary files a/art/prep/erstellung/_figur_1920x1080.png and b/art/prep/erstellung/_figur_1920x1080.png differ diff --git a/art/prep/erstellung/_roster_schnellstart_1920x1080.png b/art/prep/erstellung/_roster_schnellstart_1920x1080.png index b9a22e7..6924aa0 100644 Binary files a/art/prep/erstellung/_roster_schnellstart_1920x1080.png and b/art/prep/erstellung/_roster_schnellstart_1920x1080.png differ diff --git a/art/prep/volk-portraits/README.md b/art/prep/volk-portraits/README.md new file mode 100644 index 0000000..bc45ba0 --- /dev/null +++ b/art/prep/volk-portraits/README.md @@ -0,0 +1,59 @@ +# Volk-Porträts — vier gemalte Köpfe in 384 px + +Stand: 17.11.2026 · fal `klein/9b`, 1024², 4 Varianten je Volk. +**16 Rohbilder, 4 gewählt, 0,101 $** (Lizenzzeilen in +[`../../license-log.csv`](../../license-log.csv)). + +**Frage:** Reichen vier Volk-Porträts für die Erstellung, oder braucht es +16 Volk×Klasse-Kombinationen? **Vier reichen** — die Klasse kommt als Emblem +dazu, das Volk trägt das Gesicht. + +## Vorgehen + +Dieselben Prompts und Seeds wie die gemalte Porträt-Reihe vom 15.11.2026 +([`../stadt-gemalt/prompts/`](../stadt-gemalt/prompts/), +`art/license-log.csv` 7301–7304). Gerendert in 1024², danach **Lanczos auf +384²** — gemaltes Register, kein `pixelize`, kein Freisteller (der dunkle +Grund gehört zum Porträt). + +```bash +export FAL_KEY=... +art/prep/volk-portraits/rendern.sh +``` + +| Volk | Prompt | Seed | Datei | +|---|---|---|---| +| Mensch | `portraet_krieger.txt` | 7301 | `portrait_volk_mensch_384.png` | +| Elf | Lizenzlog 7303 | 7303 | `portrait_volk_elf_384.png` | +| Zwerg | Lizenzlog 7302 | 7302 | `portrait_volk_zwerg_384.png` | +| Halbling | `portraet_halbling.txt` | 7304 | `portrait_volk_halbling_384.png` | + +## Auswahl + +[`_kontakt.png`](_kontakt.png) — alle 16 Varianten. Gewählt ist überall +**Variante 1**: + +- Kopf mittig, Schultern im Bild, kein angeschnittenes Kinn, +- Licht von oben links wie die übrige gemalte Reihe, +- dunkler Grund, kein Text, keine fremden Requisiten, +- die vier Gesichter sind unterscheidbar (Mensch mit Narbe und Kettenhemd, + Elf mit Kapuze und spitzen Ohren, Zwerg mit grauem Bart und Pelzkragen, + Halbling mit Locken und Lederwams). + +## Wo sie eingesetzt werden + +- **Figurenmaske:** die große Vorschau (288 px) zeigt das Volk-Porträt und + wechselt mit dem Volk. +- **Roster:** die Karten zeigen dasselbe Porträt bei 192 px. +- **HUD/Partyspalte:** bleibt beim 96er-Pixel-Satz (`portrait_*_96px`); die + sechs kleinen Gesichter in der Maske wählen diese HUD-Fassung. + +Die Trennung ist Absicht: das Volk trägt die Identität (gemalt), die +HUD-Miniatur bleibt pixelig und im 96er-Raster. + +## Offen + +- **Vier Klassen-Embleme** (Kämpfer, Kleriker, Magier, Dieb) à 64 px; dann ist + die Kombination Volk × Klasse vollständig, ohne 16 Porträts. +- Ein zweites Gesicht je Volk wäre möglich, aber erst wenn die Auswahl im Spiel + wirklich gebraucht wird. diff --git a/art/prep/volk-portraits/_kontakt.png b/art/prep/volk-portraits/_kontakt.png new file mode 100644 index 0000000..99b9008 Binary files /dev/null and b/art/prep/volk-portraits/_kontakt.png differ diff --git a/art/prep/volk-portraits/prompt_elf.txt b/art/prep/volk-portraits/prompt_elf.txt new file mode 100644 index 0000000..fc9e2b8 --- /dev/null +++ b/art/prep/volk-portraits/prompt_elf.txt @@ -0,0 +1 @@ +hand-painted 2D role-playing game character portrait, head and shoulders of a young elf woman with long copper hair and a deep blue hood, facing the viewer, calm neutral expression, warm late-morning light from the upper left, limited warm palette of ochre, umber, olive and slate, painterly but readable, crisp edges, plain dark background, no text diff --git a/art/prep/volk-portraits/prompt_halbling.txt b/art/prep/volk-portraits/prompt_halbling.txt new file mode 100644 index 0000000..f490868 --- /dev/null +++ b/art/prep/volk-portraits/prompt_halbling.txt @@ -0,0 +1 @@ +hand-painted 2D role-playing game character portrait, head and shoulders of a cheerful young halfling man with curly brown hair and a leather jerkin, facing the viewer, calm neutral expression, warm late-morning light from the upper left, limited warm palette of ochre, umber, olive and slate, painterly but readable, crisp edges, plain dark background, no text diff --git a/art/prep/volk-portraits/prompt_mensch.txt b/art/prep/volk-portraits/prompt_mensch.txt new file mode 100644 index 0000000..9ae3b10 --- /dev/null +++ b/art/prep/volk-portraits/prompt_mensch.txt @@ -0,0 +1 @@ +hand-painted 2D role-playing game character portrait, head and shoulders of a stern man in his thirties with short dark hair, a scar over one eyebrow, wearing a chainmail collar, facing the viewer, calm neutral expression, warm late-morning light from the upper left, limited warm palette of ochre, umber, olive and slate, painterly but readable, crisp edges, plain dark background, no text diff --git a/art/prep/volk-portraits/prompt_zwerg.txt b/art/prep/volk-portraits/prompt_zwerg.txt new file mode 100644 index 0000000..4f43d04 --- /dev/null +++ b/art/prep/volk-portraits/prompt_zwerg.txt @@ -0,0 +1 @@ +hand-painted 2D role-playing game character portrait, head and shoulders of an older grey-haired dwarf with a broad weathered face and a heavy fur collar, facing the viewer, calm neutral expression, warm late-morning light from the upper left, limited warm palette of ochre, umber, olive and slate, painterly but readable, crisp edges, plain dark background, no text diff --git a/art/prep/volk-portraits/rendern.log b/art/prep/volk-portraits/rendern.log new file mode 100644 index 0000000..0fd5f92 --- /dev/null +++ b/art/prep/volk-portraits/rendern.log @@ -0,0 +1,33 @@ +=== mensch (s7301) === +Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 1.0486 MP × 0.006 $/megapixels × 4 Bilder = 0.0252 $ + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_mensch_s7301_1.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_mensch_s7301_2.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_mensch_s7301_3.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_mensch_s7301_4.png + Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_mensch_s7301_1.json + Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9c8-eade-74c2-b241-2bceed5a6b90) +=== elf (s7303) === +Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 1.0486 MP × 0.006 $/megapixels × 4 Bilder = 0.0252 $ + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_elf_s7303_1.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_elf_s7303_2.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_elf_s7303_3.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_elf_s7303_4.png + Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_elf_s7303_1.json + Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9c9-096e-7c13-99b2-41613a40ecbc) +=== zwerg (s7302) === +Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 1.0486 MP × 0.006 $/megapixels × 4 Bilder = 0.0252 $ + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_zwerg_s7302_1.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_zwerg_s7302_2.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_zwerg_s7302_3.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_zwerg_s7302_4.png + Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_zwerg_s7302_1.json + Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9c9-27ea-7531-98a5-1f752ec902a3) +=== halbling (s7304) === +Modell: FLUX.2 [klein] 9B (fal-ai/flux-2/klein/9b) — 1.0486 MP × 0.006 $/megapixels × 4 Bilder = 0.0252 $ + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_halbling_s7304_1.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_halbling_s7304_2.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_halbling_s7304_3.png + Rohbild: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_halbling_s7304_4.png + Anfrage: /Users/torsten/Dokumente/workbench_taloria/assets/raw/Players/portrait_volk_halbling_s7304_1.json + Lizenzlog: 1 Zeile ergänzt (request_id 01a1e9c9-4675-73b0-8353-6c4c4c78b89c) +=== fertig === diff --git a/art/prep/volk-portraits/rendern.sh b/art/prep/volk-portraits/rendern.sh new file mode 100755 index 0000000..f8d4edd --- /dev/null +++ b/art/prep/volk-portraits/rendern.sh @@ -0,0 +1,28 @@ +#!/usr/bin/env bash +# Vier Volk-Porträts für die Erstellung (1024², danach 384²). +# Gleiche Prompts und Seeds wie die gemalte Porträt-Reihe (15.11.2026). +set -uo pipefail + +HIER="$(cd "$(dirname "$0")" && pwd)" +REPO="$(cd "$HIER/../../.." && pwd)" +PY="$HOME/.venvs/art/bin/python" +LOG="$HIER/rendern.log" + +: > "$LOG" + +lauf() { + local volk="$1" seed="$2" + echo "=== $volk (s$seed) ===" | tee -a "$LOG" + "$PY" "$REPO/art/tools/falgen.py" \ + --endpoint fal-ai/flux-2/klein/9b \ + --prompt-file "$HIER/prompt_$volk.txt" \ + --size 1024x1024 --seed "$seed" --num-images 4 \ + --kategorie Players --name "portrait_volk_${volk}_s${seed}" 2>&1 | tee -a "$LOG" +} + +lauf mensch 7301 +lauf elf 7303 +lauf zwerg 7302 +lauf halbling 7304 + +echo "=== fertig ===" | tee -a "$LOG" diff --git a/docs/charaktererstellung.md b/docs/charaktererstellung.md index 41bea50..9329b27 100644 --- a/docs/charaktererstellung.md +++ b/docs/charaktererstellung.md @@ -1,8 +1,8 @@ # Charaktererstellung — Party, Punktekauf, Roster **Stand: 17.11.2026.** Roster und Figurenmaske sind gebaut und im Spiel der -Einstieg (vor dem Ortsbild). Die Startausrüstung steht; offen ist der große -Porträt-Satz. Regeln: [`systeme.md`](systeme.md) §1–§4. Figuren: +Einstieg (vor dem Ortsbild). Startausrüstung und die vier Volk-Porträts +stehen; offen sind nur die Klassen-Embleme. Regeln: [`systeme.md`](systeme.md) §1–§4. Figuren: `projekt.md` §4. --- @@ -93,7 +93,8 @@ Volk weg vom Menschen, wird die Wahl verworfen. | Erstellungs- und Roster-Szene | `game/scenes/creation/erstellung.tscn` | [x] | | UI-Probe (bauen, Punkte setzen, übernehmen) | `game/tools/probe_erstellung.tscn` | [x] | | Startausrüstung je Klasse | `game/data/classes.json` (`starting_equipment`) | [x] | -| Porträt-Pool (4 Völker à 384 px + 4 Klassen-Embleme) | — | [ ] | +| Volk-Porträts (4 × 384 px, gemalt) | `art/final/gemalt/portrait_volk_*_384.png` | [x] | +| Klassen-Embleme (4 × 64 px) | — | [ ] | ```bash godot --headless --path game -- --check @@ -121,8 +122,10 @@ leer, Roster nach Schnellstart, Figurenmaske. ## Offen -- **Porträts:** Die sechs HUD-Porträts sind Archetypen, nicht 4×4-Kombinationen. - Empfehlung: 4 Volk-Porträts à 384 px plus 4 Klassen-Embleme à 64 px. +- **Klassen-Embleme:** Die vier Volk-Porträts tragen die Identität; Kämpfer, + Kleriker, Magier und Dieb brauchen noch je ein Emblem (64 px), damit die + Kombination Volk × Klasse vollständig lesbar ist. Die sechs 96er bleiben die + HUD-Miniaturen. - **Namensprüfung:** doppelte Namen sind erlaubt (ids sind der Schlüssel). - **Schnellstart:** steht als Knopf im Roster und als `--ohne-erstellung` für den Direktstart; später zusätzlich im Titelschirm. diff --git a/docs/roadmap.md b/docs/roadmap.md index 42b1a09..5a17b91 100644 --- a/docs/roadmap.md +++ b/docs/roadmap.md @@ -543,7 +543,8 @@ Struktur, Datenmodell und Effekt-Vokabel stehen in [`engine.md`](engine.md). (1–6) als Logik (`scripts/systems/charakter.gd`), Prüfung in `--check` und `tools/probe_party.tscn`. Szene: `scenes/creation/erstellung.tscn` (Roster + Figurenmaske, Einstieg vor dem Ortsbild); UI-Probe - `tools/probe_erstellung.tscn`. Offen: Startausrüstung, Porträt-Pool — + `tools/probe_erstellung.tscn`. Startausrüstung steht; die vier Volk-Porträts + (384 px, gemalt) sind in Maske und Roster. Offen: Klassen-Embleme — Entwurf in [`charaktererstellung.md`](charaktererstellung.md). - [ ] **Kartenwechsel** (Overland ↔ Stadt ↔ Dungeon), Inventar-UI. - [x] **Titelschirm** (`scenes/title/titel.tscn`): gemaltes Titelbild, diff --git a/docs/stand.md b/docs/stand.md index 1a6b27a..b36e55e 100644 --- a/docs/stand.md +++ b/docs/stand.md @@ -61,6 +61,8 @@ bespielbar (Ortsbild → Gebiet → zurück). | `game/scenes/world/stadt.gd` | Gebiet: TileMap, Figuren, Dialog, Ausgang; `gedaempft = true` | | `game/scenes/common/kreatur.gd` | Kreatur-Rendering: Klasse → Footprint/Anzeige, Anker, Schatten, TP-Balken, Dither | | `art/prep/kreatur-3x/` | Beleg der 3×-Kreaturen: Auswahl, Rohgrößen, Probe-Screenshot, Kosten | +| `art/prep/volk-portraits/` | Beleg der vier Volk-Porträts (384 px): Auswahl, Seeds, Kontaktbogen | +| `art/final/gemalt/portrait_volk_*_384.png` | gemalte Volk-Porträts für Maske und Roster | | `art/final/Creatures/` | 11 Kreaturen **1:1** in Anzeigegröße (84/108/144/288/384/480) | | `game/scripts/systems/charakter.gd` | Punktekauf, Volksbonus, Ableitung und Prüfung der Erstellung | | `game/scenes/title/titel.*` | Titelschirm: Neu, Weiter, Laden (3 Slots), Beenden | diff --git a/game/assets/gemalt/portrait_volk_elf_384.png b/game/assets/gemalt/portrait_volk_elf_384.png new file mode 100644 index 0000000..d1da94b Binary files /dev/null and b/game/assets/gemalt/portrait_volk_elf_384.png differ diff --git a/game/assets/gemalt/portrait_volk_elf_384.png.import b/game/assets/gemalt/portrait_volk_elf_384.png.import new file mode 100644 index 0000000..8863a94 --- /dev/null +++ b/game/assets/gemalt/portrait_volk_elf_384.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cdxgugs0qkw1f" +path="res://.godot/imported/portrait_volk_elf_384.png-bccfa2ee8d1b555c0c97c938a16a90ff.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/gemalt/portrait_volk_elf_384.png" +dest_files=["res://.godot/imported/portrait_volk_elf_384.png-bccfa2ee8d1b555c0c97c938a16a90ff.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/game/assets/gemalt/portrait_volk_halbling_384.png b/game/assets/gemalt/portrait_volk_halbling_384.png new file mode 100644 index 0000000..b08d2f0 Binary files /dev/null and b/game/assets/gemalt/portrait_volk_halbling_384.png differ diff --git a/game/assets/gemalt/portrait_volk_halbling_384.png.import b/game/assets/gemalt/portrait_volk_halbling_384.png.import new file mode 100644 index 0000000..d6ffef9 --- /dev/null +++ b/game/assets/gemalt/portrait_volk_halbling_384.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://celxj2qx0fk35" +path="res://.godot/imported/portrait_volk_halbling_384.png-88fb97def4c449792b34dd23d73571e1.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/gemalt/portrait_volk_halbling_384.png" +dest_files=["res://.godot/imported/portrait_volk_halbling_384.png-88fb97def4c449792b34dd23d73571e1.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/game/assets/gemalt/portrait_volk_mensch_384.png b/game/assets/gemalt/portrait_volk_mensch_384.png new file mode 100644 index 0000000..b1d088c Binary files /dev/null and b/game/assets/gemalt/portrait_volk_mensch_384.png differ diff --git a/game/assets/gemalt/portrait_volk_mensch_384.png.import b/game/assets/gemalt/portrait_volk_mensch_384.png.import new file mode 100644 index 0000000..44ff81b --- /dev/null +++ b/game/assets/gemalt/portrait_volk_mensch_384.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://dkla6iuhc7qks" +path="res://.godot/imported/portrait_volk_mensch_384.png-09f406614aabd5e37388a7c93370a99c.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/gemalt/portrait_volk_mensch_384.png" +dest_files=["res://.godot/imported/portrait_volk_mensch_384.png-09f406614aabd5e37388a7c93370a99c.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/game/assets/gemalt/portrait_volk_zwerg_384.png b/game/assets/gemalt/portrait_volk_zwerg_384.png new file mode 100644 index 0000000..3fb8dac Binary files /dev/null and b/game/assets/gemalt/portrait_volk_zwerg_384.png differ diff --git a/game/assets/gemalt/portrait_volk_zwerg_384.png.import b/game/assets/gemalt/portrait_volk_zwerg_384.png.import new file mode 100644 index 0000000..31e2f11 --- /dev/null +++ b/game/assets/gemalt/portrait_volk_zwerg_384.png.import @@ -0,0 +1,40 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://b5ugk8isor7at" +path="res://.godot/imported/portrait_volk_zwerg_384.png-574080c2e9b56bf493582f24c718b185.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://assets/gemalt/portrait_volk_zwerg_384.png" +dest_files=["res://.godot/imported/portrait_volk_zwerg_384.png-574080c2e9b56bf493582f24c718b185.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +process/fix_alpha_border=true +process/premult_alpha=false +process/normal_map_invert_y=false +process/hdr_as_srgb=false +process/hdr_clamp_exposure=false +process/size_limit=0 +detect_3d/compress_to=1 diff --git a/game/scenes/creation/erstellung.gd b/game/scenes/creation/erstellung.gd index 3fb3aae..ae4d019 100644 --- a/game/scenes/creation/erstellung.gd +++ b/game/scenes/creation/erstellung.gd @@ -17,6 +17,13 @@ const PORTRAITS := [ "portrait_krieger", "portrait_magierin", "portrait_gelehrter", "portrait_halbling", "portrait_elfin", "portrait_zwerg", ] +## 384er Volk-Porträts (gemalte Reihe, art/final/gemalt/). +const VOLK_PORTRAITS := { + "human": "portrait_volk_mensch_384", + "elf": "portrait_volk_elf_384", + "dwarf": "portrait_volk_zwerg_384", + "halfling": "portrait_volk_halbling_384", +} const ABKUERZUNG := { "str": "STÄ", "dex": "GES", "con": "KON", "int": "INT", "wis": "WEI", "cha": "CHA", @@ -117,13 +124,14 @@ func _karte(figur: Dictionary, pos: Vector2) -> void: var p := _panel(pos, KARTE) var portrait := TextureRect.new() - portrait.texture = load("res://assets/players/%s_96px.png" - % _portrait_von(figur)) portrait.position = Vector2(24, 24) - portrait.size = Vector2(192, 192) - portrait.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST + portrait.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR portrait.expand_mode = TextureRect.EXPAND_IGNORE_SIZE - portrait.stretch_mode = TextureRect.STRETCH_SCALE + portrait.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED + # Textur erst nach Größe/Modus setzen: sonst zieht die 384er-Mindestgröße + # das Control auf 384 und es überlappt den Text. + portrait.texture = _volk_bild(str(figur.get("race", ""))) + portrait.size = Vector2(192, 192) p.add_child(portrait) var schild := Label.new() @@ -223,11 +231,15 @@ func _baue_erstellung() -> void: _vorschau = TextureRect.new() _vorschau.position = Vector2(40, 100) _vorschau.size = Vector2(288, 288) - _vorschau.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST + _vorschau.texture_filter = CanvasItem.TEXTURE_FILTER_LINEAR _vorschau.expand_mode = TextureRect.EXPAND_IGNORE_SIZE - _vorschau.stretch_mode = TextureRect.STRETCH_SCALE + _vorschau.stretch_mode = TextureRect.STRETCH_KEEP_ASPECT_COVERED p.add_child(_vorschau) + var gesicht := _label("Gesicht (HUD)", Vector2(40, 396), p) + gesicht.size = Vector2(288, 32) + gesicht.clip_text = true + var x := 0 for pname in PORTRAITS: var tb := TextureButton.new() @@ -235,7 +247,7 @@ func _baue_erstellung() -> void: tb.ignore_texture_size = true tb.stretch_mode = TextureButton.STRETCH_SCALE tb.texture_filter = CanvasItem.TEXTURE_FILTER_NEAREST - tb.position = Vector2(40 + (x % 3) * 100, 410 + (x / 3) * 100) + tb.position = Vector2(40 + (x % 3) * 100, 436 + (x / 3) * 100) tb.size = Vector2(88, 88) tb.tooltip_text = pname.replace("portrait_", "").capitalize() tb.pressed.connect(_portrait_waehlen.bind(pname)) @@ -417,7 +429,7 @@ func _uebernehmen_druecken() -> void: func _aktualisiere() -> void: if _c == null: return - _vorschau.texture = load("res://assets/players/%s_96px.png" % _c.portrait) + _vorschau.texture = _volk_bild(_c.volk_id) for id in _volk_knoepfe: _volk_knoepfe[id].modulate = Color(1.45, 1.25, 0.95) \ @@ -466,6 +478,11 @@ func _standard_portrait(klasse: String) -> String: return "portrait_elfin" +func _volk_bild(volk_id: String) -> Texture2D: + var id: String = VOLK_PORTRAITS.get(volk_id, "portrait_volk_mensch_384") + return load("res://assets/gemalt/%s.png" % id) + + func _portrait_von(figur: Dictionary) -> String: var p := str(figur.get("portrait", "")) return p if not p.is_empty() else _standard_portrait(str(figur.get("class", "")))