This commit is contained in:
Anuken
2020-06-23 16:27:32 -04:00
parent ba78eab30a
commit fc8e1d5b6d
12 changed files with 31 additions and 40 deletions

View File

@@ -169,6 +169,14 @@ public class Weathers implements ContentList{
region = Core.atlas.find("circle-shadow");
}
@Override
public void update(Weatherc state){
for(Unitc unit : Groups.unit){
unit.impulse(force.x * state.intensity(), force.y * state.intensity());
}
}
@Override
public void drawOver(Weatherc state){
rand.setSeed(0);
@@ -179,10 +187,6 @@ public class Weathers implements ContentList{
Draw.tint(color);
float baseAlpha = Draw.getColor().a;
for(Unitc unit : Groups.unit){
unit.impulse(force.x * state.intensity(), force.y * state.intensity());
}
for(int i = 0; i < total; i++){
float scl = rand.random(0.5f, 1f);
float scl2 = rand.random(0.5f, 1f);