Projector visualization
This commit is contained in:
@@ -24,7 +24,6 @@ public class UnitTypes implements ContentList{
|
|||||||
public static UnitType alpha, delta, tau, omega, dart, javelin, trident, glaive;
|
public static UnitType alpha, delta, tau, omega, dart, javelin, trident, glaive;
|
||||||
public static UnitType starter;
|
public static UnitType starter;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,14 @@ public class Drawf{
|
|||||||
renderer.lights.line(x, y, x2, y2, stroke, tint, alpha);
|
renderer.lights.line(x, y, x2, y2, stroke, tint, alpha);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void selected(Tilec tile, Color color){
|
||||||
|
selected(tile.tile(), color);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void selected(Tile tile, Color color){
|
||||||
|
selected(tile.x, tile.y, tile.block(), color);
|
||||||
|
}
|
||||||
|
|
||||||
public static void selected(int x, int y, Block block, Color color){
|
public static void selected(int x, int y, Block block, Color color){
|
||||||
Draw.color(color);
|
Draw.color(color);
|
||||||
for(int i = 0; i < 4; i++){
|
for(int i = 0; i < 4; i++){
|
||||||
|
|||||||
@@ -95,6 +95,8 @@ public class MendProjector extends Block{
|
|||||||
public void drawSelect(){
|
public void drawSelect(){
|
||||||
float realRange = range + phaseHeat * phaseRangeBoost;
|
float realRange = range + phaseHeat * phaseRangeBoost;
|
||||||
|
|
||||||
|
indexer.eachBlock(this, realRange, other -> true, other -> Drawf.selected(other, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f))));
|
||||||
|
|
||||||
Drawf.dashCircle(x, y, realRange, baseColor);
|
Drawf.dashCircle(x, y, realRange, baseColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,6 +99,8 @@ public class OverdriveProjector extends Block{
|
|||||||
public void drawSelect(){
|
public void drawSelect(){
|
||||||
float realRange = range + phaseHeat * phaseRangeBoost;
|
float realRange = range + phaseHeat * phaseRangeBoost;
|
||||||
|
|
||||||
|
indexer.eachBlock(this, realRange, other -> true, other -> Drawf.selected(other, Tmp.c1.set(baseColor).a(Mathf.absin(4f, 1f))));
|
||||||
|
|
||||||
Drawf.dashCircle(x, y, realRange, baseColor);
|
Drawf.dashCircle(x, y, realRange, baseColor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=b5b739a5e4a4eef3fee045944e220f40de0f6f85
|
archash=26861a21f52e7efed4469c604c40e9ad5b54001e
|
||||||
|
|||||||
Reference in New Issue
Block a user