- 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)
#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)