You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gamejam-22/core/src/main/kotlin/com/last/commit/Game.kt

24 lines
530 B
Kotlin

package com.last.commit
import com.badlogic.gdx.Game
import com.last.commit.inventory.Inventory
import com.last.commit.config.PlayerSettings
import GameState
/** [com.badlogic.gdx.ApplicationListener] implementation shared by all platforms. */
class Game : Game() {
private lateinit var state: GameState
override fun create() {
createState()
setScreen(FirstScreen(state))
}
fun createState() {
state = GameState(
Inventory(),
PlayerSettings()
)
}
}