Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This code is released under GPLv3+ by DaFluffyPotato
- import pygame, sys
- clock = pygame.time.Clock()
- from pygame.locals import *
- pygame.init() # initiates pygame
- pygame.display.set_caption('My Pygame Window')
- WINDOW_SIZE = (400,400)
- screen = pygame.display.set_mode(WINDOW_SIZE,0,32) # initiate the window
- while True: # game loop
- for event in pygame.event.get():
- if event.type == QUIT:
- pygame.quit()
- sys.exit()
- pygame.display.update()
- clock.tick(60)
Advertisement
Add Comment
Please, Sign In to add comment