Half-implemented titan turret
|
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 281 B |
|
Before Width: | Height: | Size: 541 B After Width: | Height: | Size: 514 B |
BIN
core/assets-raw/sprites/blocks/titancannon-icon.png
Normal file
|
After Width: | Height: | Size: 250 B |
BIN
core/assets-raw/sprites/blocks/titancannon.png
Normal file
|
After Width: | Height: | Size: 603 B |
BIN
core/assets-raw/sprites/mechs/player.png
Normal file
|
After Width: | Height: | Size: 272 B |
|
Before Width: | Height: | Size: 265 B |
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 45 KiB |
@@ -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[]",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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)),
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||