Create the snake game using different graphic libraries. We can switch between them at runtime.
I used 3 libraries:
- Ncurses
- SFML
- Opengl
With 1 bonus library:
- Miniaudio
The goal of this project is to use theses functions:
- dlopen: load dynamic library.
- dlclose: close dynamic library.
- dlsym: load symbol.
- Clone Repository
git clone https://github.com/vvaucoul/Nibbler && cd Nibbler
- Download and Compile libraries
make install-libs
- Compilation
make
- Start the game
./nibbler [width] [height] [interface]
Switch between Interfaces:
- Ncurses: U
- SFML: I
- OpenGL: O