meat/game/textures.ts

24 lines
635 B
TypeScript
Raw Permalink Normal View History

2026-08-24 15:54:44 +02:00
import type { Texture } from "engine/render/Texture"
/** The game's texture palette -- the named surfaces content refers to (materials,
* mobs, room). `app/assets.ts` loads the actual pixels via the DOM; this is the
* shape both sides agree on, kept in `game/` so content never imports the browser
* loader. Filenames in `/assets` are the contract. */
export type Textures = {
floor: Texture
grass: Texture
bark: Texture
birch: Texture
leaf: Texture
needle: Texture
rock: Texture
flower: Texture
wall: Texture
crate: Texture
npc: Texture
frog: Texture
bee: Texture
robin: Texture
skybox: Texture
}