The Last Drink
You are a killer. You are sent to a bar to kill your target. He is wearing a purple suit.
You need to prevent your assassination from being known by others. Once the target's alert value is too high, others will realize that you are a dangerous person and your mission will fail.
-Use A and D to move.
-Use buttons to interact with objects and tasks in the scene.
-KILL HIM!
Functions:
1. I used functions to control player movement. This function can convert the A and D commands entered by the player into the direction of movement of the character in the game.
2. I used a function with a parameter to accept the increase in alert value. This function accepts a float amount, which determines the amount by which the alert value should be increased.
3. I used a function with a return value to check if the alert value has reached the upper limit. In this function, if it is detected that the current alert value is greater than the set maximum value, the alarm system will be triggered (return true) and the game will fail.
----------
Git Repo: https://github.com/wzhao047/test.git
(Branch Jam_1_TheLastDrink)
Leave a comment
Log in with itch.io to leave a comment.