v0.7.5b: adjusted camera pan following on hero, now faster the more zoomed in it is

This commit is contained in:
Evan Debenham 2019-10-11 21:07:24 -04:00
parent 2b10466569
commit d616d8fa02

View File

@ -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