Commit 438a9952 by BellCodeEditor

auto save

parent 69d03ab1
...@@ -4,4 +4,19 @@ import pygame ...@@ -4,4 +4,19 @@ import pygame
pygame.init() pygame.init()
# 创建一个窗口 # 创建一个窗口
?? screen=pygame.display.set_mode(660,480)
\ No newline at end of file FPSCLOCK=pygame.time.Clock()
background=pygame.image.load('bg.png')
right=pygame.image.load('right.png')
food=pygame.image.load('food.png')
body=pygame.image.load('body.png')
x,y=240,120
while True:
for event in pygame.event.get():
if event.type==locals.QUIT:
exit()
\ No newline at end of file
pugame.display.update()
FPSCLOCK.tick
\ No newline at end of file
++ "b/\344\273\226\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210\346\234\211\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210\345\223\210.py"
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