setting minimum res to be 1080x720

This commit is contained in:
minjaesong
2020-11-24 10:12:32 +09:00
parent 5d46402b27
commit 79114fcbd0
2 changed files with 12 additions and 3 deletions

View File

@@ -210,8 +210,8 @@ public class AppLoader implements ApplicationListener {
public static final int defaultW = 1280;
public static final int defaultH = 720;
public static final int minimumW = 800;
public static final int minimumH = 600;
public static final int minimumW = 1080;
public static final int minimumH = 720;
public static final String FONT_DIR = "assets/graphics/fonts/terrarum-sans-bitmap";

View File

@@ -36,6 +36,7 @@ object PostProcessor : Disposable {
private val defaultResCol = Color(0x66ffff66)
private val safeAreaCol = Color(0xffffff66.toInt())
private val safeAreaCol2 = Color(0xffffff44.toInt())
private val currentResCol = Color(0xff00ff44.toInt())
private val debugUI = BasicDebugInfoWindow()
@@ -192,7 +193,14 @@ object PostProcessor : Disposable {
AppLoader.fontSmallNumbers.draw(
batch, defaultResStr,
(AppLoader.screenW - AppLoader.minimumW).div(2).toFloat(),
(AppLoader.screenH - AppLoader.minimumH).div(2).minus(10).toFloat()
(AppLoader.screenH - AppLoader.minimumH).div(2).toFloat()
)
batch.color = currentResCol
AppLoader.fontSmallNumbers.draw(
batch, currentResStr,
AppLoader.screenW - 80f,
0f
)
}
}
@@ -206,6 +214,7 @@ object PostProcessor : Disposable {
}
private val defaultResStr = "${AppLoader.minimumW}x${AppLoader.minimumH}"
private val currentResStr = "${AppLoader.screenW}x${AppLoader.screenH}"
private val safeAreaStr = "TV Safe Area"
private val versionStr = "Version ${AppLoader.getVERSION_STRING()}"
private val thisIsDebugStr = "${AppLoader.GAME_NAME} Develoment Build $versionStr"