Commit 91871550 by BellCodeEditor

auto save

parent edad2857
Showing with 7 additions and 10 deletions
...@@ -5,12 +5,8 @@ pygame.init() ...@@ -5,12 +5,8 @@ pygame.init()
screen = pygame.display.set_mode((1000, 600)) screen = pygame.display.set_mode((1000, 600))
FPS = pygame.time.Clock() FPS = pygame.time.Clock()
background = pygame.image.load('bg.png') road
road = pygame.image.load('road.png')
stone = pygame.image.load('stone.png')
cacti = pygame.image.load('cacti.png')
apple = pygame.image.load('bush.png')
hero=[pygame.image.load('hero1.png')]
index = 0 index = 0
while True: while True:
...@@ -18,11 +14,11 @@ while True: ...@@ -18,11 +14,11 @@ while True:
if event.type == locals.QUIT: if event.type == locals.QUIT:
exit() exit()
if event.type == locals.KEYDOWN: if event.type == locals.KEYDOWN:
if event.key == locals.K_SPACE: if event.key == locals.K_SPACE:
jumpState="up" jumpState="up"
screen.blit(background,(0,0)) screen.blit(background,(0,0))
screen.blit(road,(0,500)) screen.blit(road,(0,500))
screen.blit(hero,(150,0)),ds.z.z..ZZ、。/.a//z/z/z/z/z/zZzz、、、、、、、、、、、、、?、?、、? screen.blit(hero,(150,400))
pygame.display.update() pygame.display.update()
\ 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