Nathanv2 / Mult154_Trainvasion

MIT License
0 stars 0 forks source link

[Task]: Game over when no power and a energy source that gives the player power #34

Open Nathanv2 opened 7 months ago

Nathanv2 commented 7 months ago

Rubric Criteria

Overview

I will be working on the game over method when the player runs out of energy. I will also be making an energy source that the player can obtain by fighting an enemy.

Visualization

image image

What is needed to implement the task?

A Cube GameObject: This will represent the energy source. Game Over Script: Make a game over script and connect it when the player's power is 0.

What is the biggest risk it will not get done?

The biggest risk is if the gameover script would not connect with the power bar. Another risk would be if Angel does not finish the main scene.

Test case

Testing the game over with the power:

  1. Click the Start Button
  2. Click the arrows to move and click skip until the power bar is empty
  3. When the bar is at 0, the game over text will appear and the player can no longer move Testing the energy source:
  4. Click the Start Button
  5. Click the forward arrow once and lose 10 energy when going to the next stop
  6. Then click the forward arrow again and the player will collide with the energy source to see if it gives the player 10 energy back