Sounds on the client
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user