1
0
forked from noxious/client

Improved proof of concept hair customisation & sprite anchor points

This commit is contained in:
2024-12-12 00:42:56 +01:00
parent b5c1c92b04
commit 608932300f
3 changed files with 49 additions and 71 deletions

View File

@ -82,7 +82,7 @@ export async function loadSpriteTextures(scene: Phaser.Scene, sprite: Sprite) {
scene.textures.addSpriteSheet(sprite_action.key, anim, { frameWidth: sprite_action.frameWidth ?? 0, frameHeight: sprite_action.frameHeight ?? 0 })
scene.anims.create({
key: sprite_action.key,
frameRate: 7, // TODO | 262 : Allow configuring frame rate
frameRate: 6.3, // TODO | 262 : Allow configuring frame rate
frames: scene.anims.generateFrameNumbers(sprite_action.key, { start: 0, end: sprite_action.frameCount! - 1 }),
repeat: -1
})