A thrilling C++ console-based game where you survive a zombie-infested grid! Navigate intelligently, collect items, dodge zombies, and reach the safe zone before it's too late.
- Manual Mode: Use keyboard controls (W/A/S/D) to move your character.
- Auto Mode: Let the game use Dijkstra's algorithm to find the safest path to the safe zone.
- Leaderboard: View top scores saved locally.
- Procedurally generated map using graph-based grid
- Real-time zombie movement and item collection
- ASCII intro, win/lose screens for dramatic effect
- Inventory system using linked list
- BFS & Dijkstra algorithms for pathfinding
- Local leaderboard stored in
highscores.txt
๐ป Built with Visual Studio
๐ช Windows only (useswindows.h
,conio.h
)
- Clone this repository or download the files.
- Open the
.cpp
file in Visual Studio. - Press Ctrl + F5 to build and run.
- Follow on-screen instructions to play.
Key | Action |
---|---|
W | Move Up |
A | Move Left |
S | Move Down |
D | Move Right |
Q | Quit Game |
- Collecting items increases your score.
- Reaching the safe zone gives bonus.
- Health and travel distance impact final score.
File | Purpose |
---|---|
game.cpp |
Main game logic |
highscores.txt |
Stores leaderboard data |
README.md |
Game description and usage guide |
Developed by Rabeeha Kamran and my group member as our Data Structures Semester Project. Made with โค๏ธ in C++ as a console project
This game uses Windows-specific headers (<windows.h>
, <conio.h>
). It is not compatible with Linux/Mac without modification.