v0.2.4d: imported camera tweak from desktop version

This commit is contained in:
Evan Debenham 2015-03-21 23:31:18 -04:00
parent 5d837c3297
commit 3db441a5f7

View File

@ -75,6 +75,7 @@ import com.shatteredpixel.shatteredpixeldungeon.windows.WndBag.Mode;
import com.shatteredpixel.shatteredpixeldungeon.windows.WndGame;
import com.shatteredpixel.shatteredpixeldungeon.windows.WndBag;
import com.shatteredpixel.shatteredpixeldungeon.windows.WndStory;
import com.watabou.utils.GameMath;
import com.watabou.utils.Random;
public class GameScene extends PixelScene {
@ -129,7 +130,7 @@ public class GameScene extends PixelScene {
ShatteredPixelDungeon.lastClass(Dungeon.hero.heroClass.ordinal());
super.create();
Camera.main.zoom( defaultZoom + ShatteredPixelDungeon.zoom() );
Camera.main.zoom( GameMath.gate(minZoom, defaultZoom + ShatteredPixelDungeon.zoom(), maxZoom));
scene = this;