reconfiguring docs and libs

- Targeting Java 10
- Gdx nightly 20181111 (1.9.9)
This commit is contained in:
minjaesong
2018-11-11 20:13:31 +09:00
parent f721ad0db9
commit a2f88ebbf1
27 changed files with 36 additions and 29 deletions

View File

@@ -237,6 +237,7 @@ object Terrarum : Screen {
init {
println("$NAME version ${AppLoader.getVERSION_STRING()}")
println("Java Runtime version ${System.getProperty("java.version")}")
println("LibGDX version ${com.badlogic.gdx.Version.VERSION}")
getDefaultDirectory()

View File

@@ -38,7 +38,7 @@ class UIItemInventoryCatBar(
// set up all the buttons
init {
// place sub UIs: Image Buttons
mainButtons = Array(catArrangement.size, { index ->
mainButtons = Array(catArrangement.size) { index ->
val iconPosX = ((buttonGapSize / 2) + index * (catIcons.tileW + buttonGapSize)).roundInt()
val iconPosY = 0
@@ -51,7 +51,7 @@ class UIItemInventoryCatBar(
posY = posY + iconPosY,
highlightable = true
)
})
}
// side buttons
@@ -65,7 +65,7 @@ class UIItemInventoryCatBar(
println("[UIItemInventoryCatBar] relativeStartX: $relativeStartX")
println("[UIItemInventoryCatBar] posX: $posX")
sideButtons = Array(iconIndex.size, { index ->
sideButtons = Array(iconIndex.size) { index ->
val iconPosX = if (index < 2)
(relativeStartX + sideButtonsGap + (sideButtonsGap + catIcons.tileW) * index).roundInt()
else
@@ -83,7 +83,7 @@ class UIItemInventoryCatBar(
activeCol = if (index == 0 || index == 3) Color(0xfff066_ff.toInt()) else Color(0xffffff7f.toInt()),
highlightable = (index == 0 || index == 3)
)
})
}
}

View File

@@ -46,24 +46,24 @@ internal object BlocksDrawer {
val wallOverlayColour = Color(2f/3f, 2f/3f, 2f/3f, 1f)
val breakAnimSteps = 10
const val breakAnimSteps = 10
val WALL = GameWorld.WALL
val TERRAIN = GameWorld.TERRAIN
val WIRE = GameWorld.WIRE
private val NEARBY_TILE_KEY_UP = 0
private val NEARBY_TILE_KEY_RIGHT = 1
private val NEARBY_TILE_KEY_DOWN = 2
private val NEARBY_TILE_KEY_LEFT = 3
private const val NEARBY_TILE_KEY_UP = 0
private const val NEARBY_TILE_KEY_RIGHT = 1
private const val NEARBY_TILE_KEY_DOWN = 2
private const val NEARBY_TILE_KEY_LEFT = 3
private val NEARBY_TILE_CODE_UP = 1
private val NEARBY_TILE_CODE_RIGHT = 2
private val NEARBY_TILE_CODE_DOWN = 4
private val NEARBY_TILE_CODE_LEFT = 8
private const val NEARBY_TILE_CODE_UP = 1
private const val NEARBY_TILE_CODE_RIGHT = 2
private const val NEARBY_TILE_CODE_DOWN = 4
private const val NEARBY_TILE_CODE_LEFT = 8
private val GZIP_READBUF_SIZE = 8192
private const val GZIP_READBUF_SIZE = 8192
private lateinit var terrainTilesBuffer: Array<IntArray>