Hi guys,
So I’ve worked through a few 2d java game programming tutorials on YouTube and learned a lot along the way. However, I’m still struggling to put all the pieces together in coherent fashion. One of the most challenging things is integrating everything into a game that transitions smoothly from state to state.
Lets say you have a game that starts at the title screen. You press start. The title screen fades to black, and a pre-level screen fades in, indicating the level and remaining lives. This screen fades to black, and the actual game fades in. You fall down a hole and die. The level fades out, the pre level screen fades back in, wash, rinse, repeat until you run out of lives, get a game over screen, and are booted back to the title.
How is this sort of transitioning best handled? How do the pros do it? These YouTube tuts don’t ever get in to that kind of stuff; it’s always about the lower level stuff. I did a tut that involved gameStates being held on a stack, but I’m not really sure how to use it, or if it’s even the right approach to use.
Any advice is appreciated!!!