Add in tile position

This commit is contained in:
Miodrag Milanovic 2025-06-13 12:11:52 +02:00 committed by Miodrag Milanović
parent a0afc3aea3
commit 2aa7ef65ba
1 changed files with 5 additions and 1 deletions

View File

@ -238,6 +238,8 @@ class TileInfo:
die : int
bit_x : int
bit_y : int
tile_x : int
tile_y : int
prim_index : int
PRIMITIVES_PINS = {
@ -2833,7 +2835,9 @@ def get_tile_info(d,x,y):
pos = (y - 1) % 2 + 1
if is_edge_right(x,y):
pos = (y - 1) % 2 + 1
return TileInfo(d, bx, by, pos)
tile_x = ((x-1)+16) % 8
tile_y = ((y-1)+16) % 8
return TileInfo(d, bx, by, tile_x, tile_y, pos)
def alt_plane(dir,plane):
alt = [[5, 6, 7, 8, 1, 2, 3, 4,11,12, 9,10],