projects
/
gbrg
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ce1ffe
)
Added special exit flag
author
Lukas Krickl
<lukas@krickl.dev>
Fri, 20 Dec 2024 10:01:33 +0000
(11:01 +0100)
committer
Lukas Krickl
<lukas@krickl.dev>
Fri, 20 Dec 2024 10:01:33 +0000
(11:01 +0100)
src/map.s
patch
|
blob
|
history
src/wram.s
patch
|
blob
|
history
diff --git
a/src/map.s
b/src/map.s
index 4233cf4d6ba2ee566b265b1e73fcce564550859c..d394fa41be7a8dc1a8ef3cf12e41349a293529de 100644
(file)
--- a/
src/map.s
+++ b/
src/map.s
@@
-54,13
+54,13
@@
room_load_from:
; curr_room_exits: ptr to exits table
; player_x/y: player position
room_goto_player_pos:
- ld a,
NORTH
+ ld a,
EXIT_SPECIAL
; transitions to a new room
; that is part of the map:
; inputs:
; curr_room_exits: ptr to exits table
- ; a: direction EAST, WEST, NORTH, SOUTH
+ ; a: direction EAST, WEST, NORTH, SOUTH
, EXIT_SPECIAL
room_goto:
ret
@@
-318,3
+318,4
@@
dw base_room_struct
dw base_room_struct
dw base_room_struct
dw base_room_struct
+dw base_room_struct
diff --git
a/src/wram.s
b/src/wram.s
index 7292eb8d9363815013d9100c5f67f3de20a410ae..6794c5751872a9cba0bb8594875fb183d9dd9d04 100644
(file)
--- a/
src/wram.s
+++ b/
src/wram.s
@@
-77,6
+77,7
@@
damage_anim: .adv 1
#define EAST 1
#define SOUTH 2
#define WEST 3
+#define EXIT_SPECIAL 4
#define MAP_W 10
#define MAP_H 10