2 ms·
Yeah, I ran into the class hierarchy problem in my early gamedev attempts. When I encountered this article some years ago I thought "cool, real actual professio
by bitwize 4y ago
Yeah, I ran into the class hierarchy problem in my early gamedev attempts. When I encountered this article some years ago I thought "cool, real actual professional game developers ran into the same problems I did!"
My first solution involved something I called "agents" which are really just delegates. Agents could be chained, allowing a given behavior to be written just once and combined with other behaviors. These days I am fully on board the ECS train in my game work. Though it presents complexities of its own, ECS really helps manage the combinatorial explosion of state and behavior a game object may have.