Commit 01aa5f30 by BellCodeEditor

save project

parent 48dd83af
Showing with 4 additions and 4 deletions
...@@ -17,10 +17,11 @@ hero = [pygame.image.load('hero1.png'), ...@@ -17,10 +17,11 @@ hero = [pygame.image.load('hero1.png'),
pygame.image.load('hero3.png'), pygame.image.load('hero3.png'),
pygame.image.load('hero4.png'), pygame.image.load('hero4.png'),
pygame.image.load('hero5.png')] pygame.image.load('hero5.png')]
y=400
index = 0 index = 0
y=400
z='r' z='r'
t=30 t=30
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
if event.type == locals.QUIT: if event.type == locals.QUIT:
...@@ -50,9 +51,8 @@ while True: ...@@ -50,9 +51,8 @@ while True:
y+=t y+=t
t+=2 t+=2
else: else:
z='d' z='r'
t=30
t=30
# 将背景图画上去 # 将背景图画上去
screen.blit(background, (0, 0)) screen.blit(background, (0, 0))
......
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