Add music, beach fishing, catching, and selectable creature partners

This commit is contained in:
rory committed 2026-10-28 22:22:27 +00:00
1 parent 3469f2e6dd
commit cb77683a87
24 files changed
+1307 -104

No files matched your search

+26 -1
View File
@@ -43,6 +43,9 @@ int main(void)
check_art(person_art, 20, 11);
check_art(person_back_art, 20, 13);
check_art(person_side_art, 20, 13);
check_art(girl_art, 20, 13);
check_art(girl_back_art, 20, 13);
check_art(girl_side_art, 20, 13);
check_art(creature_art, 16, 8);
assert(facing_for_keys(UP, FACING_DOWN) == FACING_UP);
assert(facing_for_keys(DOWN, FACING_UP) == FACING_DOWN);
@@ -76,7 +79,7 @@ int main(void)
actors(x, y, 0);
assert(memcmp(expected, SCREEN, sizeof(expected)) == 0);
}
for (int room = OUTSIDE; room <= MELLON_HOUSE; ++room) {
for (int room = OUTSIDE; room <= BEACH; ++room) {
current_room = (enum Room)room;
reset_position(&x, &y);
if (current_room == OUTSIDE) x = 130;
@@ -103,6 +106,23 @@ int main(void)
person(85, 116, 1, shirt, RGB(28, 8, 9), FACING_LEFT);
person(130, 126, 0, shirt, RGB(28, 8, 9), FACING_RIGHT);
write_preview("build/directions-preview.ppm");
for (int facing = FACING_DOWN; facing <= FACING_RIGHT; ++facing) {
int gx = 45 + facing * 45;
styled_person(gx, 75, facing & 1, RGB(4, 21, 13), RGB(12, 7, 4),
(enum Facing)facing, GIRL_STYLE);
styled_person(gx, 125, facing & 1, RGB(29, 30, 27), RGB(20, 21, 19),
(enum Facing)facing, GIRL_STYLE);
}
write_preview("build/girl-directions-preview.ppm");
current_room = MELLON_HOUSE;
render_scene(108, 119);
memcpy(expected, SCREEN, sizeof(expected));
/* Replacing the professor with the girl style must leave identical pixels. */
restore(PROF_X - 8, PROF_Y - 20, 17, 24);
styled_person(PROF_X, PROF_Y, 0, RGB(29, 30, 27), RGB(20, 21, 19),
FACING_DOWN, GIRL_STYLE);
assert(memcmp(expected, SCREEN, sizeof(expected)) == 0);
current_room = OUTSIDE;
assert(test_pixels[0] == 0xbeef);
assert(test_pixels[WIDTH * HEIGHT + 1] == 0xbeef);
render_scene(108, 103);
@@ -177,6 +197,7 @@ int main(void)
check_buffered_walking();
check_route_travel();
check_mellon_visit();
check_beach_travel();
check_starter_gift();
check_following_and_battle();
check_wild_encounters();
@@ -184,6 +205,10 @@ int main(void)
check_background_cache();
check_sprite_rows();
check_movement_clock_and_speed();
check_music();
check_catching();
check_fishing();
check_partner_selection();
assert(test_pixels[0] == 0xbeef);
assert(test_pixels[WIDTH * HEIGHT + 1] == 0xbeef);
puts("Ball gift/inventory/save migration, wild encounters, battles, following, and map checks passed");