AI Paths is a program made in C++ using SFML, the writer's first attempt at such athing.
This project is part of the course in Introduction to Artificial Intelligence at ntua and is non-commercial.
It takes data from another program (not in repos but might upload soon) that calculates paths for two agents using A* in a 2D map, and draws their movement in a 2D tileMap.
Some of the things learned from this:
- Drawing of a tileMap (textures)
- Drawing of 2D sprites in the above map , and animating according to movement, by recycling a 2D sprite strip.
To install you have to have the SFML libraries installed for your system and some openGL libraries which should already be installed.
Then run make with the Makefile provided and then use the bash script ./run test.txt which is also provided
along with a sample testcase file called 'test.txt'.
To install smfl libraries please check with the repositories of your current distribution. Some examples:
sudo apt-get install libsfml-dev
More info here
sudo pacman -S sfml
If you run into problems please dont hesitate to contact me.
make clean
And if you want delete sfml and its dependencies.