diff --git a/src/main.py b/src/main.py index 5aae138..121834a 100644 --- a/src/main.py +++ b/src/main.py @@ -24,6 +24,14 @@ import os Variables ''' # variables go here +worldx = 960 +worldy = 720 +fps = 40 +ani = 4 +BLUE = (25, 25, 200) +BLACK = (23, 23, 23) +WHITE = (254, 254, 254) +main = True # ----------------- ''' Objects @@ -34,10 +42,34 @@ Objects Setup ''' # run-once code goes here +clock = pygame.time.Clock() +pygame.init() +world = pygame.display.set_mode([worldx,worldy]) +backdrop = pygame.image.load(os.path.join('stages','Untitled.png')) +backdropbox = world.get_rect() # ----------------------- ''' Main Loop ''' # main game loop goes here +while main: + for event in pygame.event.get(): + if event.type == pygame.QUIT: + pygame.quit() + try: + sys.exit() + finally: + main = False + + if event.type == pygame.KEYDOWN: + if event.key == ord('q'): + pygame.quit() + try: + sys.exit() + finally: + main = False + world.blit(backdrop, backdropbox) + pygame.display.flip() + clock.tick(fps) # ------------------- diff --git a/src/stages/Untitled.png b/src/stages/Untitled.png new file mode 100644 index 0000000..3e1a79e Binary files /dev/null and b/src/stages/Untitled.png differ diff --git a/src/stages/Untitled.xcf b/src/stages/Untitled.xcf new file mode 100644 index 0000000..90cce04 Binary files /dev/null and b/src/stages/Untitled.xcf differ