Skip to content

Commit

Permalink
More visual improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Slotterleet committed May 25, 2024
1 parent dcf5f54 commit 775ea93
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
Binary file added res/sprites/teams/team-corru-upscale.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 0 additions & 2 deletions src/fos/ai/FOSPathfinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ public FOSPathfinder() {
wheight = world.height();
threadList = new Seq<>();
mainList = new Seq<>();
//TODO: death map save
//FOSVars.deathMap = new short[world.width() * world.height()];
clearCache();

for(int i = 0; i < tiles.length; i++){
Expand Down
3 changes: 1 addition & 2 deletions src/fos/content/FOSBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -1418,11 +1418,10 @@ diamond, new MissileBulletType(5f, 5){{
powerProduction = 0.8f;
requirements(Category.power, with(tin, 40));
researchCost = with(tin, 160);
rotateSpeed = 1.8f;
squareSprite = false;
drawer = new DrawMulti(
new DrawDefault(),
new DrawRegion("-rotator", 15f, true)
new DrawRegion("-rotator", 4f, true)
);
}};
steamTurbine = new ConsumeGenerator("steam-turbine"){
Expand Down
11 changes: 11 additions & 0 deletions src/fos/content/FOSFx.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import arc.graphics.g2d.*;
import arc.math.geom.*;
import arc.util.Tmp;
import fos.graphics.FOSPal;
import fos.type.bullets.OhioBeamBulletType;
import mindustry.entities.Effect;
import mindustry.gen.*;
Expand Down Expand Up @@ -186,11 +187,21 @@ public class FOSFx {

Drawf.light(e.x, e.y, 20f * e.fslope(), Pal.lightFlame, 0.5f);
}),

fireSmokeLong = new Effect(300f, e -> {
color(Color.gray);

randLenVectors(e.id, 1, 2f + e.fin() * 7f, (x, y) -> {
Fill.circle(e.x + x, e.y + y, 0.2f + e.fslope() * 1.5f);
});
}),

corruLogo = new Effect(50f, e -> {
Draw.color(FOSPal.hacked);
Draw.alpha(e.fout());

Draw.rect(Core.atlas.find("fos-team-corru-upscale"), e.x, e.y, 64 * (1 + e.fin()), 64 * (1 + e.fin()));

Draw.reset();
});
}
2 changes: 2 additions & 0 deletions src/fos/core/FOSMod.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public FOSMod() {
// remove landing cutscene on Awakening
if (state.rules.sector != null && state.rules.sector == FOSSectors.awakening.sector) {
Reflect.set(renderer, "landTime", 0f);
var core = FOSTeams.corru.core();
Time.run(160f, () -> FOSFx.corruLogo.at(core.x, core.y));
}
});

Expand Down
3 changes: 1 addition & 2 deletions src/fos/type/blocks/power/WindTurbine.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

public class WindTurbine extends PowerGenerator {
public float displayEfficiencyScale = 1f;
public float rotateSpeed = 1f;
public Attribute attr = FOSAttributes.windPower;

public WindTurbine(String name) {
Expand All @@ -36,7 +35,7 @@ public void drawPlace(int x, int y, int rotation, boolean valid) {
if (t != null && t.solid()) {
a += 1 / (size * 2f);
Draw.z(Layer.blockOver);
Drawf.square((x + edge.x) * 8, (y + edge.y) * 8, 4f, Mathf.degRad * 45, Color.valueOf("ff0000"));
Drawf.square((x + edge.x) * 8, (y + edge.y) * 8, 4f, Mathf.PI / 8, Color.valueOf("ff0000"));
}
}

Expand Down

0 comments on commit 775ea93

Please sign in to comment.