Skip to content
/ Arcade Public

C++ project with multiple graphical libraries.

Notifications You must be signed in to change notification settings

antwxne/Arcade

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arcade cpp sfml sdl2 ncurses

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:

Previews

Pacman
SFML
SDL2
Ncurses
Nibbler
SFML
SDL2
Ncurses

Requirements

SFML >= 2.5

To install SFML please refer to the installation guide

SDL2

To install SDL2 please refer to the installation guide

Ncurses

To install ncurses library please refer to the installation guide

Build and run

Linux:

make
./arcade ./lib/(first graphical lib to be loaded).so

Documentation

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.

Bonus

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

Contributors

  • Théo Campos github-link
  • Clément Ruat github-link
  • Antoine Desruet github-link