clock tick 5

This commit is contained in:
Adam Osiowy 2020-04-03 18:40:14 +02:00
parent ab6ad4f2f8
commit 4b19899d0b
2 changed files with 1 additions and 5 deletions

View File

@ -35,7 +35,6 @@ plansza = np.array([[modele.Kratka(i, j) for i in range(ILOSC_KOLUMN)] for j in
# smieciarka
smieciarka = modele.Smieciarka(10, 10)
plansza[10, 10].setJestSmieciarka(True)
plansza[10, 10].setKolor(BLUE)
# kontenery
@ -119,7 +118,7 @@ def game():
smieciarka.w_dol()
# Limit to 60 frames per second
clock.tick(1)
clock.tick(5)
# czarny kolor w tle
obraz.fill(BLACK)

View File

@ -111,9 +111,6 @@ class Kratka(pygame.sprite.Sprite):
def setImage(self, image):
self.image = image
def setJestSmieciarka(self, bool):
self.jestSmieciarka = bool
def setJestPrzeszkoda(self, bool):
self.jestPrzeszkoda = bool