1
SFML projects / Re:creation - a top down action rpg about undeads
« on: September 07, 2015, 02:31:21 am »@Grimshaw, thank you for encouraging words!
Do you store components contiguously or not?Sometimes the time you save in development by doing something slightly less correct can pay off as well. Engineering time is a resource as much as memory or CPU, consider thatYep, but it can improve the engine design a lot and save me lots of time in the future. It's hard to be sure from the beginning.
Yes I do, but its not a hard requirement. I basically have one pool per component type, which hands me N component instances when I ask for them.. So most of them should be contiguous, most of the time, but the world subsystem will work with even components allocated with new if I prefer it. You should totally commit to making the best library of components you can, either with behavior in component or component + system.
How you put these components together could and should be less hardcoded and allow more flexibility from game code.