Skip to content
Snippets Groups Projects
Commit 813c2e7c authored by Léo Duchmann's avatar Léo Duchmann
Browse files

Modifications

parent c6f43b89
No related merge requests found
......@@ -111,8 +111,6 @@ class Game:
self.champs.append(champ.buyField())
self.champs.remove(champ)
self.money -= champ.prix
else:
self.moneyError()
if self.frame < self.buyFrame + 20:
......@@ -125,19 +123,6 @@ class Game:
self.clock.tick(50)
self.frame += 1
def moneyError (self):
loop = True
while loop:
popUp = pygame.draw.rect(self.screen, (0,0,0), (self.screenSize/3, self.screenSize/3))
for event in pygame.event.get(pygame.MOUSEBUTTONDOWN):
if popUp.contains((*event.pos,0,0)):
loop = False
break
pygame.display.update()
self.clock.tick(50)
def gameLoopSecondScreen (self):
while True:
self.screen.blit(self.grange, (0,0))
......
assets/flecheScene2.png

29.7 KiB

0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment