projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
81d75f1
)
Added docs for map flags
author
Lukas Krickl
<lukas@krickl.dev>
Wed, 11 Dec 2024 13:07:57 +0000
(14:07 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Wed, 11 Dec 2024 13:07:57 +0000
(14:07 +0100)
src/wram.s
patch
|
blob
|
history
diff --git
a/src/wram.s
b/src/wram.s
index 9c38b84baae5af1233f9c4543cb1899db08836cd..b5a148d3b946ccdcdc104d017ebecaf012d086b9 100644
(file)
--- a/
src/wram.s
+++ b/
src/wram.s
@@
-91,8
+91,17
@@
damage_anim: .adv 1
; room flags
.se 1
+ ; set if a tile is a wall
.de RF_WALL, 1
+ ; set if a tile is a door
.de RF_DOOR, 2
+ ; set if a tile is blocked by an actor
+ ; if this flag is set
+ ; collision resolution will
+ ; need to look up the actor in question by
+ ; iterating over the actor table + player
+ ; and checking each position
+ ; TODO: maybe add an actor lookup table for each tile
.de RF_ACTOR, 4
; current room struct