rendering scheme of the world changed, fluids draw as intended

But my idea wasn't very stellar, *sigh*
This commit is contained in:
Minjae Song
2018-12-22 02:08:08 +09:00
parent 92d3c578a9
commit e5ea32ba56
5 changed files with 139 additions and 158 deletions

View File

@@ -20,6 +20,9 @@ object Fluid {
val fluidRange = 1..2 // MANUAL UPDATE
/**
* Returns tile number in the main tile atlas. Water being 4095.
*/
fun getFluidTileFrom(type: FluidType) = GameWorld.TILES_SUPPORTED - type.abs()
fun isThisTileFluid(tileid: Int) = tileid in fluidTilesRange
}