From 8d1237eced877663cf74793b673961e8a4f7ea35 Mon Sep 17 00:00:00 2001 From: czorekk Date: Wed, 9 Mar 2022 21:27:57 +0100 Subject: [PATCH] first commit --- main.py | 30 ++++++++++++++++++++++++++++++ tile1.png | Bin 0 -> 133 bytes 2 files changed, 30 insertions(+) create mode 100644 main.py create mode 100644 tile1.png 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 0000000000000000000000000000000000000000..52ab7c8c9c216a3976837b189d314265fdd7adcc GIT binary patch literal 133 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61SBU+%rFB|jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucK`Boc#}EtuWCiv=>a0Ck3Tz;JA?on|{|pVG W3u?H3Upxj>#o+1c=d#Wzp$PzaUn2+r literal 0 HcmV?d00001