Sounds on the client

This commit is contained in:
2026-11-22 07:21:29 -03:00
parent f308ab52f1
commit 47934b272c
21 changed files with 1002 additions and 25 deletions
+8
View File
@@ -116,6 +116,14 @@ export interface Position {
z: number;
}
// how a sound plays, on top of what its definition in sounds.json says. see docs/modding/resources/sounds.md
export interface PlayOptions {
// multiplies the sound's own. over 1 it's heard further away, not louder
volume?: number;
// multiplies the sound's own: 2 is an octave up and twice as fast
pitch?: number;
}
export type Face = "west" | "east" | "bottom" | "top" | "north" | "south";
// KeyboardEvent.code values, like "KeyE" or "Digit1"