Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pygame python

import pygame
import sys

WIDTH = 600
HEIGHT = 650
Frame_P_second = 60
pygame.init()
win = pygame.display.set_mode((WIDTH, HEIGHT))
running_game = True
while running_game:
    for events in pygame.event:
      if event.type in pygame.event == "QUIT":
        running_game = False
        break
        sys.exit()
    else:
      running_game = True
      
Source by www.pygame.org #
 
PREVIOUS NEXT
Tagged: #pygame #python
ADD COMMENT
Topic
Name
8+3 =