Hacker News new | ask | show | jobs
by pb82 1975 days ago
Very nice. I found some excitement in the topic of game programming patterns after learning about Entity Component Systems. For me it was a huge, well, game changer. I tried for years to build games but always gut stuck and/or lost interest. ECS allowed me to do finally get somewhere. I'm working on a small 2d action rpg [1] and a lot of the requirements can neatly be expressed as entities and components. Even something like a save/load system should fit into this by serializing all entities at once.

[1] https://github.com/pb82/zwei

1 comments

Yes, it is a form of composition over inheritance where the components can be added or removed at runtime. At least that's how i'm using it.