-
Notifications
You must be signed in to change notification settings - Fork 9
NPC's For Story Line
The Astronaut,Astro and Jail NPC and NPC Entities are 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. These characters are created using the provided code from the AnimationController and NPC Factory classes for the respective NPC's. The Dialogues were written by the Story Team for integrating the Story Line with the Game .
The Astro NPC is a non-playable character in the game developed by Story Team. This character represents an astronaut and plays a crucial role in guiding the player through the game world. The Astro NPC is characterized by its animations and dialogues, providing essential information to the player in the EARTH GAME AREA.
The Astronaut NPC is another non-playable character in the game. This NPC is designed to resemble an astronaut and adds depth to the game world. The Astronaut NPC has animations and dialogues that contribute to the player's immersion in the LUSH GAME AREA .
The Jail NPC entity represents the npc Astro within the game who is encountered in a jail setting. This character plays a significant role in the game's narrative, offering quests and interactions that impact the player's journey in the EARTH GAME AREA.
Appearance: The Astro NPC is visually represented with sprite animations provided by Neil . These animations include movements in different directions, managed by the AstroAnimationController component.
Behaviour: The Astro NPC exhibits basic AI behaviour, such as following the player character using Follow Component through Intractable Component , and initiating dialogues when interacted with.
Appearance: The Astronaut NPC's appearance is represented by sprite animations made by the Story Team , and these animations are managed by the AstronautAnimationController component.
Behavior: Similar to the Astro NPC, the Astronaut NPC also exhibits AI behavior. It can wander, interact with the player, and trigger dialogues.
Appearance: The Jail NPC is visually represented with animations, particularly the "jail_close" animation, which is looped. The animations are controlled by the JailAnimationController component.
Behavior: The Jail NPC can be interacted with by the player. When approached and interacted with, it initiates dialogues that reveal aspects of the storyline and potential quests.
The NPC's are created using the provided code in the create method for all the NPC. The code initializes the NPC's components, animations, physics, and interactions.
All the NPC are initiated in the similar way for the code provided above
The AnimationController classes for all the NPC's are implemented with the following methods:
create(): Initializes the animator, loads the required assets, and starts the default animation.
update(): Updates the animation based on a timer. It switches between animations for different directions, creating a dynamic walking animation in case of required characteristics for The NPC.
All the Other Roles and Animations for Different NPC were Implemented by their own Specific Animation Characteristics.
In the game, the Astro NPC serves as a guide and source of information for the player. When interacted with, it provides essential information about the game's objectives or storyline like Guiding towards the Spacecraft.
The Jail NPC entity role is crucial to the game's storyline. It interacts with the player to advance the narrative, provide quests, and offer information about the game world.
-
Rachit Chaurasia @rachitchaurasia
-
Dev Gupta @DRG31
-
Yash Mittal @yashmitttal
-
Aniket Gupta @aniketgupta17
Escape Earth Game
Interaction Controller and Interactable Components
Game and Entity Configuration Files
Loading Game Configuration Files