Fix enemy rendering screen offset and implement pixel-perfect sprite collision

This commit is contained in:
2026-06-22 19:50:44 +02:00
parent 9311e5d1d3
commit b47455c5d2
2 changed files with 18 additions and 10 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ def main():
ly = pyboy.memory[player_ly_addr]
print(f"Initial player coordinates in RAM: lx={lx}, ly={ly}")
# Read maze array from RAM (15x15 starting at maze_addr)
map_size = 15
# Read maze array from RAM (7x7 starting at maze_addr)
map_size = 7
maze = []
for y in range(map_size):
row = []