projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e1acc3
)
tiles: added more docs for tile_get_adjacent
author
Lukas Krickl
<lukas@krickl.dev>
Mon, 17 Nov 2025 10:26:29 +0000
(11:26 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Mon, 17 Nov 2025 10:26:29 +0000
(11:26 +0100)
src/tiles.s
patch
|
blob
|
history
src/wram.s
patch
|
blob
|
history
diff --git
a/src/tiles.s
b/src/tiles.s
index cb41627ae276b8fb4a911051f8f4585771156227..c1be26ea9996c67d3c0d4dc472f9b315d91e228d 100644
(file)
--- 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 4b66ea8629bbe5a85245c2b6ca24aff8e5da420f..cae20405bccd6dc640e7148e6cd2668c7515e2ac 100644
(file)
--- 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