Commit 86b8bb46 by BellCodeEditor

auto save

parent 2f8209c6
Showing with 3 additions and 8 deletions
......@@ -10,13 +10,8 @@ class Block(pygame.sprite.Sprite):
self.rect.x = 1000
self.rect.y = 500 - self.rect.height
class Wukong(pygame.sprite.Sprite):
def __init__(self,image):
super().__init__()
self.image = image
self.rect = self.image.get_rect()
self.rect.x = 150
self.rect.y = 400
pygame.init() # 初始化
# 创建一个窗口
screen = pygame.display.set_mode((1000, 600))
......@@ -41,7 +36,7 @@ block_list=pygame.sprite.Group()
time=0
road_x=0
bg_x=0
wukong=Wukong(hero[1])
while True:
for event in pygame.event.get():
if event.type == locals.QUIT:
......
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