Turn activity music on by default, like the activity sounds

AI Assisted
This commit is contained in:
jparkerweb committed 2026-11-06 17:17:36 -08:00
1 parent 74d07be90a
commit 037fb0d864
3 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -550,8 +550,8 @@ Drive has a song for each road, Snake a different one at every level, dealt from
the start of a round so none repeats, and Ghoul Rush a track for each room, played at the start of a round so none repeats, and Ghoul Rush a track for each room, played at
one steady level and fuller in a boss fight), and Light Trails and Flock Dash play five one steady level and fuller in a boss fight), and Light Trails and Flock Dash play five
recorded songs each as background music, each in full, one after another in an recorded songs each as background music, each in full, one after another in an
order shuffled for every run: turn on **Play activity music** in **User order shuffled for every run: **Play activity music** in **User
Preferences → Sounds & activities** (it starts off). **Play activity sounds** there turns the games' Preferences → Sounds & activities** is on by default (turn it off there). **Play activity sounds** there turns the games'
sounds (the 3, 2, 1 and the new-best burst included) and their music on or sounds (the 3, 2, 1 and the new-best burst included) and their music on or
off and leaves the page's own cues alone; the **Play sounds** switch above it off and leaves the page's own cues alone; the **Play sounds** switch above it
silences all of it, and a paused or closed game goes quiet at once. A game silences all of it, and a paused or closed game goes quiet at once. A game
+4 -4
View File
@@ -1259,12 +1259,12 @@ test("Play activity sounds in User Preferences silences the games and the countd
await s.page.click("#btn-looks"); await s.page.click("#btn-looks");
await s.page.click("#prefs-tab-sounds"); await s.page.click("#prefs-tab-sounds");
const tune = s.page.locator("#looks-game-music"); const tune = s.page.locator("#looks-game-music");
assert.equal(await tune.isChecked(), false, "game music is off by default"); assert.equal(await tune.isChecked(), true, "game music is on by default");
await tune.check(); await tune.uncheck();
await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).gameMusic === true); await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).gameMusic === false);
await s.page.click("#looks-reset"); await s.page.click("#looks-reset");
await s.page.locator("#looks-activity-sounds:checked").waitFor(); await s.page.locator("#looks-activity-sounds:checked").waitFor();
await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).gameMusic === false); await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).gameMusic === true);
await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).activitySounds === true); await s.page.waitForFunction(async () => ((await (await fetch("/looks")).json()).looks || {}).activitySounds === true);
}); });
+2 -2
View File
@@ -37,8 +37,8 @@ export const DEFAULT_LOOKS = {
// course (activityBestGolfPirate), each a flat key for cleanLooks(). // course (activityBestGolfPirate), each a flat key for cleanLooks().
hideActivities: true, hideActivities: true,
activitySounds: true, activitySounds: true,
// Whether a game plays its music too (chiptune or recorded songs): off until asked for. // Whether a game plays its music too (chiptune or recorded songs): on, like the sounds.
gameMusic: false, gameMusic: true,
lastActivity: "", lastActivity: "",
...Object.fromEntries(ACTIVITIES.flatMap((a) => bestKeys(a).map((key) => [key, 0]))), ...Object.fromEntries(ACTIVITIES.flatMap((a) => bestKeys(a).map((key) => [key, 0]))),
// And one memo per game (activityMemoSnake): Snake's surprises found. // And one memo per game (activityMemoSnake): Snake's surprises found.