Play this simple Maze Game with unique mazes in each run. Locate and collect the power to kill all three monster before they kill you.
- Download, install and run IntelliJ Community Edition
- Click "Get from VCS" or File->New->Project From Version Control
- Insert the following URL:
https://github.com/Tooo/Maze-Game.git
- Run Main
Kill 3 Monsters before getting eaten by a monster
Symbol | Object |
---|---|
# | Wall |
@ | You (Hero) |
! | Monster |
$ | Power |
. | Unexplored Space |
Letter | Action |
---|---|
W | Up |
A | Left |
S | Down |
D | Right |
Letter | Action |
---|---|
? | Help |
m | Display Map |
c | Cheat |
The Maze is 20 cells wide and 15 cells tall. Randomly generated mazes are made with recursive backtracker referring from Wikipedia. Corner walls are removed to allow the hero and monster to spawn. Some inner walls are removed to allow the hero to navigate Maze easier. All open cells in the maze is connected. 2x23 square constraint is satisfied so there no 2x2 wall or open cells.
Hero will spawn in the top left of the Maze. Inputting one of W, A, S, or D will move the hero unless a wall is in their way. Collecting power will allow the hero to kill one monster.
Monsters will spawn in the three other corners. They will wander through the maze randomly after each hero move. They are not allowed to move through walls or immediately backtrack unless that is their only move.
The power will be randomly placed in the maze. It cannot spawn on the hero or on walls. After the hero collects a power, a new power will spawn.