I really don't know how to handle this nothing shows up in my pygame window, not even the screen. The fill()
line doesn't do anything. Anyone know what the problem is?
import pygame
def game():
pygame.init()
black = (0, 0, 0)
green = (0,255,0)
running = True
screen = pygame.display.set_mode((800,600))
screen.fill(green)
button_rectangle = pygame.draw.rect(screen,black,(200,150,100,50))
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
game()