-
-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[developer] Define and write the ECS guides #71
Comments
Suggestion by @anselm (paraphrased)There could be more detailed docs on why ecs or how the ecs pattern works a bit more philosophically. I feel like the core pattern of the engine is to encourage developers to use a declarative or data driven pattern for expressing the objects and relationships. The goal is to separate the WHAT from the HOW. And the reason ECS maps well to that is that it encourages granularity. The difference is pretty clear if you compare a traditional Threejs application (such as building a simple scene) with an ECS approach. For example here you focus on both WHAT and HOW: const scene = new scene()
const camera = new camera()
scene.add(camera) Whereas in a data driven pattern you're tending to focus just on WHAT: const elements = [
{ type: scene }
{ type: camera, parent: scene }
]
loadstuff(elements) Philosophically the latter approach is cleaner. |
Converts the ECS article into a section, reorganizes its structure and extends it with new content.
TODO:
Todo: Anselm's suggestions
Temporarily moved out of the Getting Started guide. Should be moved into the guide.
The text was updated successfully, but these errors were encountered: