Commit 6b30e6ab by BellCodeEditor

auto save

parent d89df383
Showing with 12 additions and 8 deletions
...@@ -25,13 +25,12 @@ hero = [pygame.image.load('hero1.png'), ...@@ -25,13 +25,12 @@ 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')]
lu_x=0 index=0
shan_x=0 y=400
index = 0 jumpState="runing"
y = 400 t=30
jumpState = "runing" bg_x=0
t = 30
aa=Block(bush,cacti,stone)
while True: while True:
for event in pygame.event.get(): for event in pygame.event.get():
...@@ -81,6 +80,10 @@ while True: ...@@ -81,6 +80,10 @@ while True:
screen.blit(aa.image, (aa.rect.x, aa.rect.y)) screen.blit(aa.image, (aa.rect.x, aa.rect.y))
# 刷新画面 t
pygame.display.update() pygame.display.update()
FPS.tick(60) FPS.tick(60)
\ 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