User Test
Battery/Charging
The battery player is a walking battery, responsible for powering the vacuum player, forcing the player that is using the battery character to keep track of the battery levels. When the vacuum uses it's sucking ability, the battery will drain. The Battery player holds a Battery script, which makes it responsible for managing the battery level of the battery player and ensures that it drains or charges when the necessary conditions are met. Since we already had a stamina script that we did not need for two players anymore and came up with the battery idea, we decided to refactor it so that we could reuse the code in order to make the battery script.
Mechanical doors
The game has Mechanical doors, which are usually locked and can only be opened by making the battery player crawl into tight spaces, where the switch/button is located. We made a very simple script that simply triggers an animation that opens a mechanical door.
Player Input
For our game, we decided to use Unity's New Input System, because of its ease of use, and since it's easy to make a Universal Scheme for every kind of controller/device it was the best option.
Player Area Detector
Since the goal of the game is to clean up as much as you can and get to a getaway spot before the timer runs out and the cops catch you, We made the PlayerAreaDetector script. It uses a collider to check whether the amount of players in the area is equal to the total number of current players in the game.