From eb8b6fddbaa81865208af3085a3482a6de6da268 Mon Sep 17 00:00:00 2001 From: Lukas Krickl Date: Mon, 17 Nov 2025 11:26:29 +0100 Subject: [PATCH] tiles: added more docs for tile_get_adjacent --- src/tiles.s | 6 +++++- src/wram.s | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/tiles.s b/src/tiles.s index cb41627..c1be26e 100644 --- a/src/tiles.s +++ b/src/tiles.s @@ -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 diff --git a/src/wram.s b/src/wram.s index 4b66ea8..cae2040 100644 --- a/src/wram.s +++ b/src/wram.s @@ -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 -- 2.30.2