import pygame, sys from pygame.locals import * # Initialize pygame pygame.init() #Set window | Title window = pygame.display.set_mode((800,600)) pygame.display.set_caption('PyGame') # Colours white = (255, 255, 255) black = (0,0,0) # Images logo = pygame.image.load('logo.png').convert_alpha() # Set running to True running = True # Main loop while running: for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit() # Setting window background to white window.fill(white) # Adding an image window.blit(logo, (0,0)) # Necissary code pygame.display.flip()
Python | Pygame
Now we're at the top, idk, finally looking into game development, wish me luck...