v3.0.2: adjusted elements of Tengu's run animation, fixes visual errors
This commit is contained in:
@@ -425,6 +425,9 @@ public class PrisonBossLevel extends Level {
|
|||||||
tengu.pos = tenguPos;
|
tengu.pos = tenguPos;
|
||||||
GameScene.add( tengu );
|
GameScene.add( tengu );
|
||||||
tengu.notice();
|
tengu.notice();
|
||||||
|
|
||||||
|
CellEmitter.get( tengu.pos ).burst( Speck.factory( Speck.WOOL ), 6 );
|
||||||
|
Sample.INSTANCE.play( Assets.Sounds.PUFF );
|
||||||
|
|
||||||
state = State.FIGHT_START;
|
state = State.FIGHT_START;
|
||||||
|
|
||||||
@@ -470,6 +473,8 @@ public class PrisonBossLevel extends Level {
|
|||||||
GameScene.add(tengu);
|
GameScene.add(tengu);
|
||||||
tengu.timeToNow();
|
tengu.timeToNow();
|
||||||
tengu.notice();
|
tengu.notice();
|
||||||
|
|
||||||
|
CellEmitter.get( tengu.pos ).burst( Speck.factory( Speck.WOOL ), 6 );
|
||||||
|
|
||||||
GameScene.flash(0x80FFFFFF);
|
GameScene.flash(0x80FFFFFF);
|
||||||
Sample.INSTANCE.play(Assets.Sounds.BLAST);
|
Sample.INSTANCE.play(Assets.Sounds.BLAST);
|
||||||
|
|||||||
@@ -51,7 +51,8 @@ public class TenguSprite extends MobSprite {
|
|||||||
die = new Animation( 8, false );
|
die = new Animation( 8, false );
|
||||||
die.frames( frames, 8, 9, 10, 10, 10, 10, 10, 10 );
|
die.frames( frames, 8, 9, 10, 10, 10, 10, 10, 10 );
|
||||||
|
|
||||||
play( run.clone() );
|
play( run );
|
||||||
|
isMoving = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -83,7 +84,9 @@ public class TenguSprite extends MobSprite {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update() {
|
public void update() {
|
||||||
if (paused) isMoving = false;
|
if (paused && !curAnim.looped){
|
||||||
|
updateAnimation();
|
||||||
|
}
|
||||||
super.update();
|
super.update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user