My game has a title screen, and a gameplay screen.
I'm having trouble with changing the backgrounds between screens.
My gameplay screen is created by instancing a "Level" class, which in it's init function, calls setBackgroundDrawingCallback().
I also have a "TitleScreen" class that I instance when I move to the title screen.
I tried adding a setBackgroundDrawingCallback() to it's init function, but realized that the function is creating a new sprite, rather than reconfiguring some global background variable/configuration.
So I'm also now realizing, that every time I load a new level, I'm creating another BG sprite!
How should I handle this?
Is there an easy way to remove all background sprites?