diff options
Diffstat (limited to 'Game.py')
| -rw-r--r-- | Game.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -109,13 +109,13 @@ class Game: return (pos in self.snake.cells) or (pos in map(lambda box: box.pos, self.boxes)) def tick(self): - lastSnakeCell = self.snake.cells[len(self.snake.cells) - 1] + self.snake.move() + + lastSnakeCell = self.snake.cells[0]#[len(self.snake.cells) - 1] if (lastSnakeCell.x < 0 or lastSnakeCell.x >= self.width()) or (lastSnakeCell.y < 0 or lastSnakeCell.y >= self.height()): self.nextLevel() return - self.snake.move() - for static in self.statics: match static: case PressurePlate(): |
