Browse Source

最初のコミット

btc-sounds
みてるぞ 9 months ago
parent
commit
afd6c4b576
2 changed files with 25 additions and 0 deletions
  1. +0
    -0
      README.md
  2. +25
    -0
      main.py

+ 0
- 0
README.md View File


+ 25
- 0
main.py View File

@@ -0,0 +1,25 @@
import pygame
from pygame.locals import *
import sys


class Main:
@classmethod
def main (cls) -> None:
pygame.init ()

screen = pygame.display.set_mode ((640, 480))

while (True):
screen.fill ((255, 255, 255))
pygame.display.update ()

for event in pygame.event.get ():
if event.type == QUIT:
pygame.quit ()
sys.exit ()


if __name__ == '__main__':
Main.main ()


Loading…
Cancel
Save