approachcircle / Pong

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

add a method to `ScreenStack` which will peek and render the current `Screen` if it is not null #14

Open approachcircle opened 5 months ago

approachcircle commented 5 months ago

at the moment i feel like too much ScreenStack logic is relied upon the end user, so maybe we just combine all of its logic into a process() or update() method that gets called every frame, instead of manually peeking it and rendering it, but i'll re-evaluate this choice at a later time.

approachcircle commented 4 months ago

this will make the ScreenStack more resilient and self-sufficient so that end users don't have to worry about rendering a null Screen manually, but still allow them to peek the current Screen