Commit bf68008c by BellCodeEditor

auto save

parent f40ed5b3
Showing with 11 additions and 1 deletions
...@@ -17,6 +17,16 @@ class Block(Sprite): ...@@ -17,6 +17,16 @@ class Block(Sprite):
self.rect = self.image.get_rect() self.rect = self.image.get_rect()
self.rect.x = 1000 self.rect.x = 1000
self.rect.y = 500 - self.rect.height self.rect.y = 500 - self.rect.height
class Player(Sprite):
'''
Sprite's lever up.
'''
def __init__(self,image):
super().__init__()
self.image = image
self.rect = self.image.get_rect()
self.rect.x = 150
self.rect.y = 400
# 创建一个窗口 # 创建一个窗口
screen = display.set_mode((1000, 600)) screen = display.set_mode((1000, 600))
...@@ -67,7 +77,7 @@ while True: ...@@ -67,7 +77,7 @@ while True:
t =30 t =30
# 悟空造型 # 悟空造型
wukong = hero[index] wukong = (hero[index]
if jumpState == "runing": # 跑步状态下 if jumpState == "runing": # 跑步状态下
index += 1 index += 1
if index >= 5: if index >= 5:
......
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