repl.it
@JustARatherRidi/

pygame test

Pygame

No description

fork
loading
Files
  • main.py
  • nohup.out
main.py
1
2
3
4
5
6
7
8
9
10
11
12
import pygame
pygame.init()
size = (800, 600)
bgcolor = (100, 200, 255)

screen = pygame.display.set_mode(size)

screen.fill(bgcolor)
pygame.draw.rect(screen, (255, 0, 0), (0, 0, 100, 100))

while True:
    pygame.display.flip()
?