-
Notifications
You must be signed in to change notification settings - Fork 1
Enemy NPC's
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.
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:
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 |
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 take advantage of aerial mobility, offering unique tactics to challenge players:
NPC | Image | Documentation Link |
---|---|---|
Bee | Bee Documentation | |
Pigeon | Pigeon Documentation | |
Macaw | Macaw 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.
- Chicken (Enemy NPC)
- Frog (Enemy NPC)
- Monkey (Enemy NPC)
- Bear (Enemy NPC)
- Pigeon (Enemy NPC)
- Eel (Enemy NPC)
- Macaw (Enemy NPC)
- Bee (Enemy NPC)
- BigSawFish (Enemy NPC)
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, ...
For specifics about how to develop and use Enemy NPCs in game see Enemy NPCs Programming Guide