mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 10:34:06 +09:00
PNG -> TGA
Former-commit-id: 394d3af24b5f1a125c40197a09f47867cc6fc566 Former-commit-id: 5428b1d2d7370b5a912851d5f5aa9f6b036f64f5
This commit is contained in:
@@ -86,9 +86,9 @@ open class SimpleTextTerminal(
|
||||
|
||||
open protected val fontRef =
|
||||
"./assets/graphics/fonts/${
|
||||
if (hires) "milky.png"
|
||||
else if (phosphor == GREEN || phosphor == AMBER) "MDA.png"
|
||||
else "milkymda.png"
|
||||
if (hires) "milky.tga"
|
||||
else if (phosphor == GREEN || phosphor == AMBER) "MDA.tga"
|
||||
else "milkymda.tga"
|
||||
}"
|
||||
open protected val fontImg = Image(fontRef)
|
||||
open val fontW = fontImg.width / 16
|
||||
|
||||
@@ -192,7 +192,7 @@ class TeletypeTerminal : Teletype {
|
||||
private val mappingTable = HashMap<Int, Int>()
|
||||
|
||||
init {
|
||||
fontSheet = SpriteSheet("./assets/graphics/fonts/teletype_9x12.png", W, H)
|
||||
fontSheet = SpriteSheet("./assets/graphics/fonts/teletype_9x12.tga", W, H)
|
||||
chars.forEachIndexed { i, c -> mappingTable[c.toInt()] = i }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user