Commit f51475e1 by BellCodeEditor

save project

parent a797e1ae
Showing with 4 additions and 1 deletions
...@@ -20,7 +20,10 @@ while True: ...@@ -20,7 +20,10 @@ while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
if event.type == locals.KEYDOWN:
if event.key=locals.K_w:
if event.key=locals.K_w:
if event.key=locals.K_w:
# 将背景图画上去 # 将背景图画上去
screen.blit(background,(0,0)) screen.blit(background,(0,0))
#画出矩形 #画出矩形
......
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