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.
26 lines
594 B
Kotlin
26 lines
594 B
Kotlin
package com.last.commit
|
|
|
|
import GameState
|
|
import com.badlogic.gdx.Game
|
|
import com.last.commit.config.GameSettings
|
|
import com.last.commit.inventory.Inventory
|
|
import com.last.commit.audio.SoundEngine
|
|
|
|
/** [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(),
|
|
GameSettings(),
|
|
SoundEngine()
|
|
)
|
|
}
|
|
} |