@Deacon_Cronin/

Gayme Jam

Pygame

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.030717792395852594","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHB5Z2FtZQpweWdhbWUuaW5pdCgpCmRpc3BsYXlfd2lkdGggPSA4MDAKZGlzcGxheV9oZWlnaHQgPSA2MDAKYmxhY2sgPSAoMCwwLDApCndoaXRlID0gKDI1NSwyNTUsMjU1KQpibHVlID0gKDAsMCwxMjgpCnB1cnBsZSA9ICgxNzgsMCwyNTUpCnBpbmsgPSAoMjU1LDAsMTI4KQpiYWNrID0gKDE0Myw2Nyw3KQpmcm9udCA9ICgyNTEsMTgxLDMzKQp4ID0gZGlzcGxheV93aWR0aCAvIDIKeSA9IGRpc3BsYXlfaGVpZ2h0IC8yCnhfY2hhbmdlID0gZGlzcGxheV93aWR0aCAvIDIwCnlfY2hhbmdlID0gZGlzcGxheV9oZWlnaHQgLyAyMApzY3JlZW4gPSBweWdhbWUuZGlzcGxheS5zZXRfbW9kZSgoZGlzcGxheV93aWR0aCxkaXNwbGF5X2hlaWdodCkpCnJ1biA9IFRydWUKd2hpbGUgcnVuOgogIHB5Z2FtZS50aW1lLmRlbGF5KDEwMCkKICBmb3IgZXZlbnQgaW4gcHlnYW1lLmV2ZW50LmdldCgpOgogICAgaWYgZXZlbnQudHlwZSA9PSBweWdhbWUuUVVJVDoKICAgICAgcnVuID0gRmFsc2UKICAgIGlmIGV2ZW50LnR5cGUgPT0gcHlnYW1lLktFWURPV046CiAgICAgIGlmIGV2ZW50LmtleSA9PSBweWdhbWUuS19MRUZUOgogICAgICAgIHggLT0geF9jaGFuZ2UKICAgICAgaWYgZXZlbnQua2V5ID09IHB5Z2FtZS5LX1JJR0hUOgogICAgICAgIHggKz0geF9jaGFuZ2UKICBzY3JlZW4uZmlsbChibGFjaykKICBweWdhbWUuZHJhdy5yZWN0KHNjcmVlbiwgZnJvbnQsICh4LHksMjUsMjUpKQogIHB5Z2FtZS5kaXNwbGF5LnVwZGF0ZSgpCg=="},"asBuffer":null},"loaded":true}}

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.030717792395852594","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHB5Z2FtZQpweWdhbWUuaW5pdCgpCmRpc3BsYXlfd2lkdGggPSA4MDAKZGlzcGxheV9oZWlnaHQgPSA2MDAKYmxhY2sgPSAoMCwwLDApCndoaXRlID0gKDI1NSwyNTUsMjU1KQpibHVlID0gKDAsMCwxMjgpCnB1cnBsZSA9ICgxNzgsMCwyNTUpCnBpbmsgPSAoMjU1LDAsMTI4KQpiYWNrID0gKDE0Myw2Nyw3KQpmcm9udCA9ICgyNTEsMTgxLDMzKQp4ID0gZGlzcGxheV93aWR0aCAvIDIKeSA9IGRpc3BsYXlfaGVpZ2h0IC8yCnhfY2hhbmdlID0gZGlzcGxheV93aWR0aCAvIDIwCnlfY2hhbmdlID0gZGlzcGxheV9oZWlnaHQgLyAyMApzY3JlZW4gPSBweWdhbWUuZGlzcGxheS5zZXRfbW9kZSgoZGlzcGxheV93aWR0aCxkaXNwbGF5X2hlaWdodCkpCnJ1biA9IFRydWUKd2hpbGUgcnVuOgogIHB5Z2FtZS50aW1lLmRlbGF5KDEwMCkKICBmb3IgZXZlbnQgaW4gcHlnYW1lLmV2ZW50LmdldCgpOgogICAgaWYgZXZlbnQudHlwZSA9PSBweWdhbWUuUVVJVDoKICAgICAgcnVuID0gRmFsc2UKICAgIGlmIGV2ZW50LnR5cGUgPT0gcHlnYW1lLktFWURPV046CiAgICAgIGlmIGV2ZW50LmtleSA9PSBweWdhbWUuS19MRUZUOgogICAgICAgIHggLT0geF9jaGFuZ2UKICAgICAgaWYgZXZlbnQua2V5ID09IHB5Z2FtZS5LX1JJR0hUOgogICAgICAgIHggKz0geF9jaGFuZ2UKICBzY3JlZW4uZmlsbChibGFjaykKICBweWdhbWUuZHJhdy5yZWN0KHNjcmVlbiwgZnJvbnQsICh4LHksMjUsMjUpKQogIHB5Z2FtZS5kaXNwbGF5LnVwZGF0ZSgpCg=="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import pygame
pygame.init()
display_width = 800
display_height = 600
black = (0,0,0)
white = (255,255,255)
blue = (0,0,128)
purple = (178,0,255)
pink = (255,0,128)
back = (143,67,7)
front = (251,181,33)
x = display_width / 2
y = display_height /2
x_change = display_width / 20
y_change = display_height / 20
screen = pygame.display.set_mode((display_width,display_height))
run = True
while run:
  pygame.time.delay(100)
  for event in pygame.event.get():
    if event.type == pygame.QUIT:
      run = False
    if event.type == pygame.KEYDOWN:
      if event.key == pygame.K_LEFT:
        x -= x_change
      if event.key == pygame.K_RIGHT:
        x += x_change
  screen.fill(black)
  pygame.draw.rect(screen, front, (x,y,25,25))
  pygame.display.update()