Skip to content

Animal Overview

Blauberg edited this page Sep 9, 2024 · 17 revisions

Introduction

The animal system in the game serves as a core gameplay element, providing players with engaging challenges through diverse enemy encounters. Animals in the game are designed to act as hostile entities that challenge the player through combat. Each animal type has unique movement patterns, attack styles, and animations, all of which contribute to the player’s strategic decisions during encounters. By differentiating animals through configuration, the system allows for a wide variety of enemies that require different approaches to overcome.

System Architecture

Animal Instantiation

All animals are created using the NPCFactory class, which provides a create() method to instantiate animals based on their specifications. The configuration for each animal, including its tasks, animations, and combat stats, is defined in a JSON file (NPCs.json). The factory uses these configurations to build animals with various components that dictate their behaviour and abilities.

Configuration of Animals

Key Components

Integration with Whole System

Future Plans

Table of Contents

Home

Design

Design Document

Design Choices

Game Wiki

Gameplay

Controls

Game Features

Utilities
Animals
Menus/screens
Character
Map
Weapon
Projectile
Items
Music/sound

User Guide

Starting the game

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

Enhancement of Settings

Troubleshooting

MacOS Setup Guide

Clone this wiki locally