Ejemplo n.º 1
0
    def __init__(self, application):
        CursesScreen.__init__(self, application)

        self.game_screen = None
        self.message_window = None
        self.message = "Press any key to start."

        self.create()
Ejemplo n.º 2
0
    def __init__(self, application):
        CursesScreen.__init__(self, application)

        self.last_screen = None

        self.options = self.create_options()
        self.option = 0

        self.window = self.create_window()
Ejemplo n.º 3
0
    def __init__(self, application):
        CursesScreen.__init__(self, application)

        self.world = None
        self.game_window = None

        self.snake_body = []
        self.score = 0
        self.food = (0, 0)

        self.create()