Closed realmatthewpeng closed 2 months ago
I figured it out. Not a code logic issue. Just needed to change file paths to models and it worked.
@Melody-Ruth https://austinmorlan.com/posts/entity_component_system/#the-system
Theoretically, if we follow "true" ECS, the World should not be responsible for updating state. Instead, this should be implemented through different Systems, such as movement system, collision system, health system, etc. The benefit I guess is in our final game loop, we wouldn't have a bunch of function calls like: { detectCollision(); performMovement(); updateHealth(); } but rather, a loop through all the systems stored in the world with a call to update() on each. I think using Systems would be more challenging to set up, but easier to extend. In any case we should discuss which direction is more suited for our purposes.
Looks good. I will add some changes to eliminate data duplication (--my old arrays) and embrace ECS.
nvm client still segfaulting on my machine