Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pygame screen

import pygame

background_colour = (255,255,255)
(width, height) = (700, 500)
screen = pygame.display.set_mode((width, height))
pygame.display.set_caption('Tutorial 1')
screen.fill(background_colour)
pygame.display.flip()
running = True
while running:
  for event in pygame.event.get():    
    if event.type == pygame.QUIT:
      
      running = False
 
PREVIOUS NEXT
Tagged: #pygame #screen
ADD COMMENT
Topic
Name
6+6 =