itch.io is community of indie game creators and players

Devlogs

Player Weapons

Suits of the Abyss
A downloadable game for Windows

Having finished the hand detection it's now time to move on to what the system's main use is for. The weapons. The player has been able to attack their opposition but they've only had been able to use one 'weapon' which is now assigned as the sword and shield. However we want the player to have a multitude of weapons available to them at the beginning of the run based of the starting ace card they chose. Essentially, the suit that the player picks up will determine their weapon for the run. So, if they get the ace card with the suit of hearts then they will go through their run using a sword and shield. Continuing this, if they get the spade they'll use a bow and arrow, diamond will give them twin blades, and clubs will give them, well, a club.

So I needed to start coding these functionalities for the player. I started of with the bow and arrow as I believed it would be the most challenging to have it's base functions done. To accomplish this I used the same basis as the archer enemy by having an arrow get instantiated in front of the player and having the arrow itself shot forward using impulse. With this the basic attack for the bow and arrow was complete. For the secondary attack I just had the arrow shoot at a much faster speed as well as deal higher damage and for the third attack I had the player shoot a volley of arrows.

With all of the basic functionality done (No cool animations just yet) as well as setting up the detection system to give the player the appropriate weapon based on the starting cards suit we are one step closer to a finished product. Next will be giving the player character the animations and weapons in their hand as it's just particle effects that demonstrate attacks as of now. 

Published on 4/19/2024

Author: Gustavo Camacho

Download Suits of the Abyss
Leave a comment