Skip to content

Alien Fauna ‐ Programming Guide

pchsa edited this page Oct 2, 2023 · 37 revisions

Introduction

This wiki page will be a handbook on how animals/entities can be created into the game.

Animals

AI Behaviour (Movement stuff)

Taming

Animations

Attack Patterns

Hostile combat (including melee attacks and projectiles) are implemented using attack patterns. Attack Patterns

Projectiles

Hostiles shoot projectiles at the player. Projectiles

Indicator

Indicators appear on the screen to notify the player that there are hostiles in the area that they must defeat. Entity Indicator

Animal Components

Base Animal

When creating each animal, a base animal entity is used to add components that are shared across each animal. image

Example Entity - Chicken

After creating the base animal, further components are added to each animal depending on its type. The following diagram shows what components are added to the chicken entity. image

UML Diagrams

Running Away Task

Tamable Component

Animations

Alien Fauna ‐ Animations

Attack Patterns

To implement Hostile Attack Patterns

Projectile

Adding interactions with animals and other non-tile entities

Please read https://github.com/UQcsse3200/2023-studio-1/wiki/Interaction-with-non%E2%80%90tile-entities

OxygenEaterAttackPattern

ProjectileComponent

Clone this wiki locally