mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-10-06 21:07:25 +03:00
Light RGB clamp + Arc update
This commit is contained in:
parent
cc221d669a
commit
ca6723e696
@ -70,7 +70,7 @@ public class EnergyFieldAbility extends Ability{
|
||||
|
||||
for(int i = 0; i < sectors; i++){
|
||||
float rot = unit.rotation + i * 360f/sectors - Time.time * rotateSpeed;
|
||||
Lines.swirl(rx, ry, orbRadius + 3f, sectorRad, rot);
|
||||
Lines.arc(rx, ry, orbRadius + 3f, sectorRad, rot);
|
||||
}
|
||||
|
||||
Lines.stroke(Lines.getStroke() * curStroke);
|
||||
@ -78,7 +78,7 @@ public class EnergyFieldAbility extends Ability{
|
||||
if(curStroke > 0){
|
||||
for(int i = 0; i < sectors; i++){
|
||||
float rot = unit.rotation + i * 360f/sectors + Time.time * rotateSpeed;
|
||||
Lines.swirl(rx, ry, range, sectorRad, rot);
|
||||
Lines.arc(rx, ry, range, sectorRad, rot);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ public class LightBlock extends Block{
|
||||
@Override
|
||||
public void control(LAccess type, double p1, double p2, double p3, double p4){
|
||||
if(type == LAccess.color){
|
||||
color = Color.rgba8888((float)p1, (float)p2, (float)p3, 1f);
|
||||
color = Color.rgba8888(Mathf.clamp((float)p1), Mathf.clamp((float)p2), Mathf.clamp((float)p3), 1f);
|
||||
}
|
||||
|
||||
super.control(type, p1, p2, p3, p4);
|
||||
|
@ -24,4 +24,4 @@ android.useAndroidX=true
|
||||
#used for slow jitpack builds; TODO see if this actually works
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
archash=0370ef92e5
|
||||
archash=680252597e
|
||||
|
Loading…
Reference in New Issue
Block a user