Commit 84e30f00 by BellCodeEditor

save project

parent 223683ef
Showing with 8 additions and 4 deletions
......@@ -2,11 +2,15 @@ import pygame
# 初始化pygame,为使用pygame做准备
pygame.init()
from pygame import locals
x = 800
y = 600
# 创建一个窗口
screen = pygame.display.set_mode((800,600))
screen = pygame.display.set_mode((x,y))
while True:
for event in pygame.event.get():
print(event)
if event.type == locals.QUIT:
open()
\ No newline at end of file
x -= 5
y -= 5
screen = pygame.display.set_mode((x,y))
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment