top of page
Search

2/12 - 2/16

  • Writer: Nathan Matarazzo
    Nathan Matarazzo
  • Feb 16, 2024
  • 1 min read

This week I got some more work done on my video game project. Firstly, I successfully imported some new court assets, so the court looks a lot better now. There are also different color courts that are going to correspond to different maps. The court seen below is just the one that I think looks the best.


Second, I continued to improve the code for the AI player in the single-player mode. It is almost complete, and all I still have to do is sort out a few bugs. One of which makes the character freeze when they are behind the playable character. The other one makes the AI shoot it instantly after a defensive rebound.


Lastly, I fixed a bug with the game counting certain shots as 3 pointers, when they should not be worth 3 points. I tried using collisions from colliders to tell the player when they were in a 2 point area, but there was a lot of bugs with that approach, or at least, the way I had designed and coded for it. So, I decided to just use some code to tell the player when they were in the 2 point area. I was able to accomplish this in only a few lines of code. Furthermore, as seen in the picture below, I have been adding some comments in my code to help myself and others understand it better. This has proved to be quite the challenge, since there are many thousands of lines of code between all the scripts I have made.

ree

ree

 
 
 

Comments


© 2035 by TheHours. Secured by NM inc.

bottom of page