News for hackers. Stuff that matters.
Re:Comfy, the 2D rust game engine, is now archived by CaptainOfCoit on Tuesday September 10, 2024 @08:15AM (#41499980)
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.
Re:Comfy, the 2D rust game engine, is now archived by spoiler on Tuesday September 10, 2024 @08:42AM (#41500170)
Yeah 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!