approachcircle / Pong

a pong game written in LibGDX
GNU General Public License v3.0
1 stars 1 forks source link

allow `Renderable`s to hide and show themselves #13

Closed approachcircle closed 5 months ago

approachcircle commented 5 months ago

this would remove the need for each one of a Screen's Renderables needing to be rendered by the user, and instead the screen can just render them itself, cleaning up code significantly and also probably making rendering more efficient. each Renderable can have a show() and hide() method also

approachcircle commented 5 months ago

the core system has been rewritten to support a member list on every Screen, but by default Renderables cannot be shown or hidden. this is now necessary as rendering of each Renderable is now abstracted away. it can be overriden and done manually, but that would be impractical.