Skip to content

Instantly share code, notes, and snippets.

View novialriptide's full-sized avatar

Andrew Hong novialriptide

View GitHub Profile
@novialriptide
novialriptide / movingrect.py
Created March 21, 2022 21:50
thecoderschool example
"""
Hi Nick, I added some comments and stuff while you were teaching.
Hope you have less stressful sessions than I did!
- Andrew
"""
import pygame
screen = pygame.display.set_mode((256, 224))
moving_right = False
import pygame
import random
pygame.init()
window = pygame.display.set_mode((420, 420))
font = pygame.font.SysFont("Comic Sans", 20)
game_over = False