Click here to see the deployed game
The Grave is a maze of walls the player has to maneuver through. In order to escape the map (and win the game), the player has to collect a key, find the corresponding door and escape the grave.
one player character who can move in four directions (vertically and horizontally)walls on map are impenetrableplayer can pick up items (key, power up)key unlocks door to escape- power up makes player briefly invincible
ghosts/zombies/ghouls walk the tomb in either horizontal or vertical pathsghosts kill playertime based high score (subtracting from a fixed high score every second)
power ups: intangibility from monsterspower ups appear after random timepause/unpauseplayer inventory: display keysstep and background noise- only render visible circle around player (rest of map is black)
- "Race against Time" - mode (Countdown) --> display timer
- attack ghosts with weapon
add treasure / collectibles for higher score- display score
- contains all functions related to various game elements (e.g. to player interactions with items etc.)
- contains functions like drawMap(), getKey() or intangibility()
- handle all DOM API queries
- key events
- contains all variable declarations connected with the game itself
- contains the logic for different levels
- contains the game object with all game related functions
- generic Template Class, other Classes extend it
- holds the mapOne and mapTwo 2d arrays for the map
- contains all Classes for building blocks & items (Wall, Stairs, Floor etc.)
holds the Player Class
holds the Ghoul Class
holds the Skeleton Class
holds the Monk Class
splashScreen (Backstory, Controls, StartGame)GameScreenGameOverScreenpauseGameforgotKeyTrapped!
main - create canvas & position it in centermap - create 2d array and Wall Classmap - make walls impenetrable with collision detectionplayer - create player & keyEvents (controls & pickup)player - create pickup functionalityitem - create keyitem - create doorghoul -create nameless ghoul