mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-10 22:01:52 +09:00
todo weather example
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user