Skip to content

AntonisAgap/CPP-Maze-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Maze game using lib ncurses

A maze game using C++. For the GUI the library ncurses was used.

compile on POSIX platforms with:

g++ ./src/*.cpp -o a.out -lncurses

and then run the game giving the map folder and the highscores file as arguments:

./a.out ./assets/maps/map1.txt ./assets/scores.bin 

The player collects jewels to score points. After 10 jewels a scroll appears which gives x10 points. The jewels and scroll are all randomly located each round. After the player collects the scroll a new round begins.

The player:

  • can move using the arrow keys.
  • stay still using SPACE key.
  • exit the game using ESC key.

The player is chased by one or two enemies depending on the difficulty.

The enemies find different shortest paths to the player using a BFS algorithm on a grid system to surround the player.

After each play the player can enter his username and appear to the top 5 scoreboard.

About

A maze game using C++ and lib ncurses.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages