Commit f08f213e by BellCodeEditor

save project

parent 000d8222
Showing with 8 additions and 1 deletions
......@@ -22,6 +22,8 @@ hero = [pygame.image.load('hero1.png'),
index = 0
jumpstate ="runing"
road_X = 0
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......@@ -50,8 +52,12 @@ while True:
# 将背景图画上去
screen.blit(background, (0, 0))
screen.blit(road, (0, 500))
road_X-=5
if road_X<-1000:
road_X=0
screen.blit(road, (road_X, 500))
screen.blit(hero1, (150, y))
# 刷新画面
pygame.display.update()
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