Skip to content

Instantly share code, notes, and snippets.

import pygame
import pygame.freetype
from pygame.sprite import Sprite
from pygame.rect import Rect
BLUE = (106, 159, 181)
WHITE = (255, 255, 255)
def create_surface_with_text(text, font_size, text_rgb, bg_rgb):
import pygame
from pygame import FULLSCREEN
from pygame.rect import Rect
def wait_for_keypress():
""" waits for keypress """
running = True
while running:
for event in pygame.event.get():