diff --git a/codealong b/codealong new file mode 100644 index 0000000..501c982 --- /dev/null +++ b/codealong @@ -0,0 +1,21 @@ +import pygame +from sys import exit + +pygame.init() +screen = pygame.display.set_mode((800,400)) +pygame.display.set_caption('Runner') +Clock = pygame.time.Clock() + +sky_surface = pygame.image.load('graphics/Sky.png') +ground_surface = pygame.image.load("graphics/ground.png") + +while True: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + pygame.quit() + exit() + screen.blit(sky_surface,(0,0)) + screen.blit(ground_surface,(0,300)) + + pygame.display.update() + Clock.tick(60)