Hildeguard: Monestary Madness
The Video
The Idea
Hildeguard was my bachelor's project and was created with 2 programmers and 4 artists. The game is a mixture of tower defense and some ARPG elements. The gameplay is split into two parts. During the day, players have to spend their resources by assigning roles to rooms and upgrading them. At nighttime the combat happens. Enemy waves spawn in, and the player needs to manage his units to defend the relic. Download Link
The Code
For this project, I mainly worked on the UI and the functionality of the rooms. As the UI has many different states, I implemented a kind of state pattern where every UI element is added to a list. If the state of the game changes, the UI manager is notified and loops through all the elements and enables them according to the current state. With this, I only needed to assign a type to each UI element and, on a state change, call the update function.