Mechanics - AdamCvijanovic/Herding-Ghosts-Unity GitHub Wiki
MOVEMENT
The movement is a Rigidbody within a 2D tile map with a custom movement script utilising 2D vector movement through a player input control scheme different to the normally used one provided by the Unity system.
Player
The player uses a Up, Down, Left & Right movement without the ability to strafe diagonally. At this point the players can only move in one direction at a time meaning they need to re-press the key to move, no holding down a button while using another.
NPC's
The NPCs move through a 2D Navmesh system with the daughter going to her objectives, waiting and then moving on while the ghosts directly target her.
INTERACTION
Ghosts interaction with Daughter
On trigger entered the daughters fear meter will decrease with certain stages changing the daughters portrait image icon in the UI and at 0 bringing up the lose menu.
Ghosts interaction with Objects
When a specific kind of ghost collides with a possessable object the ghost is replaced with a possessed object.
Possessed Items interaction with Daughter
Operating similarly to the normal ghosts these possessed items however are unaffected by tools like the salt barrier.
Grandma's interaction with Ghosts
Grandma is unable to really interact with the ghosts directly and requires the use of a broom to strike them down or a pick up item like salt barriers to keep the at bay.
Grandma's interaction with Possessed Items
Similarly to the grandmas interaction with the ghosts the use of a broom is the only way for grandma to strike down the ghosts however, pickup items such as salt barriers will not effect them.
Broom
The player is able to pick up the broom and use it as a weapon to strike the ghosts and once a certain number of hits occur the ghost is dispelled. Possessed items when struck multiple times will convert to their original item and return to their original location.
Salt Shaker
When picked up the salt shaker will be held by the grandma and when released/dropped it will change into a salt line that will create a linear barrier against both the grandma/player and the ghosts. The daughter will not be affected by the salt line.
UI
Timer
The timer operates through a simple countdown sequence starting from a predetermined number like 60 and counting down 1 per second till it reaches 0 at which point the timers fill will deactivate, the game will pause and finally the win menu will appear.
Fear Bar
While similar to the timer in appearance the fear meter operates slightly differently. Starting at a 100% the fear meter will lower each time the daughter NPC collides with a ghost or possessed item until it reaches 0. Once the fear meter reaches 0 the game pauses and the lose menu will appear.
MENU'S
Main Menu
From the main menu the players will have 4 options: start a new game, go to the options menu, go to the controls menu or quit the game.
Options Menu
At this point there is nothing within the options menu.
Controls Menu
The controls menu has simple and easy to learn instructions on how to play the game with all the used controls mentioned.
Pause Menu
Pauses the game and has a resume button that continues the game or a main menu button that quits to the main menu.
Win Menu
Contains an option to play again as well as an option to go to the main menu.
Lose Menu
Just like the win menu it contains an option to play again as well as an option to go to the main menu.
EASTER EGGS
To be added in semester 2