소리·애니메이션 공통 바탕: 사이트 음량(0~100, 기본 50, 이 기기만), 공통 효과음 sfx, 공통 움직임 클래스(anim-*)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
EJClaw
2026-10-13 04:02:30 +09:00
parent 544f704397
commit f12cf12b84
4 changed files with 219 additions and 14 deletions

View File

@@ -10,6 +10,7 @@ export const DEFAULT_SETTINGS: Required<Settings> = {
fontScale: 'normal',
theme: 'auto',
sound: true,
volume: 50,
vibrate: true,
colorBlind: false,
// Two-step placing is the default only on touch devices; on PC one click places (docs/07 §3.5).
@@ -17,7 +18,7 @@ export const DEFAULT_SETTINGS: Required<Settings> = {
};
/** Settings that belong to this device and are never synced to the account. */
const DEVICE_ONLY = ['tapConfirm'] as const;
const DEVICE_ONLY = ['tapConfirm', 'volume'] as const;
const withoutDeviceOnly = (s: Settings): Settings => {
const out: Record<string, unknown> = { ...s };
for (const k of DEVICE_ONLY) delete out[k];