Skip to content

Achievement Interface

Ella West edited this page Oct 18, 2022 · 16 revisions

Page Navigation

Jump to a section or return to Achievement Summary here!

Summary

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.

Examples of achievement screen after sprint 4

Summary achievement display: Summary achievement display

Game achievement display: Game achievement display

Design

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.

Technical

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());

Testing

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.

Achievement Interface Demonstration


Back to Achievement Summary

Table of Contents

Home

How to Play

Introduction

Game Features

Main Character

Enemies
The Final Boss

Landscape Objects

Shop
Inventory
Achievements
Camera

Crystal

Infrastructure

Audio

User Interfaces Across All Pages
Juicy UI
User Interfaces Buildings
Guidebook
[Resource Management](Resource-Management)
Map
Day and Night Cycle
Unified Grid System (UGS)
Polishing

Game Engine

Getting Started

Entities and Components

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Troubleshooting

MacOS Setup Guide

Clone this wiki locally