This commit is contained in:
Bowske 2020-03-29 13:21:02 +02:00
commit 3d1ec7bc73
9 changed files with 8 additions and 8 deletions

16
game.py
View File

@ -7,7 +7,7 @@ class Smieciarka(pygame.sprite.Sprite):
def __init__(self, x, y):
self.x = x
self.y = y
self.image = pygame.image.load('smieciarka.png')
self.image = pygame.image.load('resources/smieciarka.png')
self.ruch = 0
pygame.sprite.Sprite.__init__(self)
self.rect = pygame.Rect(self.x * WIDTH + MARGIN * self.x + MARGIN, self.y * HEIGHT + MARGIN * self.y, WIDTH,
@ -18,7 +18,7 @@ class Smieciarka(pygame.sprite.Sprite):
self.x -= 1
self.rect.x = MARGIN + self.x * WIDTH + self.x * MARGIN
if self.ruch == 2:
self.image = pygame.image.load('smieciarka.png')
self.image = pygame.image.load('resources/smieciarka.png')
self.ruch = 1
def w_prawo(self):
@ -94,15 +94,15 @@ clock = pygame.time.Clock()
smieciarka = Smieciarka(10, 10)
kontener_plastik = Kontener(0, 0)
kontener_plastik.image = pygame.image.load("pojemnik_plastik.png")
kontener_plastik.image = pygame.image.load("resources/pojemnik_plastik.png")
kontener_metal = Kontener(0, 4)
kontener_metal.image = pygame.image.load("pojemnik_metal.png")
kontener_metal.image = pygame.image.load("resources/pojemnik_metal.png")
kontener_organiczne = Kontener(2, 2)
kontener_organiczne.image = pygame.image.load("pojemnik_organiczne.png")
kontener_organiczne.image = pygame.image.load("resources/pojemnik_organiczne.png")
kontener_papier = Kontener(4, 0)
kontener_papier.image = pygame.image.load("pojemnik_papier.png")
kontener_papier.image = pygame.image.load("resources/pojemnik_papier.png")
kontener_szklo = Kontener(4, 4)
kontener_szklo.image = pygame.image.load("pojemnik_szklo.png")
kontener_szklo.image = pygame.image.load("resources/pojemnik_szklo.png")
kontener_list = pygame.sprite.Group()
smieciarka_list = pygame.sprite.Group()
@ -153,7 +153,7 @@ while not done:
(MARGIN + HEIGHT) * row + MARGIN,
WIDTH,
HEIGHT])
screen.blit(pygame.image.load("wysypisko.jpg"), (5, 5))
screen.blit(pygame.image.load("resources/wysypisko.jpg"), (5, 5))
all_sprites_list.draw(screen)
# Limit to 60 frames per second

View File

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

Before

Width:  |  Height:  |  Size: 4.0 KiB

After

Width:  |  Height:  |  Size: 4.0 KiB

View File

Before

Width:  |  Height:  |  Size: 3.7 KiB

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB