mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-16 21:44:05 +09:00
font bug sorta fixed, new splash: warning health and safety
Former-commit-id: f79503873f57e781480fa742ed1a058becb6c7a1 Former-commit-id: daeeed816b339958786746c3717670c724676a44
This commit is contained in:
@@ -73,9 +73,13 @@ constructor(gamename: String) : StateBasedGame(gamename) {
|
||||
}
|
||||
}
|
||||
|
||||
gc.graphics.clear() // clean up any 'dust' in the buffer
|
||||
|
||||
ingame = StateInGame()
|
||||
//addState(ingame)
|
||||
addState(StateMonitorCheck())
|
||||
//addState(StateMonitorCheck())
|
||||
//addState(StateFontTester())
|
||||
addState(StateSplash())
|
||||
}
|
||||
|
||||
companion object {
|
||||
@@ -103,8 +107,8 @@ constructor(gamename: String) : StateBasedGame(gamename) {
|
||||
|
||||
lateinit var appgc: AppGameContainer
|
||||
|
||||
val WIDTH = 1072
|
||||
val HEIGHT = 742 // IMAX ratio
|
||||
var WIDTH = 1072
|
||||
var HEIGHT = 742 // IMAX ratio
|
||||
var VSYNC = true
|
||||
val VSYNC_TRIGGER_THRESHOLD = 56
|
||||
|
||||
@@ -141,6 +145,7 @@ constructor(gamename: String) : StateBasedGame(gamename) {
|
||||
// 0x0 - 0xF: Game-related
|
||||
// 0x10 - 0x1F: Config
|
||||
// 0x100 and onward: unit tests for dev
|
||||
val SCENE_ID_SPLASH = 0x0
|
||||
val SCENE_ID_HOME = 0x1
|
||||
val SCENE_ID_GAME = 0x3
|
||||
val SCENE_ID_CONFIG_CALIBRATE = 0x11
|
||||
@@ -362,7 +367,7 @@ fun main(args: Array<String>) = Terrarum.main(args)
|
||||
|
||||
fun setBlendMul() {
|
||||
GL11.glEnable(GL11.GL_BLEND)
|
||||
GL11.glColorMask(true, true, true, true)
|
||||
GL11.glColorMask(true, true, true, false)
|
||||
GL11.glBlendFunc(GL11.GL_DST_COLOR, GL11.GL_ONE_MINUS_SRC_ALPHA)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user