Entity and block sounds !

This commit is contained in:
2026-11-22 08:23:11 -03:00
parent da44685f54
commit d18fe19027
17 changed files with 332 additions and 20 deletions
+3
View File
@@ -6,6 +6,7 @@ import { LocalPlayer } from "@/client/entity/local_player.ts";
import { InputManager } from "@/client/input_manager.ts";
import { Options } from "@/client/options.ts";
import type { Client } from "@/client/client.ts";
import { AIR } from "@/common/constants.ts";
type Blocks = (x: number, y: number, z: number) => boolean;
@@ -20,6 +21,8 @@ function setup(ceiling = Infinity, world?: { solid: Blocks; water: Blocks }) {
// its water is all still sources
fluid_at: (x: number, y: number, z: number) =>
world?.water(x, y, z) ? { id: "a:water", height: 1 } : undefined,
// blocks without sounds to step on
get_block: () => AIR,
},
screen: undefined,
options: new Options(),