Scene Switching =============== Goals ----- - Use if statements to draw different scenes depending on a scene variable. - Use keys to change the scenes Starter code ------------ :doc:`Pygame Template ` Video Tutorial -------------- .. raw:: html What you need to do ------------------- - Add another scene - When the last scene has been reached, wrap back to the first scene. - Implement the ability for the left arrow key to go to the previous scene. - Factor out each scene into its own function Final Code ---------- .. literalinclude:: code/scene_switching_final.py :linenos: :emphasize-lines: 22, 33-34, 45, 50