Game States, Game Over, and Restart Logic
So far, our game only has one mode: running.
That’s fine for experiments, but real games don’t work like that.
A real game has states:
a start screen
a playing state
an ending state
In this part, we’ll introduce game states and finally handle:
...
ctrl-alt-delete.hashnode.dev6 min read