The Snake Game
I am a stupid programmer, then I dont know use make file or any other way of automatizate the compilation of '.cpp' files. Good luck trying make this work.
I used the g++ compiler for compile in windows.
-
Open cmd in folder src.
-
Type g++ -c -o main.o main.cpp -I"insert here the include path" and press enter.
-
type g++ -o ../prog/Snake.exe main.o -L"insert here the lib path" -lfreeglut -lopengl32 -Wl,--subsystem,windows and press enter.
Oh yeah, now you have a Snake.exe file in your prog folder, so allright. If it goes wrong, so good luck trying solve this problem, I just hope you don't get depression wether it goes wrong.
Good luck trying compile this in Unix/OS X operation system.
Enjoy Fun (or not, I dont know).