Commit d54e50ab by BellCodeEditor

save project

parent 019bffbf
Showing with 10 additions and 0 deletions
......@@ -27,13 +27,23 @@ class Block(pygame.sprite.Sprite):
self.rect = self.image.get_rect()
self.rect.x =1000
self.rect.y = 500 - self.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
# zaw=Block(stone,cacti,apple)
road_x=0
bg_x=0
zt='run'
time=0
block_list = pygame.sprite.Group()
gamezt='True'
while True:
Player(hero[index])
time+=1
if time>60:
time=0
......
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