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

+4 -3
View File
@@ -10,7 +10,7 @@ void check_background_cache(void)
restore(240, 160, 4, 4);
assert(!background_valid && scenery_samples == 0 && pending_pixels() == 0);
for (int room = OUTSIDE; room <= MELLON_HOUSE; ++room) {
for (int room = OUTSIDE; room <= BEACH; ++room) {
current_room = (enum Room)room;
door_open = 0;
unsigned before = scenery_samples;
@@ -87,7 +87,7 @@ void check_background_cache(void)
assert(SCREEN[y * WIDTH + x] == expected);
}
assert(test_pixels[0] == 0xbeef && test_pixels[WIDTH * HEIGHT + 1] == 0xbeef);
puts("Background cache: 5 maps match reference; warm restores use 0 scenery evaluations (was 408 each)");
puts("Background cache: 6 maps match reference; warm restores use 0 scenery evaluations (was 408 each)");
}
/* Reference implementation of the previous per-pixel rectangle renderer. */
@@ -116,8 +116,9 @@ void check_sprite_rows(void)
static const char *const zero_art[] = {"0A..B1..", "..1.....", "........"};
const struct { const char *const *art; int width, rows; } images[] = {
{person_art, 16, 20}, {person_back_art, 16, 20}, {person_side_art, 16, 20},
{girl_art, 16, 20}, {girl_back_art, 16, 20}, {girl_side_art, 16, 20},
{creature_art, 16, 16}, {fernfox_art, 24, 24}, {emberwing_art, 24, 24},
{pebblit_art, 24, 24}, {zero_art, 8, 3}
{pebblit_art, 24, 24}, {tidefin_art, 24, 24}, {zero_art, 8, 3}
};
const int positions[][2] = {
{70, 60}, {-8, 40}, {232, 40}, {80, -12}, {80, 155},