7 Day Roguelike 2021: Weapons

Tonight I added weapons. This screenshot shows the game’s arsenal.

weapons

Other than art, most of the work was setting up interactions like displaying a prompt before picking up a new weapon that would replace the weapon in its destination weapon slot.

replace

And here’s how it looks when weapons are equipped with some upgrades that modify their stats.

equipped

One such weapon is the railgun, which has high PEN and is guaranteed to breach the hull.

railgun-before

Firing the railgun to the right to show off the lighting and destructible terrain.

railgun-during

Immediately after firing, most of the ship is now exposed to vacuum and decompresses. Open doors in the path of the projectile were not impacted.

railgun-after

Moving closer to inspect the damage. Some credits were sucked into the void.

railgun-damage