Commit 30031aff by BellCodeEditor

save project

parent ad4b12f3
Showing with 8 additions and 2 deletions
...@@ -5,4 +5,10 @@ pygame.init() ...@@ -5,4 +5,10 @@ pygame.init()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((1000,700)) screen = pygame.display.set_mode((1000,700))
pygame.display.set_caption('炸药蛇') pygame.display.set_caption('炸药蛇')
\ No newline at end of file
while True:
for event in pygame.event.get():
if event == pygame.QUIT:
break
exit()
\ 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