Im currently trying to program a little game (in Java - Libgdx; if thats necessary).
I currently use a GameWorld
and a GameRenderer
, the GameRenderer
just getting all the info it needs from the GameWorld
object and calling a method for every different class there is (for example drawPlayer()
, drawWorld()
etc.).
Should I let my actors draw themselves or encapsulate the data inside of another class and then pass an object of it to the GameRenderer
?