@JustARatherRidi/

pygame test

Pygame

No description

fork
loading
Files
  • main.py
  • nohup.out

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.2146229073386694","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHB5Z2FtZQpweWdhbWUuaW5pdCgpCnNpemUgPSAoODAwLCA2MDApCmJnY29sb3IgPSAoMTAwLCAyMDAsIDI1NSkKCnNjcmVlbiA9IHB5Z2FtZS5kaXNwbGF5LnNldF9tb2RlKHNpemUpCgpzY3JlZW4uZmlsbChiZ2NvbG9yKQpweWdhbWUuZHJhdy5yZWN0KHNjcmVlbiwgKDI1NSwgMCwgMCksICgwLCAwLCAxMDAsIDEwMCkpCgp3aGlsZSBUcnVlOgogICAgcHlnYW1lLmRpc3BsYXkuZmxpcCgp"},"asBuffer":null},"loaded":true}}
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()