Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fxd123
on April 11, 2024
|
parent
|
context
|
favorite
| on:
If Inheritance is so bad, why does everyone use it...
That's strange because I was about to comment the exact opposite. ECS is for games, inheritance is for almost everything else
ipaddr
on April 11, 2024
[–]
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: