Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bow Attack + Weapon Swap #148

Open
wants to merge 20 commits into
base: main
Choose a base branch
from
Open

Bow Attack + Weapon Swap #148

wants to merge 20 commits into from

Conversation

mnmaita
Copy link
Contributor

@mnmaita mnmaita commented Dec 19, 2024

Fixes #137

  • Added PlayerWeapon plugin that manages swapping between the Sword and the Bow weapons.
  • Added a new keybind (H key) that swaps weapons for the Player.
  • While using the Bow weapon, the Player now shoots arrows when pressing the attack key.
  • Added configurable velocity variable for the arrows shot by the Player.
  • FIxed a few typos in comments.

@mnmaita mnmaita marked this pull request as draft December 19, 2024 14:21
@mnmaita
Copy link
Contributor Author

mnmaita commented Dec 19, 2024

TODOs:

  • Despawn arrows when they hit walls.
  • Remove gravity from arrows? Although right now with a high velocity value it's working great even for hitting several enemies in a straight line if that gets added as a passive later and it looks cool visually.
  • "Auto-aim" feature.

@mnmaita mnmaita force-pushed the mnmaita/swap-weapons branch from d373d72 to aecec13 Compare December 19, 2024 15:04
@mnmaita mnmaita force-pushed the mnmaita/swap-weapons branch from 8377142 to 0873df1 Compare December 21, 2024 12:02
@mnmaita mnmaita marked this pull request as ready for review December 21, 2024 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bow Attack + Weapon Swap [ $70 ]
1 participant