This project combines elements from Pac-Man and the World's Hardest Game implemented using SDL2 library in C++, creating an engaging and challenging gameplay experience. Players take control of the iconic Pac-Man character, navigating through dynamic maze filled with little ghosts, all while eating yellow dots and striving for victory. Collect all the yellow dots in level to complete the level. Players should avoid the little ghosts along the way, otherwise you will return to the starting area of that level. If you collide with a ghost your failed attempts will get incremented.
Use arrow keys (UP/DOWN/LEFT/RIGHT) to guide the pac man character Eat all yellow dots on the screen while avoiding the chase of little ghosts
First, you have to make sure that you have installed SDL2 and SDL2-image libraries.
-
Open this folder in VSCode
-
Open VSCode terminal and put this command to compile everything: g++ *.cpp -IC:\mingw_dev_lib\include\SDL2 -LC:\mingw_dev_lib\lib -w -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_ttf -lSDL2 -lSDL2_mixer
-
Run the game by this command:
.\a.exe

