replaced a hack that starts random game on title screen

This commit is contained in:
minjaesong
2018-12-08 18:30:10 +09:00
parent 91ade00bbb
commit 20dfc95d0d
8 changed files with 196 additions and 31 deletions

View File

@@ -36,6 +36,11 @@ open class IngameInstance(val batch: SpriteBatch) : Screen {
*/
open var actorNowPlaying: ActorHumanoid? = null
open var gameInitialised = false
internal set
open var gameFullyLoaded = false
internal set
val ACTORCONTAINER_INITIAL_SIZE = 64
val actorContainer = ArrayList<Actor>(ACTORCONTAINER_INITIAL_SIZE)
val actorContainerInactive = ArrayList<Actor>(ACTORCONTAINER_INITIAL_SIZE)
@@ -44,6 +49,8 @@ open class IngameInstance(val batch: SpriteBatch) : Screen {
}
override fun show() {
// the very basic show() implementation
gameInitialised = true
}
override fun render(delta: Float) {