v0.7.5b: adjusted camera pan following on hero, now faster the more zoomed in it is
This commit is contained in:
parent
2b10466569
commit
d616d8fa02
|
@ -25,6 +25,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Assets;
|
|||
import com.shatteredpixel.shatteredpixeldungeon.Dungeon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.actors.hero.HeroClass;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.scenes.PixelScene;
|
||||
import com.watabou.gltextures.SmartTexture;
|
||||
import com.watabou.gltextures.TextureCache;
|
||||
import com.watabou.noosa.Camera;
|
||||
|
@ -105,7 +106,7 @@ public class HeroSprite extends CharSprite {
|
|||
if (ch.flying) {
|
||||
play( fly );
|
||||
}
|
||||
Camera.main.panFollow(this, 15f);
|
||||
Camera.main.panFollow(this, 5f + 10f*(Camera.main.zoom/PixelScene.defaultZoom));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue
Block a user