Commit d030bf8d by BellCodeEditor

save project

parent f44c4075
Showing with 14 additions and 1 deletions

2.01 KB | W: | H:

3.65 KB | W: | H:

down.png
down.png
down.png
down.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -3,10 +3,23 @@ import pygame
from pygame import locals
#初始化
pygame.init()
bg = pygame.image.load("bg.png")
right = pygame.image.load("right.png")
apple = pygame.image.load("apple.png")
body = pygame.image.load("body.png")
#创建
scree=pygame.display.set_mode((660,480))
screen=pygame.display.set_mode((660,480))
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
exit()
screen.blit(bg,(0,0))
screen.blit(right,(120,0))
screen.blit(body,(90,0))
screen.blit(body,(60,0))
screen.blit(body,(30,0))
screen.blit(body,(0,0))
screen.blit(body,(0,30))
screen.blit(apple,(270,180))
pygame.display.update()
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