Skip to content

Instantly share code, notes, and snippets.

@WierQ
WierQ / Update of my project
Created April 19, 2021 06:18
Now I have added colors!
import pygame, sys
pygame.init()
screen = pygame.display.set_mode((1366, 768))
box = pygame.Rect(2.5, 2.5, 5, 5)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit(0)
import pygame, sys
pygame.init()
screen = pygame.display.set_mode((1366, 768))
box = pygame.Rect(2.5, 2.5, 5, 5)
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit(0)