Skip to content

Latest commit

 

History

29 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

SFMLMazeGame

SFML Based Maze Game for Lab 1 ECE 4122 @ GaTech

Requires SFML 2.5.1+. February 16, 2026. Enam Amevo ECE 4122

Overview

A C++ application that procedurally generates a maze and solves it using Breadth-First Search. This project uses SFML 2.5.1+ for real-time rendering and includes dynamic speed controls and window resizing.

Prerequisites/SetUp

Clone this repo then move into it.

git clone https://github.com/eamevo/SFMLMazeGame.git

cd SFMLMazeGame

In root folder, run the following:

# Clone the entire repo:
git clone https://github.com/jhurley-blip/ECE4122-6122-SFML.git

# Move SFML folder up to your current spot:
# (Use 'mv' for Mac/Linux or 'move' for Windows CMD)
mv ECE4122-6122-SFML/SFML .

# Delete the rest of the repository:
# (Use 'rm -rf' for Mac/Linux or 'rmdir /s /q' for Windows CMD)
rm -rf ECE4122-6122-SFML

Alternatively, you can download this repo as a zip. Make sure you change the name from SFMLMazeGame-main to SFMLMazeGame. You can also download the SFML folder directly. Place it in your SFMLMazeGame folder.

Project Structure

SFMLMazeGame/
├── SFML/                 # SFML library files
├── src/                  # Source files (.cpp, .h)
│   ├── CMakeLists.txt  
│   ├── main.cpp
│   ├── MazeGenerator.h
│   ├── MazeGenerator.cpp
│   ├── Pathfinder.h
│   ├── Pathfinder.cpp
│   └── fonts/
│       └── PressStart2P.ttf
├── README.md
└── CMakeLists.txt     # Top Level Build configuration 

Compilation and Execution

  1. In top level folder/root directory, create build folder:
mkdir build && cd build
  1. Configure and build:
cmake ..
cmake --build .
  1. Run Application:
./output/bin/MazeGame [width] [height]

Note: Default size is 25 x 25. Parameters are optional. For example, 50 40 creates a 51x41 maze.

Controls

G: Generate new maze

S: Solve maze (BFS)

R: Reset visualization

+/-: Adjust simulation speed

ESC: Exit

About

SFML Based Maze Game for Lab 1 ECE 4122 @ GaTech

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages