Ball HUD

By Aaron Holowienka

This week I worked on overhauling the ball selection on our HUD. The idea for the HUD was to make a sort of circle where only the selected ball type appeared on the HUD. So, if you hit right bumper the previous type slides off the screen to the right and the new type slides on to the screen from the bottom. My UI system already had support for this kind of animations because the menu objects are bouncing up and down. Inside my UI object I have and idle, a top, and a bottom position which I used to store the three positions I needed. When the event goes out for switching ball types I just trigger the animations to start on the two icons that need to move and only draw them.

Comments

Popular Posts