Skip to content

rabeehakamran/Zombie-Apocalypse-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸงŸ Zombie Apocalypse Console Game

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.


๐ŸŽฎ Game Modes

  • 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.

๐Ÿง  Features

  • 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

๐Ÿ“ฆ How to Run

๐Ÿ’ป Built with Visual Studio
๐ŸชŸ Windows only (uses windows.h, conio.h)

  1. Clone this repository or download the files.
  2. Open the .cpp file in Visual Studio.
  3. Press Ctrl + F5 to build and run.
  4. Follow on-screen instructions to play.

๐Ÿ•น๏ธ Controls (Manual Mode)

Key Action
W Move Up
A Move Left
S Move Down
D Move Right
Q Quit Game

๐Ÿ“Š Score System

  • Collecting items increases your score.
  • Reaching the safe zone gives bonus.
  • Health and travel distance impact final score.

๐Ÿ“ File Structure

File Purpose
game.cpp Main game logic
highscores.txt Stores leaderboard data
README.md Game description and usage guide

โœจ Credits

Developed by Rabeeha Kamran and my group member as our Data Structures Semester Project. Made with โค๏ธ in C++ as a console project


๐Ÿ“Œ Note

This game uses Windows-specific headers (<windows.h>, <conio.h>). It is not compatible with Linux/Mac without modification.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages