Elektrine lite

← Feed

@dolanor@hachyderm.io

2026-08-14 11:22 UTC

In my quest to understand it more and dig deeper, I read this article: https://replicaisland.blogspot.com/2009/09/aggregate-objects-via-components.html And basically, from what I understand, it's mostly about using composition instead of inheritance. The usual culprit in software design since the GoF Design Patterns book. Anyway, Go is designed with composition first hand, so I guess I'm in good company. And I'm wondering if I actually need an ECS framework or whatever. #gamedev #ecs #golang

Replies (1)

  • @dolanor@hachyderm.io 2026-08-14 11:33

    A few years back, I started a video game as well, but never finished as it was multiplayer, so of course, it was too complicated to finish quickly. In trying to create a generic system to compute those kind of values used in different part of the game, I arrived to some design of generic dynamic values that can be filtered when needed. So I guess, I was making this ECS system without knowing it (at least the EC part of it). But I had the tags, the filter, the dynamic and generic. Nice little ego boost. Especially it was YEARS before I knew about ECS. I might actually integrate it in this current game. Let's see how it evolves. #gamedev #ecs #golang

    Open ##5199199