More experimental changes / Better RTS AI
This commit is contained in:
@@ -175,7 +175,8 @@ public class OverlayRenderer{
|
||||
Draw.color();
|
||||
}else{
|
||||
state.teams.eachEnemyCore(player.team(), core -> {
|
||||
if(core.wasVisible && Core.camera.bounds(Tmp.r1).overlaps(Tmp.r2.setCentered(core.x, core.y, state.rules.enemyCoreBuildRadius * 2f))){
|
||||
//it must be clear that there is a core here.
|
||||
if(/*core.wasVisible && */Core.camera.bounds(Tmp.r1).overlaps(Tmp.r2.setCentered(core.x, core.y, state.rules.enemyCoreBuildRadius * 2f))){
|
||||
Draw.color(Color.darkGray);
|
||||
Lines.circle(core.x, core.y - 2, state.rules.enemyCoreBuildRadius);
|
||||
Draw.color(Pal.accent, core.team.color, 0.5f + Mathf.absin(Time.time, 10f, 0.5f));
|
||||
|
||||
Reference in New Issue
Block a user