Simple side-scrolling game written in C++ OpenGL for Computer Graphics classes in 2021/2.
Make sure you have FreeGLUT installed on your system:
- For Debian: freeglut3, freeglut3-dev
- For Arch: freeglut, glu
The program was developed to be compatible with Linux, or, more specifically, with Ubuntu 20.04. Other platforms might not produce correct results or might not even work at all.
An executable can be obtained by calling make
within the project directory. make help
will display information about relevant recipes from the Makefile.
The program can receive up to 3 arguments, in this order:
-
./trabalhocg
: the game executable; -
arena.svg
: path to the svg file with arena information; -
-d
: to enable debug mode (draws collision boxes, etc).
Example: ./trabalhocg input/arena_teste.svg -d