Skip to content

Enemy NPC's

Urawee Thani edited this page Oct 16, 2024 · 96 revisions

Overview

The enemy NPC feature will introduce dynamic and challenging opponents and diverse animal types that increase in stat difficulty as the player progresses through levels. Enemies will spawn and then initiate battles when within a certain radius, and each animal type will have unique abilities and potentially super effective moves. Defeated enemies will drop items, and players will face a new set of enemies in each element al kingdom, ensuring a fresh and exciting experience.

Entity-Specific Documentation

Each entity has unique characteristics like whether they attack or shock player by throwing items, drop items that can prove fruitful later etc. Their details can be found below:

Land Enemies

In the land area, players will encounter various enemies, each with unique characteristics and abilities. These enemies include:

NPC Image Documentation Link
Chicken Chicken Documentation
Monkey Monkey Documentation
Bear Bear Documentation

Underwater Enemies

In the water area, enemies have adapted to the aquatic environment, offering unique challenges:

NPC Image Documentation Link
Frog Frog Documentation
Eel Eel Documentation
BigSawFish BigSawFish Documentation
Octopus Octopus Documentation

Sky Enemies

Sky enemies take advantage of aerial mobility, offering unique tactics to challenge players:

NPC Image Documentation Link
Bee Bee Documentation
Pigeon Pigeon Documentation
Macaw Macaw Documentation

Enemy NPC Documentation

A list of enemy NPCs implemented in the game, as well as their respective stats, specific implementations and other details can be found below.

Enemies are spawned into the ForestGameArea, which consists of 3 different regions: Land, Water, and Air. Enemies only spawn in their appropriate region, meaning all land animals such as bears and monkeys only spawn in the land area, all water animals such as the eel and frog only spawn in the water area, and all air animals such as the pigeon and macaw only spawn in the air region. A supplier is used to generate entities of the selected enemy type and spawns them randomly within the specified area. The number of enemies spawned is determined in the configuration settings. This method of generation ensures that enemies are spawned in a way that is challenging for the player while keeping the game novel. The amount of enemies are determined by the spawn configurations:

    public int NUM_FROGS;
    public int NUM_MONKEYS;
    public int NUM_BEARS; ...

The numbers for each enemy type are defined in the entitySpawn json file:

  "NUM_FROGS" : 4,
  "NUM_MONKEYS" : 5,
  "NUM_BEARS" : 4, ... 

Programming Guide

For specifics about how to develop and use Enemy NPCs in game see Enemy NPCs Programming Guide

Clone this wiki locally