-
Notifications
You must be signed in to change notification settings - Fork 0
Achievement Interface
Jump to a section or return to Achievement Summary here!
The original achievement screen was made up of 3 components (AchievementScreen
, AchievementActions
and AchievementDisplay
). During Sprint 4, this was refactored into a single class, AchievementInterface
, that could be added to a screen as a single UI component.
Summary achievement display:
Game achievement display:
Getting the new display to match the specifications from the refined designs continued to be the most challenging aspect of the achievement interface's implementation, especially for small screen sizes. This was eventually solved using Gdx.graphics
to set the UI aspects to their correct sizes and positions based off of the current size of the game window when it was initialised. As Gdx.graphics
is only updated when the screen is initialised, resizing the window may still cause display issues; however, the overall effect of the display is vastly improved over previous versions.
More information of the design process for this screen can be found in the Achievement UI section of the wiki.
Implementation of the achievement interface is much simpler than the original achievement screen since it only uses a single java class. This class can be attached as a component to a game screen's UI using the same method as any other component.
e.g.
Entity ui = new Entity();
ui.addComponent(new AchievementInterface());
The below video demonstrates the improved functionality of the achievement interface. It shows opening, closing, navigation, and hover effects of new display. Achievement category progression bars can also be seen.