Change the asset keys

This commit is contained in:
2026-11-04 21:54:01 -03:00
parent ba4b2a8798
commit 4683b09e10
20 changed files with 39 additions and 39 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ import { AssetManager } from "./assets.ts";
type TexturesInfo = Record<string, SpriteRegion>;
export function get_sprite_region(id: string): SpriteRegion {
const textures_info = AssetManager.instance.get<TexturesInfo>("bworld:textures_info");
const textures_info = AssetManager.instance.get<TexturesInfo>("cubi:textures_info");
return textures_info?.[id] ?? textures_info?.["cubi:missing"] ??
{ x: 0, y: 0, width: TEXTURE_SIZE, height: TEXTURE_SIZE };
}