-
Notifications
You must be signed in to change notification settings - Fork 9
Botanist NPC
The Botanist NPC is a non-playable character in the game developed by Story Team. It plays a role in the game's narrative and interactions, adding depth and engagement to the player's experience. This character is created using the provided code from the BotanistConfig, BotanistAnimationController, and NPCFactory classes.
The Botanist NPC is characterized as an elderly individual with a strong passion for botany and the study of plants. With a kind and knowledgeable demeanor, the Botanist offers valuable information about flora, quests related to gardening, and may play a crucial role in advancing the player's progress through quests or tasks.
Appearance: The Botanist NPC is represented by a sprite with dimensions of 2000x250 pixels, as defined in the botanist.atlas texture atlas. Animations: The Botanist NPC has various animations, including Walk Right, Walk up, Walk Down, Walk Left. These animations are managed by the BotanistAnimationController component. Behavior: The Botanist NPC is equipped with an AI task component that allows it to perform tasks such as wandering around its designated area or interacting with the player character. Interaction: When approached by the player character and key F is pressed, the Botanist NPC can initiate dialogues or provide quests related to plant-related topics, resource gathering, or environmental challenges.
- BotanistConfig Class The BotanistConfig class defines the properties of the Botanist NPC, including health and healing abilities. These properties are used during the NPC's creation.
- BotanistAnimationController Class The BotanistAnimationController class manages the animations of the Botanist NPC. It listens to events triggered by the NPC's state and plays corresponding animations. Animations include Walking animations and animations for starting to wander.
- NPCFactory Class The NPCFactory class is responsible for creating non-playable character entities, including the Botanist NPC. The createBotanist method in this class initializes the Botanist NPC's components, such as the physics component, collider component, and animation controller. The Botanist's appearance is defined by the oldman_down_1.png image. Additionally, the NPC is equipped with an AI task component to enable wandering behaviour.
- EarthGameArea class The EarthGameArea class represents the planet Earth area within the game developed by Studio-2. This class is responsible for creating and managing the gameplay environment for the Earth region, including terrain, entities, obstacles, enemies, power-ups, and more.
The Botanist NPC serves as a source of valuable information, quests, and interactions for players interested in exploring the game's botanical aspects. Players can engage with the Botanist to learn about plant species, gather resources, and potentially contribute to the game's narrative progression.
The Botanist NPC's appearance is inspired by an elderly botanist character, with attention to detail in animations and interactions. The animations for the Botanist's idle and wandering states provide a dynamic and immersive experience for players. As the game's development continues, the Botanist NPC has the potential to evolve with additional features, dialogues, and quests, making it an integral part of the player's journey through the game world
-
Rachit Chaurasia @rachitchaurasia
-
Dev Gupta @DRG31
Escape Earth Game
Interaction Controller and Interactable Components
Game and Entity Configuration Files
Loading Game Configuration Files