mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-18 22:44:04 +09:00
leak patched I guess
This commit is contained in:
@@ -408,20 +408,17 @@ object Terrarum : Game() {
|
||||
|
||||
|
||||
|
||||
//ingame = Ingame(batch)
|
||||
//ingame!!.gameLoadInfoPayload = Ingame.NewWorldParameters(8192, 2048, HQRNG().nextLong())
|
||||
|
||||
// TODO: create world being used by title screen, and serialise it.
|
||||
//ingame!!.gameLoadInfoPayload = Ingame.NewWorldParameters(2400, 800, HQRNG().nextLong())
|
||||
//ingame!!.gameLoadMode = Ingame.GameLoadMode.CREATE_NEW
|
||||
// jump right into the ingame
|
||||
ingame = Ingame(batch)
|
||||
ingame!!.gameLoadInfoPayload = Ingame.NewWorldParameters(2400, 800, HQRNG().nextLong())
|
||||
ingame!!.gameLoadMode = Ingame.GameLoadMode.CREATE_NEW
|
||||
LoadScreen.screenToLoad = ingame!!
|
||||
super.setScreen(LoadScreen)
|
||||
|
||||
|
||||
//LoadScreen.screenToLoad = ingame!!
|
||||
|
||||
super.setScreen(TitleScreen(batch))
|
||||
//super.setScreen(LoadScreen)
|
||||
|
||||
//super.setScreen(ingame)
|
||||
// title screen
|
||||
//super.setScreen(TitleScreen(batch))
|
||||
}
|
||||
|
||||
internal fun changeScreen(screen: Screen) {
|
||||
@@ -697,6 +694,8 @@ inline fun FrameBuffer.inAction(camera: OrthographicCamera?, batch: SpriteBatch?
|
||||
action(this)
|
||||
this.end()
|
||||
camera?.setToOrtho(true, Terrarum.WIDTH.toFloat(), Terrarum.HEIGHT.toFloat())
|
||||
camera?.update()
|
||||
batch?.projectionMatrix = camera?.combined
|
||||
}
|
||||
|
||||
fun Float.round(): Float {
|
||||
|
||||
Reference in New Issue
Block a user