Weltkarte: Blit-Anker-Offset (+5,+4) fuer Punkte/Pfad -- Binary-Koordinaten sind korrekt, der Anker stand nicht im Binary

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-07-25 14:38:26 +02:00
co-authored by Claude Fable 5
parent bca944810e
commit ac5c2c135a
2 changed files with 15 additions and 1 deletions
+7 -1
View File
@@ -33,10 +33,16 @@ BLINK_SECONDS = 0.5 # Blinkrhythmus der aktiven Position
# damit liegen die fruehen Level im Wald unten und W2/W3 in Bergen/Schloss
# oben -- deckungsgleich mit Stefans Original-Screenshots).
MAP_Y_FLIP = 209
# Blit-Anker-Korrektur (Stefans Abgleich mit Original-Screenshots: "alle
# Punkte ein Stueck nach rechts und unten"): die Binary-Koordinaten sind
# korrekt, aber das Original ankert die Sprites nicht zentriert -- der
# Versatz ist im Binary nicht ablesbar, daher empirisch. Feinjustage hier.
MAP_DX = 5
MAP_DY = 4
def _tf(p):
return (p[0], MAP_Y_FLIP - p[1])
return (p[0] + MAP_DX, MAP_Y_FLIP - p[1] + MAP_DY)
def parse_worldmap(exe_path):