1
0
forked from noxious/client

Renamed hair > characterHair, split character logic (chat bubble, healthbar etc) into separate components for better DX

This commit is contained in:
2024-11-24 15:13:11 +01:00
parent 89d83efca4
commit f7b8c235d8
10 changed files with 153 additions and 75 deletions

View File

@ -57,6 +57,8 @@ export async function loadTexture(scene: Phaser.Scene, assetData: AssetDataT): P
}
export async function loadSpriteTextures(scene: Phaser.Scene, sprite: Sprite) {
if (!sprite) return
const sprite_actions = await fetch(config.server_endpoint + '/assets/list_sprite_actions/' + sprite?.id).then((response) => response.json())
for await (const sprite_action of sprite_actions) {
await loadTexture(scene, {