top of page

3/10/20 - Weapons and adjusting climbing

Capture.JPG

I created a base class for the weapons while getting to experiment with inheritance, which surprisingly, went very well. The base class was created because each weapon function very similar to one another for example, each weapon inherits a method that sets the weapon's position to the mouse cursor until it is 2 units away from the player. The problem with this method is that the player needs to keep the mouse close to the player at all time otherwise the weapon will be stuck in place until the mouse is back in range of the player.

 

In addition, I worked on the colliders for the shield and dagger so that the dagger can detect enemies. This is done by the dagger detecting objects with their tag set to enemy. I also spent some time working on the player's climbing mechanics to make climbing ladders smoother.

bottom of page