top of page
Screenshot 2022-11-20 195955.png

7AM

First person camera-based game within the unity engine with the objective being to shoot multiple targets in order to open a door to escape the dream while avoiding a ghost that is following you.

Platform

-Windows

Project Type

-Unity C#

-Team of 3

Duration

February 21st 2022 - March 6th 2022 (2 Weeks)

Role

​

-Programmer

Summery of contributions

I was the single coder on the team with being responsible for all mechanics such as

-Player Controller

-Ghost AI

-Bullet Shot mechanic

-Destroyable targets

-Ghost Stun Shot

Ghost Ai Code Example.png

A Closer Look

Player Controller

Here is a closer look at the player controller, due to assignment limitations the only movement provided to the player are directional movement and camera movement.  

Video Example
Click on Images for a closer look
Screenshot 2022-11-21 205519.png
Example of Player Animator Controller
Screenshot 2022-11-21 213528.png
Ghost Ai Code Example.png
Ghost AI and Stun Shot Mechanic

-The Ghost AI was made with the idea of a guard for a large hallway, with that being said the ghost will patrol the center area randomly consistently roaming to newly generated points upon a nav mesh. If the player enters the center area the AI will stop roaming and pursue the player.

​

-The Stun shot mechanic was developed as a way to temporarily stun the ghosts movements to give the player more time to complete their objective. Instead of utilizing a RayCast the stun shot is a physical in game object that the player spawns when shot. When the ghost comes in contact with the game object their movements come to a temporary stop. A cool down function was also implemented to prevent the player from spamming the attack indefinitely.

Bullet Shot Mechanic and Destroyable Target Objects

-The bullet shot mechanic created as the primary mechanic for the player to complete their objective. By creating a weapon mechanic that shoots out physical in game prefabs with adjustable velocities within the inspector view, the player is able to complete their task of destroying targets.

​

- the Destroyable Target system was created using unity tag system that detected whenever a bullet object came in contact with an object, this would both destroy the target and add to the players score.

Destroyable target Script.png
Gun Script in Inspector.png
bottom of page