top of page
Search

1/22 - 1/26

  • Writer: Nathan Matarazzo
    Nathan Matarazzo
  • Jan 26, 2024
  • 2 min read

This week, I got more work done on my game project. Firstly, I made a functioning net, as seen in the first video. Each piece of the net functions independently, with its own rigidbody2D component, and are constrained to each other with hinge joints and occasional spring joints. I used layer masking to prevent collisions between all but a few parts of the net with the ball.


Next, I started coding for more abilities, as well as making both an ability menu, which desccribes each ability, and an animation that plays over the ability logo whenever it is being used. In the bottommost video, the ability is only active when the player has the ball in their hands, so the animation only appears during those times as well. This applies to all abilities, such as the ones who are only active for the last 30 seconds of the game, or when jumping, for example.


Finally, I fixed some bugs with the game. One bug made it so that sometimes the game would reward a made shot with 3 points, when it should have been worth just 2. I figured out that this was a problem with spawning in after a made shot, and more specifically, the game didn't register that the player was now in the 2 point area of the court. I was able to fix this fairly quickly, with minimal code (around 4 lines or so). Another bug involved the collisions that took place after a steal occurred. Specifically, the ball would glitch out if it was in contact with the defensive player after a steal. I coded so that if the defensive player was in contact with the ball after a steal, the ball would automatically be placed in their hands, so it wouldn't glitch out.


 
 
 

Comments


© 2035 by TheHours. Secured by NM inc.

bottom of page