Inventory UI on ingame

This commit is contained in:
Song Minjae
2017-04-09 03:35:18 +09:00
parent 1a3c9d7f65
commit 4254b87e51
20 changed files with 245 additions and 267 deletions

View File

@@ -63,6 +63,11 @@ object Terrarum : StateBasedGame(GAME_NAME) {
*/
val TARGET_INTERNAL_FPS = 100
/**
* For the events depends on rendering frame (e.g. flicker on post-hit invincibility)
*/
var GLOBAL_RENDER_TIMER = Random().nextInt(1020) + 1
@@ -78,8 +83,6 @@ object Terrarum : StateBasedGame(GAME_NAME) {
lateinit var appgc: AppGameContainer
var gameStarted = false
var ingame: StateInGame? = null
private val gameConfig = GameConfig()
@@ -650,6 +653,6 @@ operator fun Color.minus(other: Color) = Color(
this.a - other.a
)
fun Int.toHex() = this.toString(16)
fun Int.toHex() = this.toLong().and(0xFFFFFFFF).toString(16).padStart(8, '0').toUpperCase()