Ejemplo n.º 1
0
 def __init__(self):
     super(Snake, self).__init__()
     self.snake = [[19, 15], [20, 15], [20, 15], [20, 15]]
     self.direction = 180
     self.apple = Apple()
     self.score = 0
     GameEngine.change_mode(640, 480)
     GameEngine.change_caption("Snake")
Ejemplo n.º 2
0
 def exit(self):
     GameEngine.change_mode(GameEngine.display_width,
                            GameEngine.display_height)
     GameEngine.change_caption("Classic Games in Python")