GitHunt
JU

juanBalian35/A-star-C-11-SFML-implementation

Visualization for "A*" pathfinding algorithm in a grid-based map developed with SFML, C++

Implementation of A star pathfinding algorithm in a grid-based map with C++ and SFML

Demostration

Tiles:

Red tile - Start

Orange tile - End

Black tile - Obstacle

White tile - Empty

Blue tile - Path

Controls:

Press 'S' to find path

Press 'D' to enable/disable diagonal movement

Press 'R' to randomize a map

Press 'C' to clear the last path

Click wherever you want to add an obstacle

Click on that obstacle to delete it

Click on the start Tile

Notes

Make sure to have the font provided at the media folder (it is at the root of the repository) in the same folder of your .exe

Languages

C++100.0%

Contributors

Created November 18, 2015
Updated February 16, 2025