mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
Improved lightning effects
This commit is contained in:
parent
4792828da1
commit
b29d81bf0f
@ -14,7 +14,7 @@ public class AmmoTypes implements ContentList{
|
||||
bulletDenseBig, bulletPyratiteBig, bulletThoriumBig,
|
||||
shock, bombExplosive, bombIncendiary, bombOil, shellCarbide, flamerThermite, weaponMissile, weaponMissileSwarm, bulletMech,
|
||||
healBlaster, bulletGlaive,
|
||||
flakExplosive, flakPlastic, flakSurge,
|
||||
/*flakCopper, */flakExplosive, flakPlastic, flakSurge,
|
||||
missileExplosive, missileIncindiary, missileSurge,
|
||||
artilleryDense, artilleryPlastic, artilleryHoming, artilleryIncindiary, artilleryExplosive, unitArtillery,
|
||||
basicFlame, lancerLaser, lightning, meltdownLaser, burstLaser,
|
||||
|
@ -39,6 +39,17 @@ public class TurretBlocks extends BlockList implements ContentList{
|
||||
shootCone = 10f;
|
||||
health = 120;
|
||||
}};
|
||||
/*
|
||||
scatter = new BurstTurret("scatter"){{
|
||||
ammoTypes = new AmmoType[]{AmmoTypes.flakCopper};
|
||||
reload = 70f;
|
||||
recoil = 2f;
|
||||
shots = 3;
|
||||
range = 220f;
|
||||
inaccuracy = 2f;
|
||||
shootCone = 40f;
|
||||
health = 120;
|
||||
}};*/
|
||||
|
||||
scorch = new LiquidTurret("scorch"){
|
||||
protected TextureRegion shootRegion;
|
||||
@ -105,7 +116,7 @@ public class TurretBlocks extends BlockList implements ContentList{
|
||||
|
||||
arc = new PowerTurret("arc"){{
|
||||
shootType = AmmoTypes.arc;
|
||||
reload = 40f;
|
||||
reload = 34f;
|
||||
shootShake = 1f;
|
||||
powerUsed = 5f;
|
||||
powerCapacity = 30f;
|
||||
|
@ -306,7 +306,7 @@ public class TurretBullets extends BulletList implements ContentList{
|
||||
|
||||
@Override
|
||||
public void init(Bullet b){
|
||||
Lightning.create(b.getTeam(), hiteffect, Palette.lancerLaser, damage, b.x, b.y, b.angle(), 25);
|
||||
Lightning.create(b.getTeam(), hiteffect, Palette.lancerLaser, damage, b.x, b.y, b.angle(), 28);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -77,11 +77,6 @@ public class World extends Module{
|
||||
return !wallSolid(x, y - 1) || !wallSolid(x, y + 1) || !wallSolid(x - 1, y) || !wallSolid(x + 1, y);
|
||||
}
|
||||
|
||||
public boolean floorBlends(int x, int y, Block block){
|
||||
Tile tile = tile(x, y);
|
||||
return tile == null || tile.floor().id <= block.id;
|
||||
}
|
||||
|
||||
public Map getMap(){
|
||||
return currentMap;
|
||||
}
|
||||
|
@ -228,8 +228,17 @@ public class Lightning extends SolidEntity implements Poolable, DrawTrait, SyncT
|
||||
Draw.color(color, Color.WHITE, fin());
|
||||
for(int i = 0; i < lines.size; i++){
|
||||
Vector2 v = lines.get(i);
|
||||
|
||||
Lines.stroke(fout() * 3f * (1.5f - (float) i / lines.size));
|
||||
|
||||
Lines.stroke(Lines.getStroke() * 4f);
|
||||
Draw.alpha(0.3f);
|
||||
Lines.line(lx, ly, v.x, v.y);
|
||||
|
||||
Lines.stroke(Lines.getStroke()/4f);
|
||||
Draw.alpha(1f);
|
||||
Lines.line(lx, ly, v.x, v.y);
|
||||
|
||||
lx = v.x;
|
||||
ly = v.y;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user