test commit please ignore

This commit is contained in:
minjaesong
2020-09-28 09:27:34 +09:00
parent 8929093432
commit 634de74d51

View File

@@ -1,5 +1,6 @@
package net.torvald.terrarum.blockstats package net.torvald.terrarum.blockstats
import com.badlogic.gdx.graphics.Color
import com.badlogic.gdx.graphics.Pixmap import com.badlogic.gdx.graphics.Pixmap
import com.badlogic.gdx.graphics.Texture import com.badlogic.gdx.graphics.Texture
import com.badlogic.gdx.utils.Disposable import com.badlogic.gdx.utils.Disposable
@@ -139,11 +140,11 @@ object MinimapComposer : Disposable {
val colTerr = CreateTileAtlas.terrainTileColourMap.get(tileTerr % 16, tileTerr / 16) val colTerr = CreateTileAtlas.terrainTileColourMap.get(tileTerr % 16, tileTerr / 16)
val colWall = CreateTileAtlas.terrainTileColourMap.get(wallTerr % 16, wallTerr / 16).mul(BlocksDrawer.wallOverlayColour) val colWall = CreateTileAtlas.terrainTileColourMap.get(wallTerr % 16, wallTerr / 16).mul(BlocksDrawer.wallOverlayColour)
if (colTerr.a < 1f) { val outCol = if (colTerr.a > 0.1f) colTerr else colWall
pixmap.setColor(colWall)
pixmap.drawPixel(x - topLeftX, y - topLeftY) pixmap.blending = Pixmap.Blending.None
} pixmap.setColor(outCol)
pixmap.setColor(colTerr) //pixmap.setColor(Color.CORAL)
pixmap.drawPixel(x - topLeftX, y - topLeftY) pixmap.drawPixel(x - topLeftX, y - topLeftY)
} }
} }