Skip to content

Instantly share code, notes, and snippets.

View testalgoritmika's full-sized avatar

testalgoritmika

View GitHub Profile
import pygame
from random import randint
import time
pygame.init()
window = pygame.display.set_mode((500,500))
window.fill((0, 255, 255))
clock = pygame.time.Clock()
class Area():
def __init__(self, x, y, width, height, color):
self.rect = pygame.Rect(x, y, width, height)