Animated textures !

This commit is contained in:
2026-10-07 19:11:44 -03:00
parent b6b10e35e2
commit fbc9266936
20 changed files with 555 additions and 25 deletions
+2
View File
@@ -24,6 +24,7 @@ import { Container } from "$/common/inventory.ts";
import { PLAYER_MENU } from "$/common/protocol.ts";
import { EverythingRegistry } from "$/common/everything_registry.ts";
import type { EntityJson } from "$/common/mod_data.ts";
import { tick_texture_animations } from "./texture_animations.ts";
// how far from the eyes entities can be hit, like minecraft
const ENTITY_REACH = 3;
@@ -194,6 +195,7 @@ export class Client {
this.connection.send({ type: "view_distance", distance: view_distance });
}
this.level.tick();
tick_texture_animations();
}
// closed_screen: a screen closed this frame and took its keys, so they don't also open the inventory or pick a