Committing notes on how to handle tree tiles

This commit is contained in:
Collin Smith 2019-03-02 02:04:55 -08:00
parent 42c6073261
commit a656ae4182

View File

@ -619,6 +619,10 @@ public class MapRenderer {
//break; //break;
case Orientation.SOUTH_CORNER_WALL: case Orientation.SOUTH_CORNER_WALL:
case Orientation.PILLAR: case Orientation.PILLAR:
/**
* TODO: pseudocode: if TREE, assume only 1 tile in all 25 subtiles is unwalkable and use
* that position as the tile position and render it as if its an entity
*/
case Orientation.TREE: // TODO: should be in-line rendered with entities case Orientation.TREE: // TODO: should be in-line rendered with entities
batch.draw(tile.tile.texture, px, py); batch.draw(tile.tile.texture, px, py);
if (tile.tile.orientation == Orientation.RIGHT_NORTH_CORNER_WALL) { if (tile.tile.orientation == Orientation.RIGHT_NORTH_CORNER_WALL) {