I am making a game, but it doesn't work. I am new to pygame, so I think I did somenthing stupid in my code. (It opens the pygame window, but just doesn't work.)
the code in question:
from pygame import image import time import os import subprocess import pygame from pygame.locals import* from pygame import mixer pygame.event.pump def image(imagename): img = pygame.image.load(imagename) black = (0, 0 ,0 ) w = 1251 h = 584 screen = pygame.display.set_mode((w, h)) screen.fill((black)) running = 1 while running: screen.fill((black)) screen.blit(img,(0,0)) pygame.display.flip() def backstory(): pygame.init; image(imagename='backtory.') time.sleep(25) def title(): pygame.init() image(imagename='title_screen.jpg') time.sleep(3) backstory() title() for event in pygame.event.get(): if event.type == MOUSEBUTTONUP: None