7 Day Roguelike 2021: Weapons

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

weapons.png

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.png

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

equipped.png

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

railgun-before.png

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

railgun-during.png

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.png

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

railgun-damage.png