PNG -> TGA

Former-commit-id: 394d3af24b5f1a125c40197a09f47867cc6fc566
Former-commit-id: 5428b1d2d7370b5a912851d5f5aa9f6b036f64f5
This commit is contained in:
Song Minjae
2017-01-16 18:24:19 +09:00
parent 1f1e2f6899
commit e9c7ef4930
187 changed files with 223 additions and 149 deletions

View File

@@ -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

View File

@@ -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 }
}