states.py
 1  # SPDX-FileCopyrightText: 2020 FoamyGuy for Adafruit Industries
 2  #
 3  # SPDX-License-Identifier: MIT
 4  
 5  # State machine constants
 6  
 7  # playing the game: draw the map, listen for D-pad buttons to move player
 8  STATE_PLAYING = 0
 9  
10  # player beat this map level
11  STATE_MAPWIN = 1
12  
13  # waiting for player to press A button to continue
14  STATE_WAITING = 2
15  
16  # player lost by touching sparky
17  STATE_LOST_SPARKY = 3
18  
19  # minerva shows a fun fact
20  STATE_MINERVA = 4