This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(): |