Sounds on the client
This commit is contained in:
@@ -2,10 +2,13 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
import type { KeyCode } from "./input_manager.ts";
|
||||
import type { Volumes } from "./sounds.ts";
|
||||
|
||||
// the player's settings, like minecraft's Options and its key mappings
|
||||
export class Options {
|
||||
render_distance = 16;
|
||||
// 0 to 1, each sound category's under master's, see client/sounds.ts
|
||||
volume: Volumes = { master: 1, music: 1, ambient: 1, blocks: 1, entities: 1, players: 1, ui: 1 };
|
||||
|
||||
key_forward: KeyCode = "KeyW";
|
||||
key_back: KeyCode = "KeyS";
|
||||
|
||||
Reference in New Issue
Block a user