Overdrive system

This commit is contained in:
Anuken
2018-09-07 17:16:38 -04:00
parent e4ce115abf
commit d046591512
26 changed files with 136 additions and 85 deletions
@@ -19,7 +19,7 @@ public class BlockFx extends FxList implements ContentList{
public static Effect reactorsmoke, nuclearsmoke, nuclearcloud, redgeneratespark, generatespark, fuelburn, plasticburn,
pulverize, pulverizeRed, pulverizeRedder, pulverizeSmall, pulverizeMedium, producesmoke, smeltsmoke, formsmoke, blastsmoke,
lava, dooropen, doorclose, dooropenlarge, doorcloselarge, purify, purifyoil, purifystone, generate, mine, mineBig, mineHuge,
smelt, teleportActivate, teleport, teleportOut, ripple, bubble, commandSend, healBlock, healBlockFull, healWaveMend, overdriveWave;
smelt, teleportActivate, teleport, teleportOut, ripple, bubble, commandSend, healBlock, healBlockFull, healWaveMend, overdriveWave, overdriveBlockFull;
@Override
public void load(){
@@ -312,5 +312,12 @@ public class BlockFx extends FxList implements ContentList{
Fill.square(e.x, e.y, e.rotation * tilesize);
Draw.color();
});
overdriveBlockFull = new Effect(60, e -> {
Draw.color(e.color);
Draw.alpha(e.fslope() * 0.5f);
Fill.square(e.x, e.y, e.rotation * tilesize);
Draw.color();
});
}
}