Posted May 12, 2023 by senyapset
Date: 10.05.2023
Activity:
- Implemented shooting mechanics for player and enemies
- Added weapon magazines, reloading scripts and animations, dying animations, a UI element showing the number of rounds in the magazine
- HP is displayed as a health bar
Notes:
- I had problems with the player shooting mechanics, simply instantiating bullets didn't work because it was impossible to make them shoot accurately in the center of the screen, so I used Raycast to calculate the destination point
- I had to give up the crouch mechanics for now, because I couldn't get the enemy to turn his weapon toward the player and it made the player invulnerable in a sitting position.
- It is a pain to test the game with 15 fps :)
Invested hours: 15 hours