@AriTelford1/

BustlingMedicalHacks

Pygame

No description

fork
loading
Files
  • main.py
  • meow.png
  • nohup.out
  • normalcat.png
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import pygame, sys, time, random
from pygame.locals import *

pygame.init()

width = 400
height = 400
windowSurface = pygame.display.set_mode((width, height), 0, 32)

white = (255, 255, 255)

cat = pygame.Rect(100, 100, 400, 400)
catImg = pygame.image.load('normalcat.png')
stretchCat = pygame.transform.scale(catImg, (400, 400))

windowSurface.fill(white)
while True:
  windowSurface.blit(stretchCat, cat)
  pygame.display.update()