1
0
Fork 0
mirror of https://github.com/eXpl0it3r/SmallGameEngine.git synced 2026-01-01 10:22:58 +00:00
A small game engine or better said a state machine.
Find a file
2021-07-16 10:20:36 +02:00
.github/workflows Add support for GitHub Actions 2021-07-10 01:57:41 +02:00
bin/img Restructured repository. 2013-08-29 15:32:04 +02:00
src Handle errors with exceptions 2021-07-10 12:04:20 +02:00
.gitignore Ignore build artifacts for git 2020-04-28 17:33:51 +02:00
CMakeLists.txt Add small CMake enhancement 2021-07-16 10:20:36 +02:00
LICENSE.md Handle errors with exceptions 2021-07-10 12:04:20 +02:00
README.md Remove Travis CI and Appveyor 2021-07-10 02:04:19 +02:00

SmallGameEngine

This small game engine, or if you look at it in more detail it's actually just a state machine, is the result of a thread in the SFML forum, where someone pointed to a tutorial on a state machine programmed in C++ and intended for the graphics Simple DirectMedia Library (SDL). I've taken the question as a challenge and transformed the source code to make use of the Simple and Fast Multimedia Library (SFML) instead. Meanwhile I've added quite a few changes to not only provide a more modern approach to C++ by using features from the new C++17 standard, as well as utilizing idioms likes RAII, but also to encapsulate classes a bit better.

License

This software is available under 2 licenses -- choose whichever you prefer.
For further details take a look at the LICENSE file.

  • Public Domain
  • MIT

Credits

A big thanks for the tutorial in the first place goes out to Anthony Lewis, make sure to checkout his development blog and his personal blog. Thanks to kurayama for the suggestion on using a template based Build() function rather than the Instance() functions embedded in every state class.