chore: version Zelda 1 port and engineering records

This commit is contained in:
Nilton Constantino
2026-11-16 15:22:13 +00:00
commit 6f2fa420c2
4282 changed files with 822198 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env python3
"""Compare wall overlay and restored entrance against existing native tile PNGs."""
from PIL import Image,ImageChops
from extract_graphics import ROOT
def validate():
out=ROOT/'extracted/bomb_wall/validation';source=ROOT/'assets/tilesets/overworld';wall=Image.new('RGB',(16,16))
for name,x,y in [('d8',0,0),('da',8,0),('d9',0,8),('db',8,8)]:wall.paste(Image.open(source/f'tile_{name}_p2.png').convert('RGB'),(x,y))
checks=[('closed',80),('menu_mid',168),('scroll_north_mid',168),('scroll_south_mid',168)]
for name,y in checks:
image=Image.open(out/(name+'.png')).convert('RGB');actual=image.crop((112+64,15+y,112+80,15+y+16));assert ImageChops.difference(actual,wall).getbbox() is None,name
opened=Image.open(out/'continue.png').convert('RGB').crop((176,95,192,111));original=Image.open(ROOT/'extracted/overworld/start/room.png').convert('RGB').crop((64,80,80,96));assert ImageChops.difference(opened,original).getbbox() is None,'opened entrance'
print('Five terrain patches match native pixels: closed, menu, both scrolls, restored entrance')
if __name__=='__main__':validate()