diff --git a/images/stickman.png b/images/stickman.png new file mode 100644 index 0000000..2b4be14 Binary files /dev/null and b/images/stickman.png differ diff --git a/simulation.py b/simulation.py new file mode 100644 index 0000000..db20a46 --- /dev/null +++ b/simulation.py @@ -0,0 +1,32 @@ +import pygame + +pygame.init() + +SCREEN_WIDTH = 1280 +SCREEN_HEIGHT = 720 + +screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) +screen.fill("Grey") +stickman = pygame.image.load("images/stickman.png") +stickman = pygame.transform.scale(stickman, (30.072, 67.2)) + + + + +if __name__ == "__main__": + run = True + while run: + + key = pygame.key.get_pressed() + if key[pygame.K_a] == True: + print("a") + + for event in pygame.event.get(): + if event.type == pygame.QUIT: + run = False + + screen.blit(stickman, (0,0)) + + pygame.display.update() + + pygame.quit() \ No newline at end of file