Commit b91b9318 by BellCodeEditor

save project

parent 5c55c556
Showing with 7 additions and 3 deletions

22.5 KB | W: | H:

37.6 KB | W: | H:

bg.png
bg.png
bg.png
bg.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -11,8 +11,12 @@ qaass=pygame.time.Clock() ...@@ -11,8 +11,12 @@ qaass=pygame.time.Clock()
# 背景 # 背景
background = pygame.image.load('bg.png') background = pygame.image.load('bg.png')
right = pygame.image.load('right.png') right = pygame.image.load('right.png')
food = pygame.image.load('apple.png') food = pygame.image.gload('apple.png')
body = pygame.image.load('body.png') body = pygame.image.load('body.png')
left=pygame.image.load('left.png')
up=pygame.image.load('up.png')
down=pygame.image.load('down.png')
x,y=240,120 x,y=240,120
tgb=[(180,90),(180,120),(210,120),(x,y)] tgb=[(180,90),(180,120),(210,120),(x,y)]
...@@ -37,4 +41,4 @@ while True: ...@@ -37,4 +41,4 @@ while True:
screen.blit(food, (360, 300)) screen.blit(food, (360, 300))
# 刷新画面 # 刷新画面
pygame.display.update() pygame.display.update()
qaass.tick(5) qaass.tick(5)
\ No newline at end of file \ 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