Hello,
So I've completed an entity component system. I had a few questions.
- Is it common to consider the tile map itself a component? Assigning it a sprite component, transformation ect? Or is this generally separate from it all? It seems like it would bloat up the ECS having 10,000 tiles (for example).
- What are some more popular/common components to add (data structures)? At the moment I have a transform, rigidbody, sprite, camera, boxcollider, textlabel, health, script (for reading scripts), projectile, animation, input and the corresponding systems. Of course this might really depend on the type of game you are making, but I'm just trying to see if there is anything standard that I most likely will be adding anyways? I can't seem to find anything on github that shows a more complete example of what they used? I might just look into what Unity and Unreal provide, but this is strictly 2D at the moment.
- I haven't created some type of pathfinding, because I have yet to decide how to go about the tile map.
Any advice or tips would be appreciated.
Thanks, take care, be safe.