The above game is developed by Group SARAS from D4B consisting of Suyog, Aryamaan and Rutuj. Saras is an interactive maze game written using SDL library in C programming language. You can find the actual code in library.c file and the command script to compile the code in CmakeLists.txt file. You will be needing the SDL library installed in your gcc compiler files, or you have to link the SDL library files using make or cmake. Steps to install SDL for mingw64 gcc and g++ compilers is given below:-(Also note that the actual code files are in the main branch of the repository)
- Go to releases on the github link of game and download the latest release .exe game file. Then download the SARAS V1.3.exe and run it. Follow the on screen instruction to install it. Once installed go to the SARAS(V1.3) folder and run SARAS_codeblocks.exe to start the game. Your antivirus ight try to stop the exe file from being run, you have to disable the antivirus and then run the exe file. Windows protection screen might also appear, you have to click on more options and then click run anywway. If you are using a chromium based browser the browser might tell the file is not safe, click on keep anyway.
- The code can be compiled using Codeblocks or using any other IDE that supports C. For codeblocks, download the mingw32 version of codeblocks and link the libraries in the include folder of the repository then open the .cbp file and build the main.c file to compile the game. Remember you have to edit the file paths in the main.c file according to your pc! For other IDEs the compilation is given below:-
- Download msys2 64bit from here: https://www.msys2.org/ and install it, then open MYSYS2 UCRT64 application.
- Update msys2 64bit after install by running
pacman -Syu
if pacman needs to be updated you might have to close and reopen the terminal and runpacman -Syu
again
Now enter the following command:-
pacman -S --needed base-devel mingw-w64-ucrt-x86_64-toolchain
pacman -S git mingw-w64-x86_64-toolchain mingw64/mingw-w64-x86_64-SDL2 mingw64/mingw-w64-x86_64-SDL2_mixer mingw64/mingw-w64-x86_64-SDL2_image mingw64/mingw-w64-x86_64-SDL2_ttf mingw64/mingw-w64-x86_64-SDL2_net mingw64/mingw-w64-x86_64-cmake make