Door to freedom error screen.fill()

Joined
Sep 23, 2022
Messages
1
Reaction score
0
#womt work here but on a IDE

#I have opened the command prompt and used the command "pip install pygame" and it was successful
import pygame

pygame.init()
#pygame.initialize
display.set_caption("Door to Freedom")
#display the title of the game
screen=pygame.display.set_mode((800,600))
#screen size
while True:
for event in pygame.get():
if event.type==pygame.QUIT:
quit()
#while loop for the games window

screen.fill((128,0,0)
#fill the display screen red
pygame.display.flip()
#not sure why this function
#Can't get screen.fill red to work any solution.

#my solution:
#: 1 try making a using the clasa screen witb the function fill. This would be the syntax: screen = screen.fill (128,0,0)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top