Hello, I have come to a point in my 2D game ( I'm writing the whole engine myself for learning purposes ), where I need to create some kind of class that Inherits from my GameEntity class that will contain Entities that actually move somehow in my game.
For example, that class ( MovableGameEntity ) could contain an enemy, so it would have to be initialized with the Sprite Sheet movement frames for that particular enemy, and somehow the atributes for that enemy, like "Energy", "Speed" , "Strength" , "Defense"..etc . But that class could also be the one that contains some kind of animated projectile thrown by some enemy or my main character, or a big falling rock, etc.
I'm trying to figure out if this approach is fine, and if it is, try to make it pretty generic, maybe "data driven", but wanted some insight or advice in how to do so. I don't want to end up with "Enemy1 class" "Enemy 2 Class" ... "Enemy N class" , etc etc.
So any kind of advice or experience if someone already did something similar, is pretty welcome.