- Notifications
You must be signed in to change notification settings - Fork16
A small game engine or better said a state machine.
License
eXpl0it3r/SmallGameEngine
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This small game engine, or if you look at it in more detail it's actually just a state machine, is the result of athread in the SFML forum, where someone pointed to atutorial on a state machine programmed in C++ and intended for the graphicsSimple DirectMedia Library (SDL). I've taken the question as a challenge and transformed the source code to make use of theSimple 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 likesRAII, but also to encapsulate classes a bit better.
This software is available under 2 licenses -- choose whichever you prefer.
For further details take a look at theLICENSE file.
- Public Domain
- MIT
A big thanks forthe tutorial in the first place goes out toAnthony Lewis, make sure to checkout hisdevelopment blog and hispersonal blog.Thanks tokurayama for the suggestion on using a template basedBuild()
function rather than theInstance()
functions embedded in every state class.
About
A small game engine or better said a state machine.