@Fhillis/

hide and seek

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.4162852599896463","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHB5Z2FtZQoKcHlnYW1lLmluaXQoKQp3aWR0aCwgaGVpZ2h0ID0gODAwLCAgNjAwCmJhY2tncm91bmRDb2xvciA9IDI1NSwgIDAsICAwCgpzY3JlZW4gPSBweWdhbWUuZGlzcGxheS5zZXRfbW9kZSgod2lkdGgsIGhlaWdodCkpCgpjbG9jayA9IHB5Z2FtZS50aW1lLkNsb2NrKCkKd2hpbGUgVHJ1ZToKICAgIGR0ID0gY2xvY2sudGljayg2MCkKICAgIHNjcmVlbi5maWxsKGJhY2tncm91bmRDb2xvcikKICAgIHB5Z2FtZS5kaXNwbGF5LmZsaXAoKQo="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pygame

pygame.init()
width, height = 800,  600
backgroundColor = 255,  0,  0

screen = pygame.display.set_mode((width, height))

clock = pygame.time.Clock()
while True:
    dt = clock.tick(60)
    screen.fill(backgroundColor)
    pygame.display.flip()