todo weather example

This commit is contained in:
minjaesong
2023-08-29 15:39:24 +09:00
parent 0646425b76
commit 9d118aebb0
2 changed files with 35 additions and 5 deletions

View File

@@ -39,11 +39,8 @@ class BasicDebugInfoWindow : UICanvas() {
private var xdelta = 0.0
private var ydelta = 0.0
private val ingame: IngameInstance?
get() = Terrarum.ingame
private val world: GameWorld?
get() = Terrarum.ingame?.world
private var ingame: IngameInstance? = null
private var world: GameWorld? = null
private val icons = TextureRegionPack(Gdx.files.internal("assets/graphics/gui/debug_window_symbols.tga"), 21, 26)
private val back = Texture(Gdx.files.internal("assets/graphics/gui/debug_window_background.tga"))
@@ -69,6 +66,11 @@ class BasicDebugInfoWindow : UICanvas() {
private var showTimers = false
override fun show() {
ingame = Terrarum.ingame
world = ingame?.world
}
override fun updateUI(delta: Float) {
val player = ingame?.actorNowPlaying
val hitbox = player?.hitbox