Madra_smieciarka/main.py
2024-03-25 11:21:23 +01:00

26 lines
590 B
Python

from generators import *
W = 960
H = 640
SIZE = (W, H)
pygame.init()
screen = pygame.display.set_mode(SIZE)
tilemap = Tilemap(Tileset("sprites/Tiles/1 Tiles/FieldsTile_38.png"), (30, 20))
trashcans = trashcanGenerator()
houses = householdGenerator()
garbagetruck = Garbagetruck().setPredicts(extractPredicts(houses))
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
screen.fill((0, 0, 0))
tilemap.render()
screen.blit(tilemap.image, tilemap.rect)
pygame.display.update()
pygame.quit()