Commit fad46749 by BellCodeEditor

save project

parent d4779032
Showing with 9 additions and 1 deletions
......@@ -10,7 +10,15 @@ class Block(pygame.sprite.Sprite):
self.image=random.choice([image1,image2,image3])
self.rect=self.image.get_rest()
self.rect.x=1000
self.rect.y=500-slef.rect.height
self.rect.y=500-slef.rect.height
class Player(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
# 创建一个窗口
screen = pygame.display.set_mode((1000, 600))
......
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