Experimental flow display

This commit is contained in:
Anuken
2020-03-26 17:19:18 -04:00
parent f966489298
commit 152a987c3a
6 changed files with 133 additions and 13 deletions

View File

@@ -454,6 +454,9 @@ public class PlacementFragment extends Fragment{
//setup hovering tile
if(!Core.scene.hasMouse() && topTable.hit(v.x, v.y, false) == null){
hoverTile = world.tileWorld(Core.input.mouseWorld().x, Core.input.mouseWorld().y);
if(hoverTile != null && hoverTile.entity != null){
hoverTile.entity.updateFlow(true);
}
}else{
hoverTile = null;
}