From d616d8fa02fe6494fb1386952ba0a852a60e07d9 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 11 Oct 2019 21:07:24 -0400 Subject: [PATCH] v0.7.5b: adjusted camera pan following on hero, now faster the more zoomed in it is --- .../shatteredpixeldungeon/sprites/HeroSprite.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/HeroSprite.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/HeroSprite.java index 1af7e2f8f..9a0a5ea9c 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/HeroSprite.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/sprites/HeroSprite.java @@ -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