diff --git a/core.py b/core.py index 860f696..93b9da8 100644 --- a/core.py +++ b/core.py @@ -251,6 +251,8 @@ class Game: self.posX -= 16; self.lastMove = "-X"; self.scrolling() if event.key == pg.K_ESCAPE: self.changeMenu("pause") + if event.key == pg.K_F11: + self.toggleFullscreen(); print('fullscreen toggled to ' + str(self.fullscreenState)) elif event.type == pg.KEYUP: if self.lastMove == "+Y": self.picCoordinates = playerAnimation('noneDown', self.gender) diff --git a/settings.py b/settings.py index be5c8bf..b52c092 100644 --- a/settings.py +++ b/settings.py @@ -35,7 +35,7 @@ def playerAnimation(direction, gender): return playerCoordinatesLast[2] elif direction == 'noneLeft': playerCoordinatesLast = playerCoordinatesLast["left"] - return playerCoordinatesLast[playerAnimationLoop] + return playerCoordinatesLast[2] elif direction == 'noneRight': playerCoordinatesLast = playerCoordinatesLast["right"] return playerCoordinatesLast[2]