Devlog #7 - Steady Progress Is Not Interesting
Sorry for the low logged time, I’ve actually been working for several hours but I forgot to install wakatime after switching to CLion.
What I’ve Been Working On
One of the most important things when working with multiple modules that work on a callback-based system is the ability to reorder modules so some callbacks get called before others.
Imagine this:
You have a module foo which clamps all particles to the window border so they can never escape the boundaries of the window.
You also have module bar which increments the X position of each particle by 3, each frame.
Say foo gets registered after bar, particles will get clamped to the border AND THEN move 3 pixels, breaking the behavior both module authors likely intended.
The Solution
Create a GUI which allows the user to reorder modules by, so a module placed after another module gets called last.
Implementation Challenges
I had to learn how std::list works (a linked list was the obvious choice for this use case), and let me tell you, it is by far one of the worst STL containers I’ve had to work with, and anyone who writes C++ code knows that MEANS somethimg.
Conclusion
Again, not much to write about today, but steady progress just isn’t all that interesting. Thanks for reading!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.