v0.7.5: increased camera panning speed

This commit is contained in:
Evan Debenham 2019-09-16 19:53:57 -04:00
parent f808e201f3
commit 6af4ffeaf7
3 changed files with 4 additions and 4 deletions

View File

@ -96,7 +96,7 @@ public class HeroSprite extends CharSprite {
@Override
public void place( int p ) {
super.place( p );
Camera.main.panTo(center(), 5f);
Camera.main.panTo(center(), 8f);
}
@Override
@ -105,7 +105,7 @@ public class HeroSprite extends CharSprite {
if (ch.flying) {
play( fly );
}
Camera.main.panFollow(this, 5f);
Camera.main.panFollow(this, 8f);
}
@Override

View File

@ -105,7 +105,7 @@ public class DangerIndicator extends Tag {
TargetHealthIndicator.instance.target(target == TargetHealthIndicator.instance.target() ? null : target);
if (Dungeon.hero.curAction == null) {
Camera.main.panTo(target.sprite.center(), 5f);
Camera.main.panTo(target.sprite.center(), 8f);
}
}
}

View File

@ -86,7 +86,7 @@ public class StatusPane extends Component {
@Override
protected void onClick( PointerEvent event ) {
Image sprite = Dungeon.hero.sprite;
Camera.main.panTo( sprite.center(), 2f );
Camera.main.panTo( sprite.center(), 3f );
GameScene.show( new WndHero() );
}
} );