top of page
Search

3/4 - 3/8

  • Writer: Nathan Matarazzo
    Nathan Matarazzo
  • Mar 8, 2024
  • 1 min read

This week I proceeded with getting some more work done with my game project. Firstly, I finally completed the coding for the tournament bracket. I ran into a problem where the game objects, and all their information, would be deleted in between the times when I loaded up the tournament bracket scene. I fixed this problem with recording the necessary information I needed from each game objects with static ints and bools that will carry over different scenes, and stay the same. Then, each time I loaded up the scene it would reorder the game objects depending on the static variables, and give them the information based off of the static variables that are only changed during the part where the game objects are scrambled up in the randomizer method. Then, I made a simulation engine that would use RNG to determine the winners of the other games in the tournament. In the event that the player loses, the rest of the rounds are simulated, as seen in the first video below. Furthermore, as the tournament progresses, the difficulty also increases. All of this took a while to code, and my tournament scene manager script was pushing 1000 lines by the end of the week.


I also added abilities to the AI player in the single-player mode, which is something that is seen in the last video below. In single-player exhibition mode, the player can choose to play against a random player, which will select any random player for the player to play against in the game scene. The player can also choose the difficulty in the player selection screens for tournament, and exhibition mode.



 
 
 

Comments


© 2035 by TheHours. Secured by NM inc.

bottom of page