From: Lukas Krickl Date: Fri, 20 Dec 2024 10:01:33 +0000 (+0100) Subject: Added special exit flag X-Git-Url: https://git.krickl.dev/?a=commitdiff_plain;h=09860e459da2271afbb34cc13147bedad33a430d;p=gbrg%2F.git Added special exit flag --- diff --git a/src/map.s b/src/map.s index 4233cf4..d394fa4 100644 --- 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 7292eb8..6794c57 100644 --- 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