Arcade is a gaming platform: a program that lets the user choose a game to play and keeps a register of player scores. To be able to deal with the elements of your gaming plate- form at run-time, your graphics libraries and your games must be implemented as dynamic libraries, loaded at run- time.
We used the SFML, SDL2 and ncurses graphical libraries.
We needed to follow the following architecture:
If you want to implement your game or graphical library, please use our abstraction and read the documentation:
To install SFML please refer to the installation guide
To install SDL2 please refer to the installation guide
To install ncurses library please refer to the installation guide
Linux:
make
./arcade ./lib/(first graphical lib to be loaded).so
Make sure that you have Doxygen installed
make doc
File are generated in ./Documentation folder.
If you have Firefox you can run:
make doc-firefox
It generate documentation and launch a html preview.
You can change game's textures at runtime.
To do so you need to use 50px x 50px images place them in ./resources
folder and name it like this:
Object | Name |
---|---|
Apple | apple.png |
Ball | ball.png |
Enemies | enemi.png |
Player | player.png |
Pac gum | special.png |
Wall | wall.jpeg |