Commit f690874d by BellCodeEditor

save project

parent fb392489
Showing with 2 additions and 0 deletions
...@@ -8,6 +8,7 @@ FPSCLOCK = pygame.time.Clock() ...@@ -8,6 +8,7 @@ FPSCLOCK = pygame.time.Clock()
# 创建一个窗口 # 创建一个窗口
screen = pygame.display.set_mode((660, 480)) screen = pygame.display.set_mode((660, 480))
# 背景 # 背景
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
right = pygame.image.load('right.png') # 头 朝右 right = pygame.image.load('right.png') # 头 朝右
...@@ -18,6 +19,7 @@ up = pygame.image.load('up.png') # 头 朝上 ...@@ -18,6 +19,7 @@ up = pygame.image.load('up.png') # 头 朝上
down = pygame.image.load('down.png') # 头 朝下 down = pygame.image.load('down.png') # 头 朝下
my_font = pygame.font.Font('neuropol.ttf',18) my_font = pygame.font.Font('neuropol.ttf',18)
x, y = 240, 120 x, y = 240, 120
position = [(180, 90), (180, 120), (210, 120), (x, y)] position = [(180, 90), (180, 120), (210, 120), (x, y)]
apple_x = 360 apple_x = 360
......
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