commit 8d1237eced877663cf74793b673961e8a4f7ea35 Author: czorekk Date: Wed Mar 9 21:27:57 2022 +0100 first commit diff --git a/main.py b/main.py new file mode 100644 index 0000000..10a494b --- /dev/null +++ b/main.py @@ -0,0 +1,30 @@ +import pygame +pygame.init() + +pygame.display.set_caption('Wall-e') + +screen = pygame.display.set_mode([512, 512]) +screen.fill(pygame.Color('#ffffff')) + + +tileImage = pygame.image.load('tile1.png') + +surfaceSize = width, height = (512, 512) +surface = pygame.Surface(surfaceSize) + +for x in range(0, 512, 16): + for y in range(0, 512, 16): + surface.blit(tileImage, (x, y)) + +screen.blit(surface, (0,0)) + +pygame.display.update() + +running = True +while running: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + running = False + + +pygame.quit() \ No newline at end of file diff --git a/tile1.png b/tile1.png new file mode 100644 index 0000000..52ab7c8 Binary files /dev/null and b/tile1.png differ