Skip to content
Snippets Groups Projects
Commit bfe7107f authored by Riley Robbins's avatar Riley Robbins
Browse files

Initial Setup: Starting files and window.

parent 8d1a50ff
Branches main
No related tags found
No related merge requests found
main.py 0 → 100644
import pygame
import sys
# Initialize Pygame
pygame.init()
# Set up screen
WIDTH, HEIGHT = 800, 600
screen = pygame.display.set_mode((WIDTH, HEIGHT))
pygame.display.set_caption("Cytoblasters")
# Colors
WHITE = (255, 255, 255)
BLACK = (0, 0, 0)
# Game loop
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
screen.fill(WHITE) # Clear screen
pygame.display.flip() # Update screen
pygame.quit()
sys.exit()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment