Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pygame make a window

import pygame

pygame.init()

screen = pygame.display.set_mode(800, 600)
caption = pygame.displayer.set_mode("My gaem")

running = True
while running:
    screen.fill(0, 0, 0)
    
    for i in pygame.event.get():
        if(i == pygame.quit):
            running = False
            pygame.quit()
            quit()
    pygame.update()
Source by dr0id.bitbucket.io #
 
PREVIOUS NEXT
Tagged: #pygame #window
ADD COMMENT
Topic
Name
5+1 =