...Article moved from front page... I've been working on GUI (Graphical User Interface) of the "Power Up Selection" portion of the game. Since I'm using MVC, it was challenging trying to find out how to communicate power up information to the UI and then to the player's inventory. Ultimately, the player owns all power up definitions. The GUI (MVC) Controller grabs the player instance via a "Player Service" class (a global service), then uses the player to ask for available/known power up information. Then the view uses this information to create buttons and callbacks. In any case, here is a gif of the resulting GUI.
|