In game Menu - UQdeco2800/2022-studio-3 GitHub Wiki

Overview

The purpose of the in-game menu is to allow the players to choose either a building or unit and then spawn them in the game to use their respective functionality. The in-game menu is separated into two menus, the building selection menu and the character selection menu

The building selection menu consists of, but is not limited to:

  • Building Thumbnails
  • Building Description (e.g. name and information)
  • Building Costs

The character selection menu consists of, but is not limited to:

  • Character Icons
  • Character Stats (e.g. attack, defense, range, and speed)
  • Spawning Costs
  • Spawning Limit

Initial Design

Initially, the design was sketched by using simple drawings as can be seen as follows:

rn_image_picker_lib_temp_052c9baf-3c8d-4c28-86eb-5c4ee96d5e01

However, after further discussion and consideration, the sketch has been changed as follows:

Building Selection Menu

In order to build a building, the player can open the building menu and choose the building they want to spawn on the map. The player can press the build button and the menu will appear The picture below shows the template for the building selection menu.

building-selection-menu

Character Selection Menu

Other than spawning a building, it is also possible to generate units on a map to fight enemies. This can happen if at least one barrack exists on the map. The menu will appear by clicking on the barrack, it will appear and players can choose the units they wish to spawn. The picture below shows the template for the character selection menu.

character-selection-menu

UML

buildingMenuButton