mini improvements
added a way to toggle fullscreen in game (press F11) and corrected the stopped animation on left side move. Because having a leg in the air for a long time isn't normal. Even in a game.
This commit is contained in:
parent
05eedc9351
commit
417323cb40
2
core.py
2
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)
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user