Skip to content

iangelak/AIPathsGraphics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AI Paths

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.

Alright, and what exactly is this?

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.

Installation (Linux/MAC x86_64)

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

SFML

To install smfl libraries please check with the repositories of your current distribution. Some examples:

Ubuntu

sudo apt-get install libsfml-dev

More info here

Arch (AUR)

sudo pacman -S sfml

If you run into problems please dont hesitate to contact me.

Uninstallation

make clean 

And if you want delete sfml and its dependencies.

About

2D graphics representation of 2 agents in tileMap using C++/SFML

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages