1
0
forked from noxious/client

Minor improvements

This commit is contained in:
2024-09-20 20:34:16 +02:00
parent 1a7546ba4f
commit 32cc613333
8 changed files with 98 additions and 99 deletions

View File

@ -63,6 +63,7 @@ export const loadAssets = (scene: Phaser.Scene): Promise<void> => {
const gameStore = useGameStore()
gameStore.assets.forEach((asset) => {
if (scene.load.textureManager.exists(asset.key)) return
if (asset.group === 'sprite_animations') {
scene.load.spritesheet(asset.key, config.server_endpoint + asset.url, { frameWidth: asset.frameWidth ?? 0, frameHeight: asset.frameHeight ?? 0 })
} else {