Re:Goodbye, shitty Car extends Vehicle object-orientation tu...
by redisman on Friday June 24, 2022 @01:17PM
(#31865993)
Even in games composition is much better and what pretty much every engine forces you to use these days. Itβs a lot more flexible too as you can compose a new boss out of ten different components rather than having to refactor a crazy tree of nonsense
It wasn't until I started trying to make a simple video game that these concepts made sense: an "Enemy" class could have properties of health and speed that a "Boss" or "Minion" could inherit from, etc.