silas-hw / SCNGame

Summer game project B)
GNU General Public License v3.0
0 stars 0 forks source link

Create a basic architecture for screens and screen transitioning #8

Closed silas-hw closed 1 month ago

silas-hw commented 1 month ago

Make the damn architecture for screens!

Easiest approach will likely involve using a sequence action with Scene2D.

Current idea:

silas-hw commented 1 month ago

Similarly, I could override the setScreen method and do it all in there. That would arguably be less gnarly.

silas-hw commented 1 month ago

Ended up creating a record to pass common screen arguments around as well

silas-hw commented 1 month ago

Screen transitions are in B) can also mess around with a wait time to force some blank frames before starting the next screen.

Transitions happen in the GameScreen itself, not the Game class. This allows the GameScreen to freeze physics updates whilst transitioning! Awesome!