mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-09 10:04:05 +09:00
Just got enought to render without error (no display tho)
This commit is contained in:
@@ -536,11 +536,13 @@ class StateInGameGDX(val batch: SpriteBatch) : Screen {
|
|||||||
/////////////////////
|
/////////////////////
|
||||||
// draw UIs ONLY! //
|
// draw UIs ONLY! //
|
||||||
/////////////////////
|
/////////////////////
|
||||||
uiContainer.forEach { if (it != consoleHandler) it.render(batch) }
|
batch.inUse {
|
||||||
debugWindow.render(batch)
|
uiContainer.forEach { if (it != consoleHandler) it.render(batch) }
|
||||||
// make sure console draws on top of other UIs
|
debugWindow.render(batch)
|
||||||
consoleHandler.render(batch)
|
// make sure console draws on top of other UIs
|
||||||
notifier.render(batch)
|
consoleHandler.render(batch)
|
||||||
|
notifier.render(batch)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
|
|||||||
@@ -40,10 +40,12 @@ fun main(args: Array<String>) {
|
|||||||
val config = LwjglApplicationConfiguration()
|
val config = LwjglApplicationConfiguration()
|
||||||
config.foregroundFPS = TerrarumGDX.RENDER_FPS
|
config.foregroundFPS = TerrarumGDX.RENDER_FPS
|
||||||
config.backgroundFPS = TerrarumGDX.RENDER_FPS
|
config.backgroundFPS = TerrarumGDX.RENDER_FPS
|
||||||
config.vSyncEnabled = true
|
//config.vSyncEnabled = true
|
||||||
config.resizable = false
|
config.resizable = false
|
||||||
config.width = 1072
|
config.width = 1072
|
||||||
config.height = 742
|
config.height = 742
|
||||||
|
config.backgroundFPS = 9999
|
||||||
|
config.foregroundFPS = 9999
|
||||||
config.title = GAME_NAME
|
config.title = GAME_NAME
|
||||||
|
|
||||||
LwjglApplication(TerrarumGDX, config)
|
LwjglApplication(TerrarumGDX, config)
|
||||||
|
|||||||
Reference in New Issue
Block a user