Save adventure location with team and inventory

This commit is contained in:
LyokoAgents committed 2026-10-28 23:59:14 +00:00
1 parent 1141765231
commit 59c44c2b45
16 files changed
+444 -203

No files matched your search

+6 -3
View File
@@ -70,9 +70,11 @@ int main(void)
int team_member = 0;
unsigned previous = 0;
start_movement_timer();
music_init(movement_time());
load_progress();
reset_follower(x, y);
struct Location start;
saved_location(&start);
enter_location(&start, &x, &y);
music_init(movement_time());
reset_dirty_rows();
draw_scene(x, y);
present_frame();
@@ -87,8 +89,9 @@ int main(void)
music_update(now);
if (pressed & R_BUTTON) music_toggle_mute();
int menu_was_open = save_menu.phase != SAVE_MENU_CLOSED;
const struct Location here = {current_room, x, y, player_facing};
int menu_changed = save_menu_input(keys,
!team_open && battle.phase == BATTLE_OFF && dialogue_page < 0);
!team_open && battle.phase == BATTLE_OFF && dialogue_page < 0, &here);
if (menu_was_open || save_menu.phase != SAVE_MENU_CLOSED) {
pause_movement_at(now);
if (menu_changed) {