Project 3
This Project has 7 features:
Feature 1: Health system and Player Death
Input:
J key is pressed
Process:
When the key is pressed, the character's health is reduced by a specific amount. This also is reflected on the health bar. If the health reaches zero or below, The character will Die. A "Player is Dead" message appears on the screen, and a countdown from 5 to 1 begins. During this countdown, all player actions such as movement and interaction are disabled,
Output:
The health bar displays reduced health, and when health is depleted, the death message and countdown appear on the screen. After the countdown ends, the game automatically restarts. The game will start from the beginning.
Feature 2: Hunger System with Pickup
Input:
Player picks up a food item from the world.Player presses the U key to use the item.
Process:
The Hunger will decrease gradually. It will Check if the item is Tagged "hungerpickup". If Yes,This increases the current hunger by half points .It will Update the Hunger Bar and Clear the item from the player's hand.
Output:
The hunger will be decreasing gradually with time. The Player’s hunger bar increases on the UI when player use the consumable . Food item disappears from the player's hand.
Feature 3 :Heal System with Health Pickup
Input:
The character first picks up a first aid kit when near the item. The U key is pressed to use the item.
Process:
After pressing the use key, The system checks whether the held item is a healing item with the “healthpickup” tag. The character’s health is fully restored to the maximum. Once the item is used, it is removed from the game
Output:
The health bar visually updates to show increased health. The used item disappears from the character’s hand, indicating it has been consumed.
Feature 4: Axe swing Animation
Input:
The player presses the right mouse button while holding the axe.
Process:
The game notices the button press and makes the character swing the axe. The swing motion starts and then goes back to an Idle Animation.
Output:
The player sees the axe swing forward, like an attack. After the swing, the axe returns to its normal position in the player’s hand.
Feature 5: Enemy attack with Animation
Input
The player walks close to the enemy within attack range. The player has a tag named "Player".
Process
If the player is within attack range, The enemy starts attack animation. The game shows a warning message on the screen "YOU ARE IN DANGER". If the enemy is playing the attack animation, the player takes damage. If the player moves away from the enemy, The enemy goes back to idle. The warning message is hidden and No damage is dealt.
Output
The player sees a red “YOU ARE IN DANGER” warning on screen. The enemy plays a swinging axe attack animation. The player’s health decreases if they stay close during the attack. The warning disappears when the player escapes danger.
Feature 6: Stamina System
Input
Player holds down Left Shift key while moving.
Process
Stamina drains over time while running. If stamina reaches 0, running stops. When not running, stamina slowly regenerates over time.
Output
Player moves faster if stamina is available .Player slows down when stamina is depleted. Stamina bar UI updates to show stamina amount.
Feature 7: NPC Interaction
Input
Player moves near the NPC. Player presses K key
Process
Check distance between Player and NPC. If in range, show "Press K to Interact" text If K is pressed, trigger the Wave animation.
Output:
Text appears when close: "Press K to Interact". NPC plays wave animation Text disappears when player walks away.

Leave a comment
Log in with itch.io to leave a comment.