ui: Neusatz auf 8x10 — Elemente, docs/ui.md, Karten-Mocks
Alle UI-Elemente sind auf den 8x10-Satz umgesetzt und werden mit 2x ausgeliefert (vorher 4x aus der 320x180-Basis). Neue Maße: Dialog 390x71 / 390x107 (47 Zeichen/Zeile), Buttons 64x18, Slots 26, Pack 170x132, Zauberbuch 170x140, Kampfleiste 400x56, Misc 220x130, Ladebalken 240x26. Die alten Elemente und die Szenen-HUDs sind gelöscht. docs/ui.md hält jetzt verbindlich fest: Screens (Karte, Kampf, Inventar) mit Pixelmaßen, Schriftmetriken, Textmengen, Zustände, Palette und die zwei Linien/Alpha-Regeln. Neue Mocks über echten Karten: art/prep/map-mock/ (Stadt mit Dialog, Dungeon, Inventar über abgedunkelter Karte) und der aktualisierte Kampf-Mock (400x56-Leiste, 228x56-Log). Beide bei 1x und 2x. Roadmap: 0.2 Layout/Font/Mocks/Textregeln abgehakt; offen sind 9-Slice, Engine-Export der Schrift und Listen-Zustände. 0.4: systeme.md und ui.md stehen, offen bleibt das Referenzblatt aus 0.1. Der Nachlauf auf 2x ist für die UI erledigt, die übrigen Kategorien folgen.
This commit is contained in:
parent
c0656a96e9
commit
ee2c8b8efd
41 changed files with 639 additions and 317 deletions
|
|
@ -48,9 +48,9 @@ UNITS = [
|
|||
]
|
||||
ACTIVE = 0
|
||||
LOG = (
|
||||
"ORK GREIFT GHUL AN - 7 SCHADEN",
|
||||
"ORK TRIFFT GHUL - 7 TP",
|
||||
"GHUL BEWEGT SICH 4 FELDER",
|
||||
"SKELETT 12/20 TP - SPINNE BEREIT",
|
||||
"SKELETT 12/20 TP - BEREIT",
|
||||
)
|
||||
|
||||
|
||||
|
|
@ -147,17 +147,17 @@ def main() -> int:
|
|||
|
||||
d = ImageDraw.Draw(im)
|
||||
draw_text = lambda x, y, t, c: ui.draw_text(d, x, y, t, c) # noqa: E731
|
||||
draw_text(6, FIELD_H + 6, "ORK IST DRAN", ui.OCHRE)
|
||||
draw_text(6 + 6 * 12, FIELD_H + 6, " - REICHWEITE 3", ui.CREAM)
|
||||
draw_text(6, FIELD_H + 2, "ORK IST DRAN", ui.OCHRE)
|
||||
draw_text(6 + 8 * 12, FIELD_H + 2, " - REICHWEITE 3", ui.CREAM)
|
||||
|
||||
bar = ui.elem_combat()
|
||||
im.alpha_composite(bar, (4, H - 44))
|
||||
lx = 312
|
||||
im.alpha_composite(bar, (4, H - 60))
|
||||
lx = 4 + bar.size[0] + 8
|
||||
lw = W - 4 - lx
|
||||
ui.panel(d, (lx, H - 44, lx + lw - 1, H - 5))
|
||||
draw_text(lx + 5, H - 40, "KAMPF-LOG", ui.OCHRE)
|
||||
ui.panel(d, (lx, H - 60, lx + lw - 1, H - 5))
|
||||
draw_text(lx + 5, H - 56, "KAMPF-LOG", ui.OCHRE)
|
||||
for i, line in enumerate(LOG):
|
||||
draw_text(lx + 5, H - 30 + i * 8, line, ui.CREAM_D)
|
||||
draw_text(lx + 5, H - 42 + i * 12, line, ui.CREAM_D)
|
||||
|
||||
im.save(out_dir / "_mock_battle_640x360.png")
|
||||
im.resize((W * 2, H * 2), Image.NEAREST).save(
|
||||
|
|
|
|||
203
art/tools/map_mock.py
Normal file
203
art/tools/map_mock.py
Normal file
|
|
@ -0,0 +1,203 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Karten-Mock — Draufsicht-Karte mit UI bei 640x360 (2x = 1280x720).
|
||||
|
||||
Zwei Screens: Stadt (Garana) und Dungeon. Die Karte füllt den Bildschirm,
|
||||
Partyspalte und Dialog liegen darüber. Kein Modell, kein pixelize.
|
||||
|
||||
python3 art/tools/map_mock.py [ZIELORDNER] # Default art/prep/map-mock
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
from PIL import Image, ImageDraw
|
||||
|
||||
ART = Path(__file__).resolve().parent.parent
|
||||
sys.path.insert(0, str(ART / "tools"))
|
||||
import ui # noqa: E402
|
||||
|
||||
T = 32
|
||||
W, H = 640, 360
|
||||
COLS, ROWS = 20, 12
|
||||
FINAL = ART / "final"
|
||||
|
||||
|
||||
def load(path: Path) -> Image.Image:
|
||||
return Image.open(path).convert("RGBA").resize((T, T), Image.NEAREST)
|
||||
|
||||
|
||||
erde = load(FINAL / "Terrain/battle_erde_32px.png")
|
||||
stein = load(FINAL / "Terrain/battle_stein_32px.png")
|
||||
gras = load(FINAL / "Terrain/battle_gras_32px.png")
|
||||
wand = load(FINAL / "Terrain/tile_wand_stein_32px.png")
|
||||
dach = load(FINAL / "Terrain/tile_dach_fachwerk_32px.png")
|
||||
PROPS = {n: load(FINAL / f"Objects/objekt_{n}_32px.png") for n in
|
||||
("tuer", "truhe", "fass", "kiste", "tisch", "fackel", "tor", "treppe",
|
||||
"geroell", "brunnen", "bett", "regal", "wagen", "grabstein")}
|
||||
NPC = {}
|
||||
for n in ("dorfbewohner", "dorfbewohnerin", "wache", "haendler", "druide",
|
||||
"bettler"):
|
||||
NPC[n] = Image.open(FINAL / f"NPCs/nsc_{n}_32px.png").convert("RGBA").resize(
|
||||
(32, 40), Image.NEAREST)
|
||||
|
||||
|
||||
def empty(floor) -> list[list[str]]:
|
||||
return [[floor for _ in range(COLS)] for _ in range(ROWS)]
|
||||
|
||||
|
||||
def town() -> list[list[str]]:
|
||||
g = empty(".")
|
||||
for x in range(COLS):
|
||||
g[0][x] = "#"
|
||||
g[ROWS - 1][x] = "#"
|
||||
for y in range(ROWS):
|
||||
g[y][0] = "#"
|
||||
g[y][COLS - 1] = "#"
|
||||
g[ROWS - 1][9] = "."
|
||||
for (x0, y0, x1, y1) in ((4, 1, 7, 4), (12, 1, 17, 4),
|
||||
(4, 8, 7, 10), (12, 8, 17, 10)):
|
||||
for y in range(y0, y1 + 1):
|
||||
for x in range(x0, x1 + 1):
|
||||
g[y][x] = "B"
|
||||
for (x, y) in ((6, 4), (14, 4), (6, 8), (14, 8)):
|
||||
g[y][x] = "D"
|
||||
for y in range(6, 8):
|
||||
for x in range(8, 12):
|
||||
g[y][x] = "g"
|
||||
return g
|
||||
|
||||
|
||||
def dungeon() -> list[list[str]]:
|
||||
g = [["#" for _ in range(COLS)] for _ in range(ROWS)]
|
||||
|
||||
def carve(x0, y0, x1, y1):
|
||||
for y in range(y0, y1 + 1):
|
||||
for x in range(x0, x1 + 1):
|
||||
g[y][x] = "."
|
||||
|
||||
carve(1, 1, 6, 4)
|
||||
carve(12, 6, 18, 10)
|
||||
carve(7, 3, 11, 3)
|
||||
carve(11, 4, 11, 8)
|
||||
return g
|
||||
|
||||
|
||||
TILES = {"#": wand, "B": dach, "D": dach, ".": erde, "g": gras}
|
||||
DTILES = {"#": wand, ".": stein}
|
||||
|
||||
|
||||
def render(grid, tiles, buildings=(), walls=True) -> Image.Image:
|
||||
im = Image.new("RGBA", (COLS * T, ROWS * T))
|
||||
for y in range(ROWS):
|
||||
for x in range(COLS):
|
||||
im.paste(tiles[grid[y][x]], (x * T, y * T))
|
||||
d = ImageDraw.Draw(im)
|
||||
if walls:
|
||||
for y in range(ROWS):
|
||||
for x in range(COLS):
|
||||
if grid[y][x] in "#B":
|
||||
if y + 1 < ROWS and grid[y + 1][x] not in "#B":
|
||||
d.rectangle((x * T, (y + 1) * T, x * T + T - 1,
|
||||
(y + 1) * T + 1), fill=(0, 0, 0, 80))
|
||||
if x + 1 < COLS and grid[y][x + 1] not in "#B":
|
||||
d.rectangle(((x + 1) * T, y * T, (x + 1) * T + 1,
|
||||
y * T + T - 1), fill=(0, 0, 0, 55))
|
||||
for (x0, y0, x1, y1) in buildings:
|
||||
px0, py0, px1, py1 = x0 * T, y0 * T, (x1 + 1) * T, (y1 + 1) * T
|
||||
d.rectangle((px0, py0, px1 - 1, py1 - 1), outline=(0, 0, 0, 110))
|
||||
d.rectangle((px0 + 1, py0 + 1, px1 - 2, py1 - 2),
|
||||
outline=(210, 190, 150, 90))
|
||||
cy = (py0 + py1) // 2
|
||||
d.rectangle((px0 + 3, cy - 1, px1 - 4, cy), fill=(226, 209, 176, 120))
|
||||
d.rectangle((px0 + 3, cy - 2, px1 - 4, cy - 2), fill=(0, 0, 0, 70))
|
||||
return im
|
||||
|
||||
|
||||
def place(im, spr, x, y, npc=False):
|
||||
im.alpha_composite(spr, (x * T, y * T + (T - 40 if npc else 0)))
|
||||
|
||||
|
||||
def screen_town() -> Image.Image:
|
||||
grid = town()
|
||||
im = render(grid, TILES,
|
||||
buildings=((4, 1, 7, 4), (12, 1, 17, 4), (4, 8, 7, 10),
|
||||
(12, 8, 17, 10)))
|
||||
for name, x, y in (("brunnen", 2, 6), ("wagen", 7, 5), ("tisch", 9, 6),
|
||||
("fass", 3, 5), ("kiste", 4, 5), ("fass", 18, 5),
|
||||
("grabstein", 18, 2), ("tor", 9, 11),
|
||||
("tuer", 6, 4), ("tuer", 14, 4), ("tuer", 6, 8),
|
||||
("tuer", 14, 8)):
|
||||
im.alpha_composite(PROPS[name], (x * T, y * T))
|
||||
for name, x, y in (("dorfbewohner", 2, 2), ("dorfbewohnerin", 9, 5),
|
||||
("wache", 10, 10), ("haendler", 14, 5),
|
||||
("druide", 2, 9), ("bettler", 11, 9)):
|
||||
place(im, NPC[name], x, y, npc=True)
|
||||
return im
|
||||
|
||||
|
||||
def screen_dungeon() -> Image.Image:
|
||||
im = render(dungeon(), DTILES)
|
||||
for name, x, y in (("truhe", 2, 2), ("truhe", 16, 7), ("treppe", 15, 8),
|
||||
("geroell", 11, 6), ("bett", 13, 9), ("regal", 17, 6),
|
||||
("fackel", 0, 2), ("fackel", 19, 2), ("fackel", 8, 2),
|
||||
("fackel", 19, 8), ("fackel", 11, 4)):
|
||||
im.alpha_composite(PROPS[name], (x * T, y * T))
|
||||
return im
|
||||
|
||||
|
||||
def frame(map_im: Image.Image, name: str, lines: list[str]) -> Image.Image:
|
||||
base = Image.new("RGBA", (W, H), ui.alpha(ui.INK))
|
||||
base.alpha_composite(map_im.crop((0, 0, W, H)), (0, 0))
|
||||
|
||||
party = ui.elem_party(ui.party_portraits())
|
||||
base.alpha_composite(party, (W - party.size[0] - 4, 8))
|
||||
|
||||
d = ImageDraw.Draw(base)
|
||||
d.rectangle((8, 8, 55, 25), fill=ui.alpha(ui.PANEL, 232))
|
||||
d.rectangle((8, 8, 55, 25), outline=ui.LINE)
|
||||
ui.draw_text(d, 15, 12, "MENU", ui.CREAM)
|
||||
|
||||
base.alpha_composite(ui.elem_dialog(lines, name, 66), (8, H - 79))
|
||||
return base
|
||||
|
||||
|
||||
def screen_inventory() -> Image.Image:
|
||||
base = Image.new("RGBA", (W, H), ui.alpha(ui.INK))
|
||||
base.alpha_composite(screen_town().crop((0, 0, W, H)), (0, 0))
|
||||
dim = Image.new("RGBA", (W, H), (0, 0, 0, 120))
|
||||
base.alpha_composite(dim, (0, 0))
|
||||
pack = ui.elem_pack()
|
||||
base.alpha_composite(pack, ((W - pack.width) // 2, 70))
|
||||
slots = ui.elem_slots()
|
||||
base.alpha_composite(slots, ((W - slots.width) // 2, 216))
|
||||
party = ui.elem_party(ui.party_portraits())
|
||||
base.alpha_composite(party, (W - party.size[0] - 4, 8))
|
||||
d = ImageDraw.Draw(base)
|
||||
d.rectangle((8, 8, 55, 25), fill=ui.alpha(ui.PANEL, 232))
|
||||
d.rectangle((8, 8, 55, 25), outline=ui.LINE)
|
||||
ui.draw_text(d, 15, 12, "MENU", ui.CREAM)
|
||||
return base
|
||||
|
||||
|
||||
def main() -> int:
|
||||
out = Path(sys.argv[1]) if len(sys.argv) > 1 else ART / "prep" / "map-mock"
|
||||
out.mkdir(parents=True, exist_ok=True)
|
||||
screens = {
|
||||
"_mock_stadt": frame(screen_town(), "WACHE",
|
||||
["Valyria zahlt in Ferrum, nicht in Gold.",
|
||||
"Was wollt Ihr in Garana?"]),
|
||||
"_mock_dungeon": frame(screen_dungeon(), "ERZAEHLER",
|
||||
["Die Luft riecht nach nassem Stein.",
|
||||
"Seit Jahren war hier niemand."]),
|
||||
"_mock_inventar": screen_inventory(),
|
||||
}
|
||||
for name, im in screens.items():
|
||||
im.save(out / f"{name}_640x360.png")
|
||||
im.resize((W * 2, H * 2), Image.NEAREST).save(out / f"{name}_1280x720.png")
|
||||
print(f"{out}/_mock_stadt_1280x720.png, _mock_dungeon_1280x720.png")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
298
art/tools/ui.py
298
art/tools/ui.py
|
|
@ -1,18 +1,18 @@
|
|||
#!/usr/bin/env python3
|
||||
"""UI-Generator für Taloria — prozedural gezeichnet, 1x = 320x180-Maßstab.
|
||||
"""UI-Generator für Taloria — prozedural gezeichnet, 1x = 640x360-Maßstab.
|
||||
|
||||
UI ist Linienarbeit: 1-px-Bevel, 2-px-Rahmen, harte Kanten. Ein
|
||||
Diffusionsmodell liefert dort Farbverläufe und ausgefranste Kanten, die beim
|
||||
Herunterrechnen wegbrechen. Deshalb wird hier gezeichnet, nicht generiert,
|
||||
und zwar direkt bei 1x; ausgeliefert wird mit nearest 4x.
|
||||
und zwar direkt bei 1x; ausgeliefert wird mit nearest 2x (1280x720).
|
||||
|
||||
python3 tools/ui.py # -> final/UI/, 4x (1280x720)
|
||||
python3 tools/ui.py # -> final/UI/, 2x (1280x720)
|
||||
python3 tools/ui.py --scale 1 # -> Basisgrößen, 1x
|
||||
python3 tools/ui.py --out /tmp/ui # woanders hin
|
||||
|
||||
Die Dateinamen tragen die **Basisgröße** (z. B. ui_dialog_292x59.png =
|
||||
292x59 bei 1x, 1168x236 in der Datei) — dieselbe Regel wie
|
||||
monster_wolf_96px.png in final/Creatures/.
|
||||
Schrift: 8x10 aus `font8.py` (Vorschub 8, Zeile 12). Die Dateinamen tragen
|
||||
die **Basisgröße** (z. B. ui_dialog_390x66.png = 390x66 bei 1x, 780x132 in
|
||||
der Datei) — dieselbe Regel wie monster_wolf_96px.png.
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
@ -21,10 +21,10 @@ from pathlib import Path
|
|||
|
||||
from PIL import Image, ImageDraw
|
||||
|
||||
import font8 # noqa: E402 (gleicher Ordner)
|
||||
|
||||
ART = Path(__file__).resolve().parent.parent
|
||||
FINAL = ART / "final"
|
||||
SCENE_B = FINAL / "Pictures" / "taverne_B_1280x720.png"
|
||||
SCENE_A = FINAL / "Pictures" / "taverne_A_1280x720.png"
|
||||
SWORD = FINAL / "Objects" / "objekt_schwert_32px.png"
|
||||
|
||||
# ---------------------------------------------------------------- Palette (16)
|
||||
|
|
@ -47,56 +47,6 @@ BLOOD = (150, 58, 46, 255)
|
|||
PALETTE = [INK, PANEL, PANEL_HI, PANEL_LO, LINE, CREAM, CREAM_D, OCHRE,
|
||||
OCHRE_D, GOLD, SLATE, SLATE_D, OLIVE, OLIVE_D, BLOOD]
|
||||
|
||||
# -------------------------------------------------------------- Font 5x7
|
||||
FONT = {
|
||||
"A": ".###.|#...#|#...#|#####|#...#|#...#|#...#",
|
||||
"B": "####.|#...#|#...#|####.|#...#|#...#|####.",
|
||||
"C": ".####|#....|#....|#....|#....|#....|.####",
|
||||
"D": "####.|#...#|#...#|#...#|#...#|#...#|####.",
|
||||
"E": "#####|#....|#....|####.|#....|#....|#####",
|
||||
"F": "#####|#....|#....|####.|#....|#....|#....",
|
||||
"G": ".####|#....|#....|#..##|#...#|#...#|.###.",
|
||||
"H": "#...#|#...#|#...#|#####|#...#|#...#|#...#",
|
||||
"I": "#####|..#..|..#..|..#..|..#..|..#..|#####",
|
||||
"J": "..###|...#.|...#.|...#.|...#.|#..#.|.##..",
|
||||
"K": "#...#|#..#.|#.#..|##...|#.#..|#..#.|#...#",
|
||||
"L": "#....|#....|#....|#....|#....|#....|#####",
|
||||
"M": "#...#|##.##|#.#.#|#.#.#|#...#|#...#|#...#",
|
||||
"N": "#...#|##..#|#.#.#|#.#.#|#..##|#...#|#...#",
|
||||
"O": ".###.|#...#|#...#|#...#|#...#|#...#|.###.",
|
||||
"P": "####.|#...#|#...#|####.|#....|#....|#....",
|
||||
"Q": ".###.|#...#|#...#|#...#|#.#.#|#..#.|.##.#",
|
||||
"R": "####.|#...#|#...#|####.|#.#..|#..#.|#...#",
|
||||
"S": ".####|#....|#....|.###.|....#|....#|####.",
|
||||
"T": "#####|..#..|..#..|..#..|..#..|..#..|..#..",
|
||||
"U": "#...#|#...#|#...#|#...#|#...#|#...#|.###.",
|
||||
"V": "#...#|#...#|#...#|#...#|#...#|.#.#.|..#..",
|
||||
"W": "#...#|#...#|#...#|#.#.#|#.#.#|##.##|#...#",
|
||||
"X": "#...#|#...#|.#.#.|..#..|.#.#.|#...#|#...#",
|
||||
"Y": "#...#|#...#|.#.#.|..#..|..#..|..#..|..#..",
|
||||
"Z": "#####|....#|...#.|..#..|.#...|#....|#####",
|
||||
"0": ".###.|#...#|#..##|#.#.#|##..#|#...#|.###.",
|
||||
"1": "..#..|.##..|..#..|..#..|..#..|..#..|.###.",
|
||||
"2": ".###.|#...#|....#|...#.|..#..|.#...|#####",
|
||||
"3": "####.|....#|....#|.###.|....#|....#|####.",
|
||||
"4": "...#.|..##.|.#.#.|#..#.|#####|...#.|...#.",
|
||||
"5": "#####|#....|####.|....#|....#|#...#|.###.",
|
||||
"6": "..##.|.#...|#....|####.|#...#|#...#|.###.",
|
||||
"7": "#####|....#|...#.|..#..|.#...|.#...|.#...",
|
||||
"8": ".###.|#...#|#...#|.###.|#...#|#...#|.###.",
|
||||
"9": ".###.|#...#|#...#|.####|....#|...#.|.##..",
|
||||
".": ".....|.....|.....|.....|.....|.##..|.##..",
|
||||
",": ".....|.....|.....|.....|.##..|.##..|.#...",
|
||||
"/": "....#|....#|...#.|..#..|.#...|#....|#....",
|
||||
":": ".....|.##..|.##..|.....|.##..|.##..|.....",
|
||||
"-": ".....|.....|.....|#####|.....|.....|.....",
|
||||
"!": "..#..|..#..|..#..|..#..|..#..|.....|..#..",
|
||||
"?": ".###.|#...#|....#|...#.|..#..|.....|..#..",
|
||||
"+": ".....|..#..|..#..|#####|..#..|..#..|.....",
|
||||
"'": "..#..|..#..|.....|.....|.....|.....|.....",
|
||||
}
|
||||
|
||||
|
||||
def alpha(c, a: int = 255):
|
||||
return (c[0], c[1], c[2], a)
|
||||
|
||||
|
|
@ -112,20 +62,12 @@ def lighter(c, f: float = 1.12):
|
|||
# ---------------------------------------------------------------- Schrift ----
|
||||
def draw_text(d: ImageDraw.ImageDraw, x: int, y: int, text: str,
|
||||
color=CREAM) -> int:
|
||||
"""5x7-Pixelfont, 1 px Laufweite → 6 px Vorschub."""
|
||||
for ch in text.upper():
|
||||
glyph = FONT.get(ch)
|
||||
if glyph:
|
||||
for row, bits in enumerate(glyph.split("|")):
|
||||
for col, bit in enumerate(bits):
|
||||
if bit == "#":
|
||||
d.point((x + col, y + row), fill=color)
|
||||
x += 6
|
||||
return x
|
||||
"""8x10-Pixelfont aus font8.py, Vorschub 8, Zeile 12."""
|
||||
return font8.draw_text(d, x, y, text, color)
|
||||
|
||||
|
||||
def text_width(text: str) -> int:
|
||||
return max(0, len(text) * 6 - 1)
|
||||
return font8.text_width(text)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------- Bausteine --
|
||||
|
|
@ -168,12 +110,16 @@ def title_bar(d, box, label):
|
|||
x0, y0, x1, y1 = box
|
||||
d.rectangle((x0, y0, x1, y1), fill=OCHRE_D)
|
||||
d.line((x0, y1, x1, y1), fill=INK)
|
||||
draw_text(d, x0 + 5, y0 + 3, label, CREAM)
|
||||
draw_text(d, x0 + 5, y0 + 4, label, CREAM)
|
||||
|
||||
|
||||
# ------------------------------------------------------------------ Elemente
|
||||
def elem_dialog(lines, name, height, w=292) -> Image.Image:
|
||||
"""Textbox mit Namensschild; height = Panelhöhe bei 1x, w = Breite bei 1x."""
|
||||
def elem_dialog(lines, name, height, w=390) -> Image.Image:
|
||||
"""Textbox mit Namensschild; height = Panelhöhe bei 1x, w = Breite bei 1x.
|
||||
|
||||
Achtung: `height` ist die Panelhöhe ohne das Namensschild (5 px Überstand
|
||||
oben). Drei Zeilen brauchen 66, sechs Zeilen 102.
|
||||
"""
|
||||
im = Image.new("RGBA", (w, height + 5), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
|
||||
|
|
@ -182,14 +128,14 @@ def elem_dialog(lines, name, height, w=292) -> Image.Image:
|
|||
d.rectangle((1, 6, w - 2, height + 3), outline=LINE)
|
||||
d.line((2, 6, w - 3, 6), fill=PANEL_LO)
|
||||
|
||||
tw = text_width(name) + 10
|
||||
d.rectangle((6, 0, 6 + tw, 13), fill=OCHRE_D)
|
||||
d.rectangle((6, 0, 6 + tw, 13), outline=INK)
|
||||
tw = text_width(name) + 12
|
||||
d.rectangle((6, 0, 6 + tw, 17), fill=OCHRE_D)
|
||||
d.rectangle((6, 0, 6 + tw, 17), outline=INK)
|
||||
d.line((7, 1, 5 + tw, 1), fill=OCHRE)
|
||||
draw_text(d, 11, 3, name, CREAM)
|
||||
draw_text(d, 11, 4, name, CREAM)
|
||||
|
||||
for i, line in enumerate(lines):
|
||||
draw_text(d, 11, 21 + i * 10, line,
|
||||
draw_text(d, 11, 24 + i * 12, line,
|
||||
CREAM if i < len(lines) - 1 else CREAM_D)
|
||||
|
||||
ax, ay = w - 13, height + 1
|
||||
|
|
@ -200,7 +146,7 @@ def elem_dialog(lines, name, height, w=292) -> Image.Image:
|
|||
|
||||
def elem_buttons() -> Image.Image:
|
||||
labels = ["ATTACK", "TALK", "USE", "FLEE"]
|
||||
bw, bh, gap = 52, 14, 4
|
||||
bw, bh, gap = 64, 18, 6
|
||||
im = Image.new("RGBA", (bw, (bh + gap) * 4 + 4), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
for i, (label, state) in enumerate(zip(labels, ["idle", "hover",
|
||||
|
|
@ -224,29 +170,29 @@ def elem_buttons() -> Image.Image:
|
|||
|
||||
|
||||
def icon_sword() -> Image.Image:
|
||||
return Image.open(SWORD).convert("RGBA").resize((18, 18), Image.NEAREST)
|
||||
return Image.open(SWORD).convert("RGBA").resize((20, 20), Image.NEAREST)
|
||||
|
||||
|
||||
def icon_herb() -> Image.Image:
|
||||
im = Image.new("RGBA", (18, 18), (0, 0, 0, 0))
|
||||
im = Image.new("RGBA", (20, 20), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
d.polygon([(9, 1), (12, 7), (9, 16), (6, 7)], fill=OLIVE)
|
||||
d.line((9, 3, 9, 14), fill=OLIVE_D)
|
||||
d.line((7, 8, 4, 12), fill=OLIVE_D)
|
||||
d.line((11, 8, 14, 12), fill=OLIVE_D)
|
||||
d.polygon([(10, 1), (13, 8), (10, 18), (7, 8)], fill=OLIVE)
|
||||
d.line((10, 3, 10, 16), fill=OLIVE_D)
|
||||
d.line((8, 9, 4, 13), fill=OLIVE_D)
|
||||
d.line((12, 9, 16, 13), fill=OLIVE_D)
|
||||
return im
|
||||
|
||||
|
||||
def icon_coin() -> Image.Image:
|
||||
im = Image.new("RGBA", (18, 18), (0, 0, 0, 0))
|
||||
im = Image.new("RGBA", (20, 20), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
d.ellipse((3, 5, 14, 16), fill=OCHRE)
|
||||
d.ellipse((4, 6, 13, 15), outline=GOLD)
|
||||
d.ellipse((3, 6, 16, 18), fill=OCHRE)
|
||||
d.ellipse((4, 7, 15, 17), outline=GOLD)
|
||||
return im
|
||||
|
||||
|
||||
def elem_slots() -> Image.Image:
|
||||
s, gap = 22, 3
|
||||
s, gap = 26, 4
|
||||
im = Image.new("RGBA", (s * 6 + gap * 5, s + 6), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
for i, sprite in enumerate([None, icon_sword(), icon_herb(), None,
|
||||
|
|
@ -254,16 +200,16 @@ def elem_slots() -> Image.Image:
|
|||
x = i * (s + gap)
|
||||
well(d, (x, 3, x + s - 1, 3 + s - 1))
|
||||
if sprite is not None:
|
||||
im.alpha_composite(sprite, (x + 2, 5))
|
||||
im.alpha_composite(sprite, (x + 3, 6))
|
||||
if i == 4: # Auswahl: 2-px-Rahmen + Stapelzahl
|
||||
d.rectangle((x, 3, x + s - 1, 3 + s - 1), outline=GOLD)
|
||||
d.rectangle((x + 1, 4, x + s - 2, 2 + s), outline=GOLD)
|
||||
d.rectangle((x + 7, 13, x + s - 2, 3 + s - 2), fill=INK)
|
||||
draw_text(d, x + 8, 15, "12", GOLD)
|
||||
d.rectangle((x + 8, 16, x + 24, 27), fill=INK)
|
||||
draw_text(d, x + 9, 17, "12", GOLD)
|
||||
if i == 5: # gesperrt: Schraffur, auf die Slot-Fläche beschnitten
|
||||
hatch = Image.new("RGBA", (s, s), (0, 0, 0, 0))
|
||||
hd2 = ImageDraw.Draw(hatch)
|
||||
for k in range(-s, s, 5):
|
||||
for k in range(-s, s, 6):
|
||||
hd2.line((k, s - 1, k + s - 1, 0), fill=(54, 46, 38, 255))
|
||||
im.alpha_composite(hatch, (x, 3))
|
||||
d.line((x, 3, x + s - 1, 3), fill=INK)
|
||||
|
|
@ -274,27 +220,27 @@ def elem_slots() -> Image.Image:
|
|||
|
||||
|
||||
def elem_pack() -> Image.Image:
|
||||
w, h = 148, 112
|
||||
w, h = 170, 132
|
||||
im = Image.new("RGBA", (w, h), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
panel(d, (0, 0, w - 1, h - 1), line=INK)
|
||||
d.rectangle((1, 1, w - 2, h - 2), outline=LINE)
|
||||
title_bar(d, (2, 2, w - 3, 14), "PACK")
|
||||
title_bar(d, (2, 2, w - 3, 18), "PACK")
|
||||
|
||||
d.rectangle((w - 15, 4, w - 5, 12), fill=PANEL_LO)
|
||||
d.rectangle((w - 15, 4, w - 5, 12), outline=LINE)
|
||||
d.line((w - 12, 6, w - 8, 10), fill=CREAM_D)
|
||||
d.line((w - 8, 6, w - 12, 10), fill=CREAM_D)
|
||||
d.rectangle((w - 17, 5, w - 5, 15), fill=PANEL_LO)
|
||||
d.rectangle((w - 17, 5, w - 5, 15), outline=LINE)
|
||||
d.line((w - 13, 7, w - 9, 11), fill=CREAM_D)
|
||||
d.line((w - 9, 7, w - 13, 11), fill=CREAM_D)
|
||||
|
||||
s, gap, ox, oy = 22, 4, 6, 19
|
||||
s, gap, ox, oy = 26, 4, 8, 24
|
||||
for row in range(3):
|
||||
for col in range(5):
|
||||
x = ox + col * (s + gap)
|
||||
y = oy + row * (s + gap)
|
||||
well(d, (x, y, x + s - 1, y + s - 1))
|
||||
|
||||
draw_text(d, 7, h - 11, "LOAD 42/60", CREAM_D)
|
||||
draw_text(d, w - 7 - text_width("128 GOLD"), h - 11, "128 GOLD", GOLD)
|
||||
draw_text(d, 8, h - 14, "LOAD 42/60", CREAM_D)
|
||||
draw_text(d, w - 8 - text_width("128 GOLD"), h - 14, "128 GOLD", GOLD)
|
||||
return im
|
||||
|
||||
|
||||
|
|
@ -333,39 +279,39 @@ def rune(kind: str) -> Image.Image:
|
|||
|
||||
|
||||
def elem_spells() -> Image.Image:
|
||||
w, h = 148, 116
|
||||
w, h = 170, 140
|
||||
im = Image.new("RGBA", (w, h), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
panel(d, (0, 0, w - 1, h - 1), line=INK)
|
||||
d.rectangle((1, 1, w - 2, h - 2), outline=LINE)
|
||||
title_bar(d, (2, 2, w - 3, 14), "SPELLBOOK")
|
||||
title_bar(d, (2, 2, w - 3, 18), "SPELLBOOK")
|
||||
|
||||
# Schulen-Tabs, der erste aktiv
|
||||
for i, (label, active) in enumerate([("ARCANE", True), ("DIVINE", False)]):
|
||||
x = 6 + i * 46
|
||||
panel(d, (x, 17, x + 43, 29), fill=OCHRE_D if active else PANEL_LO,
|
||||
x = 6 + i * 62
|
||||
panel(d, (x, 22, x + 57, 38), fill=OCHRE_D if active else PANEL_LO,
|
||||
line=GOLD if active else LINE, bevel=not active)
|
||||
draw_text(d, x + 5, 21, label, CREAM if active else CREAM_D)
|
||||
draw_text(d, x + 5, 26, label, CREAM if active else CREAM_D)
|
||||
|
||||
spells = [("fire", 3), ("ice", 2), ("bolt", 2), ("ward", 1), ("eye", 4),
|
||||
("leaf", 1), ("star", 3), (None, 0), (None, 0), (None, 0),
|
||||
(None, 0), (None, 0), (None, 0), (None, 0), (None, 0)]
|
||||
s, gap, ox, oy = 20, 4, 16, 33
|
||||
s, gap, ox, oy = 20, 4, 16, 44
|
||||
for idx, (kind, cost) in enumerate(spells):
|
||||
col, row = idx % 5, idx // 5
|
||||
x = ox + col * (s + gap)
|
||||
y = oy + row * (s + gap)
|
||||
well(d, (x, y, x + s - 1, y + s - 1))
|
||||
if kind:
|
||||
im.alpha_composite(rune(kind), (x + 3, y + 2))
|
||||
d.rectangle((x + s - 8, y + s - 8, x + s - 2, y + s - 2), fill=INK)
|
||||
draw_text(d, x + s - 7, y + s - 7, str(cost), GOLD)
|
||||
im.alpha_composite(rune(kind), (x + 3, y + 3))
|
||||
d.rectangle((x + 11, y + 10, x + 19, y + 19), fill=INK)
|
||||
draw_text(d, x + 12, y + 10, str(cost), GOLD)
|
||||
if idx == 0: # gewählter Zauber
|
||||
d.rectangle((x, y, x + s - 1, y + s - 1), outline=GOLD)
|
||||
d.rectangle((x + 1, y + 1, x + s - 2, y + s - 2), outline=GOLD)
|
||||
|
||||
draw_text(d, 7, h - 11, "MEM 3/6 SLOTS", CREAM_D)
|
||||
draw_text(d, w - 7 - text_width("LVL 4"), h - 11, "LVL 4", GOLD)
|
||||
draw_text(d, 8, h - 14, "MEM 3/6 SLOTS", CREAM_D)
|
||||
draw_text(d, w - 8 - text_width("LVL 4"), h - 14, "LVL 4", GOLD)
|
||||
return im
|
||||
|
||||
|
||||
|
|
@ -438,30 +384,31 @@ def bust(d, x, y, hood, trim, skin):
|
|||
|
||||
|
||||
def elem_misc() -> Image.Image:
|
||||
im = Image.new("RGBA", (170, 104), (0, 0, 0, 0))
|
||||
im = Image.new("RGBA", (220, 130), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
bar(d, 0, 0, 52, 10, "HP", 24, 30, BLOOD)
|
||||
bar(d, 0, 12, 52, 10, "SP", 11, 20, OLIVE)
|
||||
bar(d, 0, 24, 52, 10, "MP", 3, 15, SLATE)
|
||||
bar(d, 0, 0, 120, 12, "HP", 24, 30, BLOOD)
|
||||
bar(d, 0, 16, 120, 12, "SP", 11, 20, OLIVE)
|
||||
bar(d, 0, 32, 120, 12, "MP", 3, 15, SLATE)
|
||||
|
||||
for i, on in enumerate([False, True]):
|
||||
x = 112 + i * 16
|
||||
well(d, (x, 2, x + 11, 13))
|
||||
x = 188 + i * 18
|
||||
well(d, (x, 2, x + 13, 15))
|
||||
if on:
|
||||
d.line((x + 2, 7, x + 4, 10), fill=GOLD)
|
||||
d.line((x + 4, 10, x + 9, 4), fill=GOLD)
|
||||
d.line((x + 3, 8, x + 6, 12), fill=GOLD)
|
||||
d.line((x + 6, 12, x + 10, 4), fill=GOLD)
|
||||
|
||||
sx, sy = 0, 57
|
||||
draw_text(d, sx, 46, "VOLUME", CREAM_D)
|
||||
well(d, (sx, sy, sx + 64, sy + 5))
|
||||
d.rectangle((sx + 1, sy + 1, sx + 34, sy + 4), fill=OCHRE_D)
|
||||
panel(d, (sx + 31, sy - 4, sx + 39, sy + 8), bevel=False)
|
||||
sx, sy = 0, 70
|
||||
draw_text(d, sx, 52, "VOLUME", CREAM_D)
|
||||
well(d, (sx, sy, sx + 100, sy + 7))
|
||||
d.rectangle((sx + 2, sy + 2, sx + 54, sy + 5), fill=OCHRE_D)
|
||||
panel(d, (sx + 51, sy - 4, sx + 59, sy + 11), bevel=False)
|
||||
|
||||
panel(d, (88, 40, 168, 65), fill=alpha((30, 25, 21, 255), 246), line=INK)
|
||||
draw_text(d, 93, 44, "RUSTY SWORD", CREAM)
|
||||
draw_text(d, 93, 54, "1D6+1 SLASH", CREAM_D)
|
||||
panel(d, (110, 50, 218, 86), fill=alpha((30, 25, 21, 255), 246), line=INK)
|
||||
draw_text(d, 116, 54, "RUSTY SWORD", CREAM)
|
||||
draw_text(d, 116, 66, "1D6+1 SLASH", CREAM_D)
|
||||
draw_text(d, 116, 78, "10 GOLD", GOLD)
|
||||
|
||||
cx, cy = 112, 76
|
||||
cx, cy = 180, 98
|
||||
d.polygon([(cx, cy), (cx + 11, cy + 4), (cx + 5, cy + 6),
|
||||
(cx + 8, cy + 12), (cx + 5, cy + 13), (cx + 3, cy + 7),
|
||||
(cx, cy + 7)], fill=CREAM, outline=INK)
|
||||
|
|
@ -470,75 +417,50 @@ def elem_misc() -> Image.Image:
|
|||
|
||||
def elem_combat() -> Image.Image:
|
||||
"""Kampf-Aktionsleiste: Initiative-Reihe oben, Aktionen unten."""
|
||||
w, h = 300, 40
|
||||
w, h = 400, 56
|
||||
im = Image.new("RGBA", (w, h), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
|
||||
# Initiative: Chips, der aktive in GOLD, Gegner in BLOOD
|
||||
for i in range(8):
|
||||
x = 6 + i * 12
|
||||
x = 6 + i * 14
|
||||
chip = [(SLATE, None), (SLATE, None), (BLOOD, None), (GOLD, INK),
|
||||
(SLATE, None), (BLOOD, None), (SLATE, None), (BLOOD, None)][i]
|
||||
d.rectangle((x, 1, x + 8, 9), fill=chip[0])
|
||||
d.rectangle((x, 1, x + 8, 9), outline=INK if chip[1] is None else GOLD)
|
||||
draw_text(d, 110, 2, "RND 3", CREAM_D)
|
||||
d.rectangle((x, 2, x + 9, 11), fill=chip[0])
|
||||
d.rectangle((x, 2, x + 9, 11), outline=INK if chip[1] is None else GOLD)
|
||||
draw_text(d, 134, 2, "RND 3", CREAM_D)
|
||||
|
||||
panel(d, (0, 13, w - 1, h - 1), fill=alpha(PANEL, 236), line=INK)
|
||||
labels = ["ATTACK", "MOVE", "SPELL", "ITEM", "DEFEND"]
|
||||
for i, label in enumerate(labels):
|
||||
x = 6 + i * 47
|
||||
panel(d, (x, 19, x + 42, 34), fill=OCHRE_D if label == "SPELL" else PANEL,
|
||||
panel(d, (0, 17, w - 1, h - 1), fill=alpha(PANEL, 236), line=INK)
|
||||
labels = ["ATTACK", "MOVE", "SPELL", "ITEM", "DEFEND", "END TURN"]
|
||||
x = 6
|
||||
for label in labels:
|
||||
bw = text_width(label) + 14
|
||||
panel(d, (x, 23, x + bw - 1, 49),
|
||||
fill=OCHRE_D if label == "SPELL" else PANEL,
|
||||
line=GOLD if label == "SPELL" else LINE)
|
||||
tw = text_width(label)
|
||||
draw_text(d, x + (43 - tw) // 2, 23, label,
|
||||
draw_text(d, x + 7, 31, label,
|
||||
CREAM if label == "SPELL" else CREAM_D)
|
||||
panel(d, (241, 19, 293, 34), fill=PANEL, line=LINE)
|
||||
draw_text(d, 241 + (53 - text_width("END TURN")) // 2, 23, "END TURN", CREAM)
|
||||
x += bw + 4
|
||||
return im
|
||||
|
||||
|
||||
def elem_loadbar() -> Image.Image:
|
||||
w, h = 180, 20
|
||||
w, h = 240, 26
|
||||
im = Image.new("RGBA", (w, h), (0, 0, 0, 0))
|
||||
d = ImageDraw.Draw(im)
|
||||
draw_text(d, 0, 0, "LOADING THE HARBOUR", CREAM_D)
|
||||
draw_text(d, w - text_width("62%"), 0, "62%", CREAM_D)
|
||||
well(d, (0, 9, w - 1, h - 1))
|
||||
draw_text(d, w - text_width("62%") - 1, 0, "62%", CREAM_D)
|
||||
well(d, (0, 14, w - 1, h - 1))
|
||||
fillw = round((w - 4) * 0.62)
|
||||
d.rectangle((2, 11, 1 + fillw, h - 2), fill=OCHRE_D)
|
||||
d.line((2, 11, 1 + fillw, 11), fill=OCHRE)
|
||||
d.rectangle((2, 16, 1 + fillw, h - 2), fill=OCHRE_D)
|
||||
d.line((2, 16, 1 + fillw, 16), fill=OCHRE)
|
||||
# Segmentmarken alle 10 %
|
||||
for k in range(1, 10):
|
||||
x = 2 + round((w - 4) * k / 10)
|
||||
d.line((x, 11, x, h - 2), fill=alpha(INK, 150))
|
||||
d.line((x, 16, x, h - 2), fill=alpha(INK, 150))
|
||||
return im
|
||||
|
||||
|
||||
# ------------------------------------------------------------------ Mocks ---
|
||||
def mock_hud(scene: Path) -> Image.Image:
|
||||
"""Szene als Hintergrund, UI darüber — die Lesbarkeitsprobe bei 1x."""
|
||||
base = Image.open(scene).convert("RGBA").resize((320, 180), Image.LANCZOS)
|
||||
d = ImageDraw.Draw(base)
|
||||
|
||||
base.alpha_composite(elem_party(count=3, fw=34, fh=34, psize=26),
|
||||
(320 - 34 - 6, 6))
|
||||
|
||||
panel(d, (6, 6, 46, 20), fill=alpha(PANEL, 232))
|
||||
draw_text(d, 11, 10, "MENU", CREAM)
|
||||
|
||||
d.rectangle((153, 6, 166, 20), fill=alpha(PANEL, 232))
|
||||
d.rectangle((153, 6, 166, 20), outline=LINE)
|
||||
draw_text(d, 156, 10, "N", GOLD)
|
||||
|
||||
base.alpha_composite(
|
||||
elem_dialog(["THE HARBOUR IS QUIET TONIGHT. TOO QUIET",
|
||||
"FOR A TOWN THAT SMELLS OF SALT AND IRON.",
|
||||
"WHAT DO YOU WANT TO DO?"], "ALDRIC THE GREY", 54),
|
||||
(14, 116))
|
||||
d.rectangle((0, 0, 319, 179), outline=INK)
|
||||
return base
|
||||
|
||||
|
||||
def palette_anchor() -> Image.Image:
|
||||
"""Palette-Anker für `pixelize.py --palette` (16 Farben, 4x4-Raster)."""
|
||||
im = Image.new("RGB", (32, 32), INK[:3])
|
||||
|
|
@ -564,37 +486,35 @@ def main(argv=None) -> None:
|
|||
ap = argparse.ArgumentParser(description=__doc__,
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter)
|
||||
ap.add_argument("--out", type=Path, default=FINAL / "UI")
|
||||
ap.add_argument("--scale", type=int, default=4,
|
||||
help="1 = Basisgröße, 4 = Auslieferung (Default)")
|
||||
ap.add_argument("--scale", type=int, default=2,
|
||||
help="1 = Basisgröße, 2 = Auslieferung (Default)")
|
||||
a = ap.parse_args(argv)
|
||||
|
||||
elements = {
|
||||
"ui_dialog_292x59": elem_dialog(
|
||||
"ui_dialog_390x71": elem_dialog(
|
||||
["THE HARBOUR IS QUIET TONIGHT. TOO QUIET",
|
||||
"FOR A TOWN THAT SMELLS OF SALT AND IRON.",
|
||||
"WHAT DO YOU WANT TO DO?"], "ALDRIC THE GREY", 54),
|
||||
"ui_dialog_gross_292x89": elem_dialog(
|
||||
"WHAT DO YOU WANT TO DO?"], "ALDRIC THE GREY", 66),
|
||||
"ui_dialog_gross_390x107": elem_dialog(
|
||||
["THE HARBOUR IS QUIET TONIGHT. TOO QUIET FOR",
|
||||
"A TOWN THAT SMELLS OF SALT AND IRON. THE",
|
||||
"LANTERNS SWING, THE GULLS HAVE GONE TO",
|
||||
"ROOST, AND THE TIDE IS COMING IN UNDER",
|
||||
"THE PIER. SOMETHING IS WRONG WITH THE",
|
||||
"WATER, AND NOBODY WILL SAY WHAT."],
|
||||
"ALDRIC THE GREY", 84),
|
||||
"ui_buttons_52x14": elem_buttons(),
|
||||
"ui_slots_22px": elem_slots(),
|
||||
"ui_window_pack_148x112": elem_pack(),
|
||||
"ui_window_zauber_148x116": elem_spells(),
|
||||
"ALDRIC THE GREY", 102),
|
||||
"ui_buttons_64x18": elem_buttons(),
|
||||
"ui_slots_26px": elem_slots(),
|
||||
"ui_window_pack_170x132": elem_pack(),
|
||||
"ui_window_zauber_170x140": elem_spells(),
|
||||
"ui_party_40px": elem_party(party_portraits()),
|
||||
"ui_misc_170x104": elem_misc(),
|
||||
"ui_kampf_leiste_300x40": elem_combat(),
|
||||
"ui_ladebalken_180x20": elem_loadbar(),
|
||||
"ui_misc_220x130": elem_misc(),
|
||||
"ui_kampf_leiste_400x56": elem_combat(),
|
||||
"ui_ladebalken_240x26": elem_loadbar(),
|
||||
}
|
||||
for name, im in elements.items():
|
||||
save(im, a.out, name, a.scale)
|
||||
|
||||
save(mock_hud(SCENE_B), a.out, "_mock_hud_B_1280x720", a.scale)
|
||||
save(mock_hud(SCENE_A), a.out, "_mock_hud_A_1280x720", a.scale)
|
||||
save(palette_anchor(), a.out, "_palette_ui", 1)
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,11 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Auflösungs-Gegenprobe für docs/roadmap.md §0.0.
|
||||
|
||||
> **Historisch (14.11.2026):** Die Bilder in `prep/aufloesung/` entstanden
|
||||
> mit dem 5x7-Satz. `ui.draw_text` liefert inzwischen 8x10 — ein erneuter Lauf
|
||||
> überschreibt die damalige Gegenprobe mit anderen Maßen. Nur ausführen, wenn
|
||||
> eine neue Probe gewollt ist.
|
||||
|
||||
Zeichnet zwei Mocks (Dialog, Kampf) bei 320x180 und 640x360 mit **gleicher
|
||||
absoluter Pixelgröße** — 5x7-Font, 32-px-Raster, gleiche Buttons. Damit ist
|
||||
die Frage nicht „welche Auflösung sieht retro aus", sondern: wie viel Text,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue