DesktopLauncher.kt 530 Bytes
Newer Older
1
package se.battlegoo.battlegoose.desktop
Ulrik Røsby's avatar
Ulrik Røsby committed
2
3

import com.badlogic.gdx.backends.lwjgl.LwjglApplication
Jørgen Syvertsen's avatar
Jørgen Syvertsen committed
4
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration
5
import se.battlegoo.battlegoose.Game
Jørgen Syvertsen's avatar
Jørgen Syvertsen committed
6
import kotlin.jvm.JvmStatic
Ulrik Røsby's avatar
Ulrik Røsby committed
7
8
9
10
11
12

object DesktopLauncher {
    @JvmStatic
    fun main(arg: Array<String>) {
        val config = LwjglApplicationConfiguration()
        LwjglApplication(Game(), config)
13
14
        config.width = Game.WIDTH.toInt()
        config.height = Game.HEIGHT.toInt()
15
        config.title = Game.TITLE
Ulrik Røsby's avatar
Ulrik Røsby committed
16
    }
17
}