Registered 2018-08-12 by Raphaël Seban

A game skeleton written in C++ and using SDL2 multimedia library. file excerpt:

SDL2/C++ Game Template

What is it?

A game skeleton written in C++ and using the SDL2 multimedia library

Initially written for my own training in C++ with shared libs, this
game template is now released to coders, in the hope it might be useful
in any way.

Only the most generic basis of a game structure has been implemented
here, giving to you the largest freedom of act.

You may find:

* an easy-to-catch game screen switching system,
* pictures, fonts, sounds and music management through asset store
* general purpose sprites and thread-animated sprites,
* highly configurable and specific thread-animated sprites, such as
score text display, score bonus flying texts and user information fade
in / fade out text display,
* multiple players and high-score management libs,
* predefined screens you can freely tune up to meet your own needs,
* and many, many other features to discover on your own.

Please, take a look at **include/** project directory to get more.


This project is licensed under the GNU General Public License (GPL),
either in version 2 or in any later version.

You should have received a LICENSE file along with it.

If not, please see <>.


Code should be rather self-explanatory as it has been written in a
scholar style.

However, a Doxygen-generated documentation is now available in **doc/**
project directory.

More information opening **documentation.html** file into a web browser
or directly opening **doc/html/index.html** file instead.

Free as a bird

Feel free to grab this game template, to adapt it or to upgrade it to
meet your own needs.

Written in C++14, tested and compiled OK under Ubuntu 18.04 and later

Released as is for training purpose, experimental use, with absolutely
no warranty of any kind (see LICENSE terms).

Tools used

* Geany Integrated Development Environment (IDE) - text editor
* GNU Compiler Collection (GCC) - g++ - C++ compiler
* GNU make
* SDL2 multimedia library

How to install SDL2 library?

On a recent Linux Ubuntu distro, open a terminal console and then enter
the following command:

sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev


Keep floppy in, get more fun:

SDL2/C Game Template

SDL2/C++ Game Template

SDL2/C++ Scuba Max

Arduino UNO R3 sketches

Project information

Raphaël Seban
Raphaël Seban

RDF metadata

View full history Series and milestones

trunk series is the current focus of development.

All code Code

Version control system:
Programming languages:

All bugs Latest bugs reported

More contributors Top contributors

Get Involved