Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML + Entity Component System (EnTT) Example  (Read 7141 times)

0 Members and 1 Guest are viewing this topic.

ResponsibleFile

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
SFML + Entity Component System (EnTT) Example
« 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.
« Last Edit: January 13, 2020, 12:47:54 am by ResponsibleFile »