Nathanv2 / Mult154_Trainvasion

MIT License
0 stars 0 forks source link

[Task]: Blockade and Rescue Event with GameManager that calculates people #20

Open Nathanv2 opened 8 months ago

Nathanv2 commented 8 months ago

Rubric Criteria

Overview

I will be working on the blockade event where it will connect with how many people the player has rescued. For example, when the player presses the remove blockade button, it will detect how many people the player rescued and a script will remove the blockade, if they met the requirement. If they do not meet the amount of people needed to remove the blockade, then they will need to press the go back button, which will just let the player go back to save more people. I will also be working on the GameManager with the player event, which will calculate the people and add a text that updates how many people the player has rescued.

Visualization

image image

What is needed to implement the task?

Blockade Script: This script will link up to detect how many people the player has rescued.

GameManager: I will add a people calculation method, which will calculate how many people the player has rescued.

Blockade Gameobject: I will need to test using a gameobject representing the blockade.

What is the biggest risk it will not get done?

The biggest risk is that most of the game objects have tags already, so I might struggle with coding without using tags. Also, need to figure out whether we are switching to first person because we might need to change up the whole movement. This will effect the blockade system and the coding with it.

Test case

  1. Start Game
  2. Press the first stop and click rescue
  3. It should automatically update the people count text and change to the test scene
  4. Click back and click the next stop until you reach a blockade
  5. Remove Blockade and Go Back button will pop up
  6. Click Remove blockade and it will calculate the amount of people you need to pass
  7. A script will then detect how many people the player have rescued in order to pass
  8. If you do not have the amount of people needed to remove the blockade, a text will appear saying "You did not meet the requirement of people needed!" and the buttons will disappear