Round system and UI
I had everything the gameplay needed functionally so now I needed a way for the game to track how many rounds a player had won so they could eventually win the game. I thought this would originally be harder than it was due to needing to save this number between scenes but delete when a new game started or the main menu was entered. However this took almost no time at all as I just needed to make an empty which I called GameManager with a script attached that would have a counter to track wins while not destroying on load so it would transfer to the next scene, then I'd just have it destroy itself on the win screen.
The next thing was getting the UI to give an indication of how many rounds a player had won, I did this by placing all the UI then just having the point markers show up depending on the rounds won. This proved much harder at first as I had to reference them inside GameManager but it would lose the references across scenes, I tried making it find the components when a scene loaded but I just couldn't get it working correctly, I then settled on making the UI a child of the game manager and having it get dragged across each different scene with the round counter itself which ended up working in the end.
I also added a 3d model of a tank I made from blender to finish up the main menu.
Get Project T
Project T
Status | Released |
Author | NightlyClover2 |
More posts
- Sounds/finishing upJun 10, 2024
- Bullet reflection and ability 1Jun 08, 2024
- Adding health and second playerMay 19, 2024
- Starting outMay 18, 2024
Leave a comment
Log in with itch.io to leave a comment.