Elektrine lite

← Feed

@dolanor@hachyderm.io

2026-08-14 11:19 UTC

I've been blindly applying ECS with the tutorial. Some part didn't make sense at all, and I thought it should be designed differently. I do understand ECS theoretically, but in general, my brains gets it better when it gets concrete. Little by little, it seems that ECS is clicking. Especially when I started to code the attack logic. I feel I would have struggled to gather everything I needed to be able to compute that in a different way. So, YAY ECS. #gamedev #ecs

Replies (1)

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

    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

    Open ##5199198