Bob Potter, the last challenge is a dungeon crawler top down terminal game developed from scratch in C++ only using ncurses.
Bob Potter has to go through a series of dark mysterious dungeon collecting all the jewels to reveal the magic parchment, while avoiding the gnomes and trolls that protect them.
The game has a number of feautres including:
- Real time gameplay.
- High score tracking.
- Dynamic window resizing.
- Harder gameplay as you progress the levels.
- Create and play your own maps.
Welcome Screen | Game | End screen |
---|---|---|
You need GCC and ncurses to make this project.
In order to compile, you have to run make from the /src directory.
cd Bob_Potter/src && make
After compiling run the ./bobpotter
file giving the the name of the map you want to play, which should be in the /maps
directory and the name of the highscore .bat
file.
Example:
./output map1 highscore
Any maps you create can be saved without a file extension. They must be added to the /maps
directory, upon launch you have to specify the name of the map you wish to play on.
The maps are created using space (
) as roads and asterisk (*
) as walls.
************************************************************
* * * * * * *
****** * ** * ************ * **** *** * *** *** ** * *
* * * ** * ** *
* ****** * ***** * **** *** ***** ***** ** * *
************************************************************
The highscores file is a .dat
binary file (dont ask why) it could be empty or full of scores but it must exist on runtime. If it doesnt just create a empty .dat file using:
touch highscore.dat