Skip to content

Worker Units

yashvardhanbatra edited this page Oct 3, 2022 · 11 revisions

Overview

Worker units are a core part of the gameplay loop in the sense that they are used to gather resources for the player from around the map. There are two main types of worker units: miners and foragers.

Worker types

  • Miner units are used to collect stone and iron from Stone entities that are randomly generated around the map.
  • Forager units are used to collect wood from Tree entities that are also randomly generated around the map.
  • Builder units are used to fix buildings with resources (wood, metal, and stone) collected by the Miner and Forager.

Function

On game start, two of each unit are spawned near the city centre. These units can then be selected by the player and moved towards resources. Upon colliding with a resource node, a worker unit will collect resources from that node and place them in their inventory. These resources can then be deposited back at home base, where they are added to the player's resource stockpile.

UML

The following UML diagram is a representation of the classes used in the creation of worker units. New Project-2

Table of Contents

Home

Game

Game Home

Design Influences

Gameplay Features

Style

Story

Friendly Units
Map
City
Buildings
Unit Selections

Spell

Game User Testing: Theme of Unit Selection & Spell System

UI User Testing

Tutorial

Resource Stats Display

Loading Screen Bar

Health Bars
In Game menu
  • Feature
  • User Testing:In Game Menu

Landscape Tile Design

Landscape Tile Design Feedback

Weather Design

Weather Design Feedback

Camera Movement

Enemy design

Enemy Units

Enemy AI

How Animation Works

Map Flooding

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