Skip to content

Instantly share code, notes, and snippets.

View Stuuupidfish's full-sized avatar
💭
they should make github reels

Elaine Cui Stuuupidfish

💭
they should make github reels
View GitHub Profile
@Stuuupidfish
Stuuupidfish / Tetris.py
Created October 5, 2025 02:05
I made this when I first started coding so the code is kinda bad-- this didn't need a whole repo for it so I'm reposting it as a gist
import pygame
import sys
import random
#import copy
# import time
pygame.init()
blockWidth = 30
@Stuuupidfish
Stuuupidfish / PixelPainter.py
Created January 10, 2025 05:02
its what the title says, a pixel art program. just press tab to open up the color picker and type in the rgb value you want as your current color. click on the squares to color them. its a simple project so no fancy ui and stuff so i totally recommend reading this before running it lol
#importing libraries
import pygame, sys
#initialize Pygame
pygame.init()
#set dimensions and scale
BLOCK_WIDTH = 30
GRID_WIDTH = 40
GRID_HEIGHT = 30