mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +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! //
|
||||
/////////////////////
|
||||
uiContainer.forEach { if (it != consoleHandler) it.render(batch) }
|
||||
debugWindow.render(batch)
|
||||
// make sure console draws on top of other UIs
|
||||
consoleHandler.render(batch)
|
||||
notifier.render(batch)
|
||||
batch.inUse {
|
||||
uiContainer.forEach { if (it != consoleHandler) it.render(batch) }
|
||||
debugWindow.render(batch)
|
||||
// make sure console draws on top of other UIs
|
||||
consoleHandler.render(batch)
|
||||
notifier.render(batch)
|
||||
}
|
||||
|
||||
|
||||
//////////////////
|
||||
|
||||
@@ -40,10 +40,12 @@ fun main(args: Array<String>) {
|
||||
val config = LwjglApplicationConfiguration()
|
||||
config.foregroundFPS = TerrarumGDX.RENDER_FPS
|
||||
config.backgroundFPS = TerrarumGDX.RENDER_FPS
|
||||
config.vSyncEnabled = true
|
||||
//config.vSyncEnabled = true
|
||||
config.resizable = false
|
||||
config.width = 1072
|
||||
config.height = 742
|
||||
config.backgroundFPS = 9999
|
||||
config.foregroundFPS = 9999
|
||||
config.title = GAME_NAME
|
||||
|
||||
LwjglApplication(TerrarumGDX, config)
|
||||
|
||||
Reference in New Issue
Block a user