mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-12 08:48:09 +07:00
Cleanup
This commit is contained in:
@ -158,16 +158,14 @@ public class PowerNode extends PowerBlock{
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void setupColor(float satisfaction){
|
protected void setupColor(float satisfaction){
|
||||||
float fract = 1f - satisfaction;
|
Draw.color(laserColor1, laserColor2, (1f - satisfaction) * 0.86f + Mathf.absin(3f, 0.1f));
|
||||||
|
|
||||||
Draw.color(laserColor1, laserColor2, fract * 0.86f + Mathf.absin(3f, 0.1f));
|
|
||||||
Draw.alpha(renderer == null ? 0.5f : renderer.laserOpacity);
|
Draw.alpha(renderer == null ? 0.5f : renderer.laserOpacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void drawLaser(Team team, float x1, float y1, float x2, float y2, int size1, int size2){
|
protected void drawLaser(Team team, float x1, float y1, float x2, float y2, int size1, int size2){
|
||||||
float angle1 = Angles.angle(x1, y1, x2, y2);
|
float angle1 = Angles.angle(x1, y1, x2, y2),
|
||||||
float vx = Mathf.cosDeg(angle1), vy = Mathf.sinDeg(angle1);
|
vx = Mathf.cosDeg(angle1), vy = Mathf.sinDeg(angle1),
|
||||||
float len1 = size1 * tilesize / 2f - 1.5f, len2 = size2 * tilesize / 2f - 1.5f;
|
len1 = size1 * tilesize / 2f - 1.5f, len2 = size2 * tilesize / 2f - 1.5f;
|
||||||
|
|
||||||
Drawf.laser(team, laser, laserEnd, x1 + vx*len1, y1 + vy*len1, x2 - vx*len2, y2 - vy*len2, 0.25f);
|
Drawf.laser(team, laser, laserEnd, x1 + vx*len1, y1 + vy*len1, x2 - vx*len2, y2 - vy*len2, 0.25f);
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=ac5a2026930d5e7cee6596d61276ee7f29aa7801
|
archash=9b130afd1b8b6899c8c39843622842930c8ddcbf
|
||||||
|
Reference in New Issue
Block a user