diff --git a/src/utilities/http.ts b/src/utilities/http.ts index 7805a4b..d90c38c 100644 --- a/src/utilities/http.ts +++ b/src/utilities/http.ts @@ -30,6 +30,7 @@ async function addHttpRoutes(app: Application) { key: sprite.id + '-' + spriteAction.action, url: '/assets/sprites/' + sprite.id + '/' + spriteAction.action + '.png', group: spriteAction.isAnimated ? 'sprite_animations' : 'sprites', + frameCount: JSON.parse(JSON.stringify(spriteAction.sprites)).length, frameWidth: spriteAction.frameWidth, frameHeight: spriteAction.frameHeight }) diff --git a/src/utilities/types.ts b/src/utilities/types.ts index 05254c3..10d46c1 100644 --- a/src/utilities/types.ts +++ b/src/utilities/types.ts @@ -25,6 +25,7 @@ export type TAsset = { key: string url: string group: 'tiles' | 'objects' | 'sprites' | 'sprite_animations' | 'sound' | 'music' | 'ui' | 'font' | 'other' + frameCount?: number frameWidth?: number frameHeight?: number }