generated from Anuken/MindustryJavaModTemplate
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c3e37f
commit 9517404
Showing
85 changed files
with
502 additions
and
191 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed
BIN
-432 Bytes
assets/sprites/units/weapons/Machine Guns/machine-gun-medium-1-red-r.png
Binary file not shown.
Binary file removed
BIN
-277 Bytes
assets/sprites/units/weapons/Machine Guns/machine-gun-medium-purple-heat.png
Binary file not shown.
Binary file removed
BIN
-387 Bytes
assets/sprites/units/weapons/Machine Guns/machine-gun-medium-single-red-heat.png
Binary file not shown.
Binary file removed
BIN
-1.1 KB
assets/sprites/units/weapons/Machine Guns/machine-gun-medium-single-red.png
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file removed
BIN
-2.44 KB
assets/sprites/units/weapons/weaponIcon/artillery-large-purple-icon.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package UAW.audiovisual; | ||
|
||
import arc.assets.Loadable; | ||
|
||
import static UAW.Vars.modName; | ||
|
||
@SuppressWarnings("SpellCheckingInspection") | ||
public class Assets implements Loadable { | ||
|
||
// Weapon - Point Defense - PD | ||
public static final String U_WP_pointdefense_01_red = modName + "U_WP_pointdefense_01_red"; | ||
public static final String U_WP_pointdefense_02_red = modName + "U_WP_pointdefense_02_red"; | ||
public static final String U_WP_pointdefense_01_purple = modName + "U_WP_pointdefense_01_purple"; | ||
|
||
// Weapon - Artillery - ART / LNCH | ||
public static final String U_WP_artillery_S_01_red = modName + "U_WP_artillery_S_01_red"; | ||
public static final String U_WP_artillery_S_02_red = modName + "U_WP_artillery_S_02_red"; | ||
public static final String U_WP_artillery_S_02_purple = modName + "U_WP_artillery_S_01_purple"; | ||
|
||
public static final String U_WP_artillery_L_01_purple = modName + "U_WP_artillery_L_01_purple"; | ||
|
||
// Weapon - Machine Gun - MG | ||
public static final String U_WP_machinegun_S_01_red = modName + "U_WP_machinegun_S_01_red"; | ||
public static final String U_WP_machinegun_S_01_purple = modName + "U_WP_machinegun_S_01_purple"; | ||
|
||
public static final String U_WP_machinegun_M_01_red = modName + "U_WP_machinegun_M_01_red"; | ||
public static final String U_WP_machinegun_M_02_red = modName + "U_WP_machinegun_M_02_red"; | ||
public static final String U_WP_machinegun_M_02_cryo = modName + "U_WP_machinegun_M_02_cryo"; | ||
public static final String U_WP_machinegun_M_01_purple = modName + "U_WP_machinegun_M_01_purple"; | ||
|
||
// Weapon - Missile - MSL | ||
public static final String U_WP_missile_S_01_red = modName + "U_WP_missile_S_01_red"; | ||
public static final String U_WP_missile_S_02_red = modName + "U_WP_missile_S_02_red"; | ||
|
||
public static final String U_WP_missile_M_01_red = modName + "U_WP_missile_M_01_red"; | ||
public static final String U_WP_missile_M_02_red = modName + "U_WP_missile_M_02_red"; | ||
public static final String U_WP_missile_M_03_red = modName + "U_WP_missile_M_03_red"; | ||
public static final String U_WP_missile_M_03_cryo = modName + "U_WP_missile_M_03_cryo"; | ||
|
||
public static final String U_WP_missile_L_01_purple = modName + "U_WP_missile_L_01_purple"; | ||
public static final String U_WP_missile_L_01_red = modName + "U_WP_missile_L_01_red"; | ||
|
||
public static final String U_WP_crsmissile_M_01_red = modName + "U_WP_crsmissile_M_01_red"; | ||
public static final String U_WP_crsmissile_M_02_red = modName + "U_WP_crsmissile_M_02_red"; | ||
public static final String U_WP_crsmissile_M_03_red = modName + "U_WP_crsmissile_M_03_purple"; | ||
public static final String U_WP_crsmissile_M_03D_phlog = modName + "U_WP_crsmissile_M_03D_phlog"; | ||
|
||
public static final String U_WP_crsmissile_L_01_phlog = modName + "U_WP_crsmissile_L_01_phlog"; | ||
|
||
// Cruise Missile Type | ||
public static final String U_MSL_crsmissile_S_01_red = modName + "U_MSL_crsmissile_S_01_red"; | ||
public static final String U_MSL_crsmissile_S_01_cryo = modName + "U_MSL_crsmissile_S_01_cryo"; | ||
|
||
public static final String U_MSL_crsmissile_M_01_red = modName + "U_MSL_crsmissile_M_01_red"; | ||
public static final String U_MSL_crsmissile_M_01_cryo = modName + "U_MSL_crsmissile_M_01_cryo"; | ||
public static final String U_MSL_crsmissile_M_01_phlog = modName + "U_MSL_crsmissile_M_01_phlog"; | ||
|
||
public static final String U_MSL_crsmissile_L_01_phlog = modName + "U_MSL_crsmissile_L_01_phlog"; | ||
public static final String U_MSL_crsmissile_L_01h_phlog = modName + "U_MSL_crsmissile_L_01h_phlog"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package UAW.audiovisual.effects; | ||
|
||
import UAW.audiovisual.UAWPal; | ||
import arc.graphics.Color; | ||
import arc.graphics.g2d.*; | ||
import arc.util.Tmp; | ||
import mindustry.entities.Effect; | ||
import mindustry.graphics.*; | ||
|
||
import static arc.graphics.g2d.Draw.color; | ||
import static arc.graphics.g2d.Lines.stroke; | ||
|
||
public class CrossbombEffect extends Effect { | ||
public Color color = UAWPal.phlogistonFront.cpy(), bottomColor = UAWPal.phlogistonBack; | ||
public float waveSize = 65, waveSizeBase = 4f; | ||
public float waveStroke = 2; | ||
|
||
public int crossCount = 4; | ||
public float crossWidth = 6f, crossLength = 100f; | ||
public float crossRotOffset = 0; | ||
|
||
@Override | ||
public void render(EffectContainer e) { | ||
|
||
color(color); | ||
stroke(e.fout() * waveStroke); | ||
float circleRad = waveSizeBase + e.finpow() * waveSize; | ||
Lines.circle(e.x, e.y, circleRad); | ||
|
||
color(color); | ||
float crossRot = 360f / crossCount; | ||
for (int i = 0; i < crossCount; i++) { | ||
Drawf.tri(e.x, e.y, crossWidth, crossLength * e.fout(), i * crossRot + crossRotOffset); | ||
} | ||
|
||
color(color.cpy().lerp(Color.white, 0.5f)); | ||
for (int i = 0; i < crossCount; i++) { | ||
Drawf.tri(e.x, e.y, crossWidth * 0.5f, crossLength * 0.35f * e.fout(), i * crossRot + crossRotOffset); | ||
} | ||
|
||
Drawf.light(e.x, e.y, circleRad * 1.6f, color, e.fout()); | ||
|
||
float lightcirc = waveSizeBase + e.finpow() * waveSize; | ||
Draw.z(Layer.debris); | ||
Fill.light(e.x, e.y, Lines.circleVertices(lightcirc / 2), lightcirc, Color.white.cpy().a(0f), Tmp.c4.set(bottomColor).cpy().a(e.fout())); | ||
Draw.reset(); | ||
Drawf.light(e.x, e.y, lightcirc * 1.6f, bottomColor.cpy(), e.fout()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package UAW.audiovisual.effects; | ||
|
||
import arc.graphics.Color; | ||
import arc.graphics.g2d.*; | ||
import arc.math.Mathf; | ||
import mindustry.entities.Effect; | ||
import mindustry.graphics.*; | ||
|
||
import static arc.graphics.g2d.Draw.color; | ||
import static arc.graphics.g2d.Lines.*; | ||
import static arc.math.Angles.randLenVectors; | ||
|
||
public class ExplodeEffect extends Effect { | ||
public Color waveColor = Pal.missileYellow, smokeColor = Color.gray, sparkColor = Pal.missileYellowBack; | ||
public float waveLife = 6f, waveStroke = 3f, waveRad = 15f, waveRadBase = 2f; | ||
public float sparkStroke = 1f, sparkRad = 23f, sparkLen = 3f; | ||
public float smokeLife = 6f, smokeSize = 4f, smokeSizeBase = 0.25f, smokeRad = 23f; | ||
public int smokes = 5, sparks = 4; | ||
|
||
@Override | ||
public void init() { | ||
super.init(); | ||
clip = waveRad * 1.5f; | ||
lifetime = Math.max(waveLife, smokeLife) * 1.5f; | ||
} | ||
|
||
@Override | ||
public void render(EffectContainer e) { | ||
color(waveColor); | ||
|
||
e.scaled(waveLife, i -> { | ||
stroke(waveStroke * i.fout()); | ||
Lines.circle(e.x, e.y, waveRadBase + i.fin() * waveRad); | ||
}); | ||
|
||
color(smokeColor); | ||
|
||
if (smokeSize > 0) { | ||
e.scaled(smokeLife, s -> { | ||
randLenVectors(e.id, smokes, 2f + smokeRad * s.finpow(), (x, y) -> { | ||
Fill.circle(e.x + x, e.y + y, s.fout() * smokeSize + smokeSizeBase); | ||
}); | ||
}); | ||
} | ||
|
||
color(sparkColor); | ||
stroke(e.fout() * sparkStroke); | ||
|
||
randLenVectors(e.id + 1, sparks, 1f + sparkRad * e.finpow(), (x, y) -> { | ||
lineAngle(e.x + x, e.y + y, Mathf.angle(x, y), 1f + e.fout() * sparkLen); | ||
Drawf.light(e.x + x, e.y + y, e.fout() * sparkLen * 4f, sparkColor, 0.7f); | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package UAW.audiovisual.effects; | ||
|
||
import arc.graphics.Color; | ||
import arc.graphics.g2d.*; | ||
import arc.math.*; | ||
import arc.util.Tmp; | ||
import mindustry.entities.Effect; | ||
import mindustry.graphics.*; | ||
|
||
import static arc.graphics.g2d.Draw.color; | ||
import static arc.graphics.g2d.Lines.stroke; | ||
|
||
public class ScatheExplosionEffect extends Effect { | ||
public static final Rand rand = new Rand(); | ||
|
||
public Color color = Pal.missileYellow, color1 = Pal.missileYellowBack; | ||
public float size = 60, life = 60f; | ||
public float strokeMin = 0.5f, stroke = 5f; | ||
public float slashAmount = -1, slashWidth = 40f, slashLength = 30f; | ||
|
||
@Override | ||
public void init() { | ||
super.init(); | ||
lifetime = life; | ||
clip = size * 1.5f; | ||
} | ||
|
||
@Override | ||
public void render(EffectContainer e) { | ||
explosion(e); | ||
light(e); | ||
} | ||
|
||
public void explosion(EffectContainer e) { | ||
color(color); | ||
stroke(strokeMin + e.fout() * stroke); | ||
float circleRad = 6f + e.finpow() * size; | ||
Lines.circle(e.x, e.y, circleRad); | ||
|
||
rand.setSeed(e.id); | ||
for (int i = 0; i < (slashAmount > 0 ? slashAmount : ((int) (size * 0.26f))); i++) { | ||
float angle = rand.random(360f); | ||
float lenRand = rand.random(0.5f, 1f); | ||
Tmp.v1.trns(angle, circleRad); | ||
|
||
for (int s : Mathf.signs) { | ||
Drawf.tri(e.x + Tmp.v1.x, e.y + Tmp.v1.y, e.foutpow() * slashWidth, e.fout() * slashLength * lenRand + 6f, angle + 90f + s * 90f); | ||
} | ||
} | ||
} | ||
|
||
public void light(EffectContainer e) { | ||
float circleRad = 6f + e.finpow() * size; | ||
Draw.z(Layer.debris); | ||
Fill.light(e.x, e.y, Lines.circleVertices(circleRad / 2), circleRad, Color.white.cpy().a(0f), Tmp.c4.set(color).a(e.fout())); | ||
Draw.reset(); | ||
Drawf.light(e.x, e.y, circleRad * 1.6f, color1, e.fout()); | ||
} | ||
} |
Oops, something went wrong.