Bullet reflection and ability 1
The next thing I aimed to add and what would really piece together the game as a whole is bullet reflection, the aim is to have a bullet bounce when it comes into contact with a wall and to be destroyed when it hits other projectiles. This proved quite difficult as no matter what variation of calculations I wrote for the reflection there would always be strange problems. At first it would only reflect in one direction or just move upwards when hitting a wall. Then the projectile would randomly lose speed on specific angles for no reason. It was at this point I had to give up on writing calculations and make a simpler physics material that would make the projectiles very bouncy which ended up solving my problems.
Due to the time remaining on the game I have to cut the ability selection from my game, however I still want there to be an ability in the game so I'm gonna add the cannoball ability, this will be a one time giant projectile that does massive damage and travels through walls but it will be pretty slow. This was pretty easy to do as I copied my code for the original projectile, made it bigger, do more damage, and ignore collisions then made a counter for it to only be used once during a round.
Get Project T
Project T
Status | Released |
Author | NightlyClover2 |
More posts
- Sounds/finishing upJun 10, 2024
- Round system and UIJun 10, 2024
- Adding health and second playerMay 19, 2024
- Starting outMay 18, 2024
Leave a comment
Log in with itch.io to leave a comment.