A little bug were hidden under the hood !
I found that with re organization I forgot to change this line to the new systel so if you tried to quit the game by clicking the red cross, it would make the whole game crash.
This commit is contained in:
SergentThomasKelly 2018-04-25 17:50:36 +02:00
parent 68a88548c0
commit d7134f8bc0

View File

@ -261,7 +261,7 @@ class Game:
elif self.lastMove == "-Y":
self.picCoordinates = playerAnimation('noneUp', self.gender)
if event.type == pg.QUIT:
self.pause()
self.changeMenu("pause")
# ========================================== PAUSE SCREEN ==================================================== #
if self.state == 'pause':
for event in pg.event.get():