Fog building hiding

This commit is contained in:
Anuken
2022-02-19 20:34:55 -05:00
parent 66a806c304
commit 99b01f3a3c
11 changed files with 90 additions and 17 deletions

View File

@@ -320,7 +320,8 @@ public class FogControl implements CustomChunk{
data.write.clear();
}
circle(data.write, x, y, rad);
//radius is always +1 to keep up with visuals
circle(data.write, x, y, rad + 1);
}
}
dynamicEvents.clear();

View File

@@ -115,6 +115,10 @@ public class Rules{
public ObjectSet<Item> hiddenBuildItems = new ObjectSet<>();
/** HIGHLY UNSTABLE/EXPERIMENTAL. DO NOT USE THIS. */
public boolean fog = false;
/** Color for static, undiscovered fog of war areas. */
public Color staticColor = new Color(0f, 0f, 0f, 1f);
/** Color for discovered but un-monitored fog of war areas. */
public Color dynamicColor = new Color(0f, 0f, 0f, 0.5f);
/** Whether ambient lighting is enabled. */
public boolean lighting = false;
/** Whether enemy lighting is visible.