diff --git a/core/src/com/me/brickbuster/BrickBuster.java b/core/src/com/me/brickbuster/BrickBuster.java index ea0c39f..30add0e 100644 --- a/core/src/com/me/brickbuster/BrickBuster.java +++ b/core/src/com/me/brickbuster/BrickBuster.java @@ -4,10 +4,11 @@ import com.badlogic.gdx.Game; import com.badlogic.gdx.Gdx; import com.badlogic.gdx.graphics.GL20; import com.badlogic.gdx.graphics.OrthographicCamera; +import com.badlogic.gdx.graphics.Texture; import com.badlogic.gdx.graphics.g2d.BitmapFont; import com.badlogic.gdx.graphics.g2d.SpriteBatch; import com.badlogic.gdx.graphics.glutils.ShapeRenderer; -import com.badlogic.gdx.utils.viewport.StretchViewport; +import com.badlogic.gdx.utils.viewport.FitViewport; import com.badlogic.gdx.utils.viewport.Viewport; import com.me.brickbuster.state.PlayState; @@ -15,8 +16,8 @@ public class BrickBuster extends Game { public static final String TITLE = "Brick Buster"; // 9*16 board area - public static final int BOARD_WIDTH = 2250; - public static final int BOARD_HEIGHT = 4000; + public static final int BOARD_WIDTH = 2160; + public static final int BOARD_HEIGHT = 3840; public OrthographicCamera cam; public Viewport viewport; @@ -28,10 +29,13 @@ public class BrickBuster extends Game { @Override public void create () { cam = new OrthographicCamera(); - viewport = new StretchViewport(BOARD_WIDTH, BOARD_HEIGHT, cam); + viewport = new FitViewport(BOARD_WIDTH, BOARD_HEIGHT, cam); viewport.apply(true); font = new BitmapFont(); + font.getData().setScale(4); + font.getRegion().getTexture().setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear); + sb = new SpriteBatch(); sr = new ShapeRenderer();