3 ms·
But that's not really true either, is it? You don't query properties in JavaScript, at best you query for Objects of a certain shape/name. You don't encapsulate
by CaptainOfCoit 2y ago
But that's not really true either, is it? You don't query properties in JavaScript, at best you query for Objects of a certain shape/name. You don't encapsulate data in properties so one object has many different behavior based on those, you either split the Object into many different ones and have one parent, or you mix the behavior into the same Object.
- spoiler 2y agoYeah I it's not right. Although, it's a decent early mental model for a JS dev learning ECS to adopt until better intuition develops!