feat: updated assets

pull/194/head
alestiago 3 years ago
parent 23754818bc
commit 47d0ff651b

Binary file not shown.

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 365 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

@ -21,8 +21,8 @@ class SparkyAnimatronic extends SpriteAnimationComponent with HasGameRef {
Assets.images.sparky.animatronic.keyName, Assets.images.sparky.animatronic.keyName,
); );
const amountPerRow = 8; const amountPerRow = 9;
const amountPerColumn = 6; const amountPerColumn = 7;
final textureSize = Vector2( final textureSize = Vector2(
spriteSheet.width / amountPerRow, spriteSheet.width / amountPerRow,
spriteSheet.height / amountPerColumn, spriteSheet.height / amountPerColumn,
@ -32,7 +32,7 @@ class SparkyAnimatronic extends SpriteAnimationComponent with HasGameRef {
animation = SpriteAnimation.fromFrameData( animation = SpriteAnimation.fromFrameData(
spriteSheet, spriteSheet,
SpriteAnimationData.sequenced( SpriteAnimationData.sequenced(
amount: amountPerRow * amountPerColumn, amount: (amountPerRow * amountPerColumn) - 1,
amountPerRow: amountPerRow, amountPerRow: amountPerRow,
stepTime: 1 / 24, stepTime: 1 / 24,
textureSize: textureSize, textureSize: textureSize,

Loading…
Cancel
Save