tjohnman / Behonge

SFML boilerplate code for Ludum Dare.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Behonge

SFML boilerplate code for Ludum Dare. It's a simple state system. Events and draw and update calls are passed down from the main loop to the current game state. States are stored in stack form. States pass calls down to objects, which may or may not have children. Objects are to be subclassed, but feature attachable behaviors.

Also includes a small static class that loads and plays sounds and a static class for managing sf::Texture instances.

Music should rely on SFML's sf::Music.

All the header files are commented.

Disclaimer

Not guaranteed to even work, not to mention not setting your computer on fire.

This code was very hastily cobbled together and is intended as a personal way of having boilerplate stuff already in place for prototyping, Ludum Dares and whatnot. It is intended to be cut, modified or expanded as needed, not as a production framework. Performance, good coding practices and even functionality are not guaranteed.

Suggestions and comments are welcome, but please keep the above in mind when doing so.

The code is public domain.

About

SFML boilerplate code for Ludum Dare.


Languages

Language:C++ 100.0%