Improved lightning effects
This commit is contained in:
@@ -14,7 +14,7 @@ public class AmmoTypes implements ContentList{
|
|||||||
bulletDenseBig, bulletPyratiteBig, bulletThoriumBig,
|
bulletDenseBig, bulletPyratiteBig, bulletThoriumBig,
|
||||||
shock, bombExplosive, bombIncendiary, bombOil, shellCarbide, flamerThermite, weaponMissile, weaponMissileSwarm, bulletMech,
|
shock, bombExplosive, bombIncendiary, bombOil, shellCarbide, flamerThermite, weaponMissile, weaponMissileSwarm, bulletMech,
|
||||||
healBlaster, bulletGlaive,
|
healBlaster, bulletGlaive,
|
||||||
flakExplosive, flakPlastic, flakSurge,
|
/*flakCopper, */flakExplosive, flakPlastic, flakSurge,
|
||||||
missileExplosive, missileIncindiary, missileSurge,
|
missileExplosive, missileIncindiary, missileSurge,
|
||||||
artilleryDense, artilleryPlastic, artilleryHoming, artilleryIncindiary, artilleryExplosive, unitArtillery,
|
artilleryDense, artilleryPlastic, artilleryHoming, artilleryIncindiary, artilleryExplosive, unitArtillery,
|
||||||
basicFlame, lancerLaser, lightning, meltdownLaser, burstLaser,
|
basicFlame, lancerLaser, lightning, meltdownLaser, burstLaser,
|
||||||
|
|||||||
@@ -39,6 +39,17 @@ public class TurretBlocks extends BlockList implements ContentList{
|
|||||||
shootCone = 10f;
|
shootCone = 10f;
|
||||||
health = 120;
|
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"){
|
scorch = new LiquidTurret("scorch"){
|
||||||
protected TextureRegion shootRegion;
|
protected TextureRegion shootRegion;
|
||||||
@@ -105,7 +116,7 @@ public class TurretBlocks extends BlockList implements ContentList{
|
|||||||
|
|
||||||
arc = new PowerTurret("arc"){{
|
arc = new PowerTurret("arc"){{
|
||||||
shootType = AmmoTypes.arc;
|
shootType = AmmoTypes.arc;
|
||||||
reload = 40f;
|
reload = 34f;
|
||||||
shootShake = 1f;
|
shootShake = 1f;
|
||||||
powerUsed = 5f;
|
powerUsed = 5f;
|
||||||
powerCapacity = 30f;
|
powerCapacity = 30f;
|
||||||
|
|||||||
@@ -306,7 +306,7 @@ public class TurretBullets extends BulletList implements ContentList{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void init(Bullet b){
|
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);
|
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(){
|
public Map getMap(){
|
||||||
return currentMap;
|
return currentMap;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -228,8 +228,17 @@ public class Lightning extends SolidEntity implements Poolable, DrawTrait, SyncT
|
|||||||
Draw.color(color, Color.WHITE, fin());
|
Draw.color(color, Color.WHITE, fin());
|
||||||
for(int i = 0; i < lines.size; i++){
|
for(int i = 0; i < lines.size; i++){
|
||||||
Vector2 v = lines.get(i);
|
Vector2 v = lines.get(i);
|
||||||
|
|
||||||
Lines.stroke(fout() * 3f * (1.5f - (float) i / lines.size));
|
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.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;
|
lx = v.x;
|
||||||
ly = v.y;
|
ly = v.y;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user