Commit 899a9b8d by BellCodeEditor

save project

parent 67b4e8f1
Showing with 2 additions and 1 deletions
......@@ -4,7 +4,7 @@ FPSCLOCK=pygame.time.Clock()
# 初始化pygame,为使用硬件做准备
pygame.init()
b="right"
h=right
# 创建一个窗口
screen = pygame.display.set_mode((660, 480))
x,y=240,120
......@@ -13,6 +13,7 @@ background = pygame.image.load('bg.png')
right = pygame.image.load('right.png')
food = pygame.image.load('apple.png')
body = pygame.image.load('body.png')
h=right
a=[(180,90),(180,120),(210,120),(x,y)]
while True:
for event in pygame.event.get():
......
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