first working wall occlusion (issue #39)

This commit is contained in:
minjaesong
2021-07-29 12:25:56 +09:00
parent 870e165cf6
commit e19187eea9
4 changed files with 50 additions and 8 deletions

View File

@@ -46,6 +46,7 @@ object BlockBase {
}
// return false if the tile is already there
// FIXME doesn't work for WALLs?
if (gameItem.inventoryCategory == GameItem.Category.BLOCK &&
gameItem.dynamicID == ingame.world.getTileFromTerrain(mouseTile.x, mouseTile.y) ||
gameItem.inventoryCategory == GameItem.Category.WALL &&