SFML community forums

General => SFML projects => Topic started by: ResponsibleFile on January 12, 2020, 11:42:32 pm

Title: SFML + Entity Component System (EnTT) Example
Post by: ResponsibleFile on January 12, 2020, 11:42:32 pm
I've been trying to make a couple of projects, so I can score an internship. I got pretty heavy into the idea of entity component systems, and I made one of my own. That was a mistake.

While searching for some examples of EnTT in an applied context, I had to jump through fire hoops because there are almost no tutorials using it. Eventually, I stumbled across a couple examples of EnTT being used in conjunction with SFML, but they were largely poorly written or without any comments. As a preface, I'm an undergrad computer science student, so this was made with my limited knowledge of both the language and frameworks used.

Nevertheless, here's an example of the EnTT framework using SFML and C++ 17:
https://github.com/Responsible-File/ECS-SFML-Platformer

I tried to comment everything to the best of my abilities, and if you're looking for a good place to start, I'd suggest "SourceCode/Private/Managers/MSystemManager.cpp". This is the central location that defines the game instance.