tiles: added more docs for tile_get_adjacent
authorLukas Krickl <lukas@krickl.dev>
Mon, 17 Nov 2025 10:26:29 +0000 (11:26 +0100)
committerLukas Krickl <lukas@krickl.dev>
Mon, 17 Nov 2025 10:26:29 +0000 (11:26 +0100)
src/tiles.s
src/wram.s

index cb41627ae276b8fb4a911051f8f4585771156227..c1be26ea9996c67d3c0d4dc472f9b315d91e228d 100644 (file)
@@ -169,8 +169,12 @@ tile_get_actor:
                ld a, l
                ld [de], a
                inc de
-
+               
+               jr @done REL
 @skip:
+       inc de
+       inc de
+@done:
 .endscope
 #endmacro
 
index 4b66ea8629bbe5a85245c2b6ca24aff8e5da420f..cae20405bccd6dc640e7148e6cd2668c7515e2ac 100644 (file)
@@ -89,6 +89,11 @@ tiles_end: .adv 0
        ; to all adjacent tiles
        ; set to NULL if no tile is adjacent
        ; byte 0: h, byte 1: l
+       ; always in the followign order: 
+       ; tl, tc, tr
+       ;       cl,     cr
+       ; bl, bc, br
+       ; tiles that are not mapped are left with 00 00 as a pointer
 tiles_adjacent: .adv ta_size * TILES_ADJACENT_MAX
 
 ui_draw_routine: .adv 2