Half-implemented titan turret

This commit is contained in:
Anuken
2017-11-10 23:48:23 -05:00
parent 4ffbeacb07
commit ac5351fd14
12 changed files with 218 additions and 189 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 B

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 541 B

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 603 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -53,6 +53,6 @@ public class Vars{
"", "",
"Credits:", "Credits:",
"- SFX made with [YELLOW]bfxr.com[]", "- SFX made with [YELLOW]bfxr.com[]",
"- Music made by [GREEN]RoccoW[]", "- Music made by [GREEN]RoccoW[] / found on [lime]FreeMusicArchive.org[]",
}; };
} }

View File

@@ -42,7 +42,7 @@ public enum Recipe{
teslaturret(weapon, WeaponBlocks.teslaturret, stack(Item.steel, 10), stack(Item.titanium, 15), stack(Item.dirium, 15)), teslaturret(weapon, WeaponBlocks.teslaturret, stack(Item.steel, 10), stack(Item.titanium, 15), stack(Item.dirium, 15)),
plasmaturret(weapon, WeaponBlocks.plasmaturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)), plasmaturret(weapon, WeaponBlocks.plasmaturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)),
chainturret(weapon, WeaponBlocks.chainturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)), chainturret(weapon, WeaponBlocks.chainturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)),
rocketturret(weapon, WeaponBlocks.plasmaturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)), titanturret(weapon, WeaponBlocks.titanturret, stack(Item.steel, 10), stack(Item.titanium, 10), stack(Item.dirium, 15)),
smelter(crafting, ProductionBlocks.smelter, stack(Item.stone, 40), stack(Item.iron, 40)), smelter(crafting, ProductionBlocks.smelter, stack(Item.stone, 40), stack(Item.iron, 40)),
crucible(crafting, ProductionBlocks.crucible, stack(Item.titanium, 40), stack(Item.steel, 40)), crucible(crafting, ProductionBlocks.crucible, stack(Item.titanium, 40), stack(Item.steel, 40)),

View File

@@ -171,9 +171,24 @@ public class WeaponBlocks{
reload = 40f; reload = 40f;
bullet = BulletType.shell; bullet = BulletType.shell;
ammo = Item.coal; ammo = Item.coal;
health = 360; health = 430;
ammoMultiplier = 10; ammoMultiplier = 10;
width = height = 2; width = height = 2;
} }
},
titanturret = new Turret("titancannon"){
{
inaccuracy = 7f;
formalName = "titan cannon";
range = 120f;
reload = 40f;
bullet = BulletType.shell;
ammo = Item.coal;
health = 800;
ammoMultiplier = 10;
width = height = 3;
rotatespeed = 0.08f;
}
}; };
} }

View File

@@ -198,7 +198,7 @@ public class Turret extends Block{
float inac = Mathf.range(inaccuracy); float inac = Mathf.range(inaccuracy);
Angles.translation(entity.rotation + inac, 4f); Angles.translation(entity.rotation + inac, width * Vars.tilesize / 2f);
Bullet out = new Bullet(bullet, tile.entity, Bullet out = new Bullet(bullet, tile.entity,
tile.worldx() + Angles.x(), tile.worldy() + Angles.y(), entity.rotation + inac).add(); tile.worldx() + Angles.x(), tile.worldy() + Angles.y(), entity.rotation + inac).add();