v0.7.5: increased camera panning speed
This commit is contained in:
parent
f808e201f3
commit
6af4ffeaf7
|
@ -96,7 +96,7 @@ public class HeroSprite extends CharSprite {
|
||||||
@Override
|
@Override
|
||||||
public void place( int p ) {
|
public void place( int p ) {
|
||||||
super.place( p );
|
super.place( p );
|
||||||
Camera.main.panTo(center(), 5f);
|
Camera.main.panTo(center(), 8f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -105,7 +105,7 @@ public class HeroSprite extends CharSprite {
|
||||||
if (ch.flying) {
|
if (ch.flying) {
|
||||||
play( fly );
|
play( fly );
|
||||||
}
|
}
|
||||||
Camera.main.panFollow(this, 5f);
|
Camera.main.panFollow(this, 8f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class DangerIndicator extends Tag {
|
||||||
TargetHealthIndicator.instance.target(target == TargetHealthIndicator.instance.target() ? null : target);
|
TargetHealthIndicator.instance.target(target == TargetHealthIndicator.instance.target() ? null : target);
|
||||||
|
|
||||||
if (Dungeon.hero.curAction == null) {
|
if (Dungeon.hero.curAction == null) {
|
||||||
Camera.main.panTo(target.sprite.center(), 5f);
|
Camera.main.panTo(target.sprite.center(), 8f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -86,7 +86,7 @@ public class StatusPane extends Component {
|
||||||
@Override
|
@Override
|
||||||
protected void onClick( PointerEvent event ) {
|
protected void onClick( PointerEvent event ) {
|
||||||
Image sprite = Dungeon.hero.sprite;
|
Image sprite = Dungeon.hero.sprite;
|
||||||
Camera.main.panTo( sprite.center(), 2f );
|
Camera.main.panTo( sprite.center(), 3f );
|
||||||
GameScene.show( new WndHero() );
|
GameScene.show( new WndHero() );
|
||||||
}
|
}
|
||||||
} );
|
} );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user