Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's strange because I was about to comment the exact opposite. ECS is for games, inheritance is for almost everything else


For games having your character as a type of a general class fits well. Having enemies be a type of a class with a base of abilities can fit well too. Weapons, etc all module well. Game play. Scenes.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: