v3.0.2: adjusted elements of Tengu's run animation, fixes visual errors

This commit is contained in:
Evan Debenham
2025-03-17 13:51:11 -04:00
parent 0e6e7032ac
commit 30de2fbeb7
2 changed files with 10 additions and 2 deletions

View File

@@ -425,6 +425,9 @@ public class PrisonBossLevel extends Level {
tengu.pos = tenguPos;
GameScene.add( tengu );
tengu.notice();
CellEmitter.get( tengu.pos ).burst( Speck.factory( Speck.WOOL ), 6 );
Sample.INSTANCE.play( Assets.Sounds.PUFF );
state = State.FIGHT_START;
@@ -470,6 +473,8 @@ public class PrisonBossLevel extends Level {
GameScene.add(tengu);
tengu.timeToNow();
tengu.notice();
CellEmitter.get( tengu.pos ).burst( Speck.factory( Speck.WOOL ), 6 );
GameScene.flash(0x80FFFFFF);
Sample.INSTANCE.play(Assets.Sounds.BLAST);

View File

@@ -51,7 +51,8 @@ public class TenguSprite extends MobSprite {
die = new Animation( 8, false );
die.frames( frames, 8, 9, 10, 10, 10, 10, 10, 10 );
play( run.clone() );
play( run );
isMoving = true;
}
@Override
@@ -83,7 +84,9 @@ public class TenguSprite extends MobSprite {
@Override
public void update() {
if (paused) isMoving = false;
if (paused && !curAnim.looped){
updateAnimation();
}
super.update();
}