/Locke-And-Keys-Game-

Locke and keys is a final project game in the course - Computer Games Development at Ariel University.

Primary LanguageC#

Locke & Key Game

Final project in development of computer games course.

Created by:

Odelia Hochman

Netanel Davidov

itch.io: Locke & Key

Trailer: Locke & Key

Background

The game is based on the series, comics and books "Locke & Key" .

During the game, the player moves around the house and outside. His goals:

  • Find magical keys by whispering sounds.
  • Fighting demons and human enemies who try to hurt the player and do so with various objects and magical keys.
  • Eliminate the Hell's Demon that is trying to take over the world with the help of the magical keys

Short explanation to the player:

Welcome to the Locke family.

Tour the house and find magical and mysterious keys that give their owners mystical abilities and that opens doors to intriguing and surprising worlds.

You must understand alone the key capabilities and use them in appropriate situations.

During your stay, you will encounter human enemies and scary demons - that wake up from a long-standing coma that try to hurt you, snatch away the magical keys and bring you to Hell's Demon.

During the game, you will be joined by additional characters - family members who will help you fight enemies, keep the magical keys, and complete tasks. During the game, you must acquire skills that will help you understand how to fight and eliminate Hell's Demon before she will take over the world.

First 30 seconds

The player has a Menu --> he clicks on - New Game button.

The player sees a short animation of entering the KeyHouse. The player enters the KeyHouse.

A tutorial appears to him as to show him what he should do. He must look for the first magical key by the sound of whispers. When he finds the key, the corresponding key card show on the screen and shows him the name of the key and what it is opened. Then the player will have to understand that he has to open the mirror in the closet with the help of the mirror key he found. Then, his mom who was in the same room will come into the mirror, and the mirror would break. A message will appear to the player that the mirror was broken, his mother stuck there and must be rescued by finding a new mirror. The player looks for a new mirror and opens it.

Here begins the first mission. The player enters a mirror room where there is a maze. He must find his mother in the maze and get out of the room as soon as possible.

Player move:

The player has an option to move forward, backward, right, left. The moving is done using the arrow keys and doing so activates the animation that matches the movement.

  • up key - moves the player forward.
  • down key - moves the player backward.
  • right key - moves the player right.
  • left key - moves the player left.
  • space key- attack enemies

Picking objects will be done by mouse clicking.

Scripts

Player:

  • Mover - Moving the player
  • HealthBarPlayer - Represents the Health of the player in the game
  • PickingKey - This behavior is make the player pick up key from the floor
  • PlayerKeys - The collection of keys the player has already encountered
  • PlayerController - Represents player attacking and his damage status when injured by the enemies and his death
  • Fist - Represents the Fist of the player with it he hits the enemy
  • Billboard - Makes the object always parallel to the camera

Enemies:

  • Enemy - Represents enemy situations in the game such as standing, walking, attacking and his damage status when injured by the player and his death.
  • EnemyClaws - Represents the claws with which the enemy fights

Grandfather:

  • Grandfather - Trigger for jump the dialogue with the Grandfather

Mother:

  • Follow - Trigger for moving the mother when the player finds her

Keys:

  • KeyProperties - This class contains all key properties as: holes it open, audio source, current hole that opened.
  • PickingUp - This class allows the key behavior to be in the player's hand when the player clicks it with the mouse.

Holes:

  • HoleActions - This class allow specify which key the hole belongs to and which key animation will be triggered when you click the hole with the mouse.

Key Cards:

  • Card - Create a Card object.
  • CardDisplay - Display the card on the screen with all its details and close

Levels:

  • OpenGame - Represents the first scene in the game(just show the house from outside).
  • Level1 - Represents the first scene(level) at KeyHouse, the level1 contains some states that the player may be during the level.
  • Level2 - Mirror Room scene
  • Level3 - Represents the second scene at the KeyHouse
  • Level4 - Cemetery scene

Menu: (asset)

Mirror:

  • BreakMirror - This behavior causes the mirror to break and leave fragments on the floor.
  • ImportanceMirror - Affects the mirror reflection according to the player's location

Dialogue:

  • Dialogue - Represents the content of the dialog that will display
  • DialogueManager - Responsible for opening and closing the dialogue and displaying the details on the screen
  • DialogueTrigger - Responsible for starting the dialogue

Health Bar:

Button:

Chest:

  • Chest - Enables the Chest opening animation with a mouse click

Door:

  • Door - Responsible for checking if the player is standing at the door
  • DoorOnTrigger - Responsible for the onscreen text at the door

Target:

  • Target - Represents the location the enemy will go to when his Health Bar will be in a certain number

Animation:

Camera

Key

Mother

Mirror

Player

Enemy

Dialogue

Chest

Door

Audio:

We created Audio source for a key object and configured it as follows: Being played in loops, played in a three-dimensional area. we have defined that as the player moves away from the area, the sound becomes louder and as the noise approaches exponentially.

Images

Menu

image

Scene1

image

Scene2

image

Mirror Room

image

Cemetery

image