Commit 6c067fcc by BellCodeEditor

auto save

parent 739b5e00
Showing with 2 additions and 2 deletions
...@@ -5,9 +5,9 @@ import random ...@@ -5,9 +5,9 @@ import random
pygame.init() # 初始化 pygame.init() # 初始化
class Block(pygame.sprite.Sprite): class Block(pygame.sprite.Sprite):
def __init__(self,imagei,image2,image3): def __init__(self,image,image2,image3):
super().__init__() super().__init__()
self.image=range.choice([image1,image2,image3]) self.image=random.choice([image,image2,image3])
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
......
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