Sprint 6 Blog
Overview
For this sprint, I was assigned the UI implementation for game units in the game scene. What needed to be done was a unit icon for each unit, with its corresponding element. I also stylized the UI to implement the sprites the team made. Next, I will need to work on giving each unit a corresponding health bar and highlight/grey out their UI display depending on if it's their turn or not.
UI Implementation
One of the first tasks I had to complete was assign each unit a slot and then give them the appropriate unit sprite. Below is the code I implemented to do that and it's result.
Right now the sprites are placeholder, but the functionality works, once the sprites are finished, I can plug in the correct sprite in the inspector. Another thing I worked on was stylizing the pop up for the unit stats. I did this by inputing the sprite wanted for the background and changing some of the colors for the stat texts. I also had to do some resizing and moving to better fit the game screen.
Another task I did for the game scene UI was resize and adjust the positioning of each button in the game scene so that they looked uniform and they all display in the game scene the same for every computer screen size and aspect ratio.
Comments
Post a Comment