v0.2.4d: imported camera tweak from desktop version
This commit is contained in:
parent
5d837c3297
commit
3db441a5f7
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user