Commit 7c51a355 by BellCodeEditor

save project

parent cc9999e7
Showing with 108 additions and 0 deletions
import pygame#导入
pygame.init()#初始化
s=pygame.display.set_mode((660,480))#创建窗口
#b=pygame.image.load('132.png')
x=120
y=90
while True:
for event in pygame.event.get():
print(event)
if event.type == pygame.QUIT:
exit()
if event.type==pygame.KEYDOWN:
if event.key==pygame.K_UP:
y-=30
#s.blit(b,(0,0))
#for i in range
pygame.display.update()
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