Commit c8539a04 by BellCodeEditor

save project

parent 623b0af1
Showing with 20 additions and 1 deletions
......@@ -12,6 +12,16 @@ class Block(pygame.sprite.Sprite):
self.rect = self.image.get_rect()
self.rect.x=150
self.rect.y=400
class Player(pygame.sprite.Sprite):
def __init__(self,image):
super().__init__()
self.image = image
self.rect = self.image.get_rect()
self.rect.x=1000
self.rect.y=500 - self.rect.height
screen = pygame.display.set_mode((1000, 600))
......@@ -34,7 +44,16 @@ jumpState = "runing"
t = 30
bg_x=0
road_x=0
obstacle = Block(bush, stone, cacti)
time = 0
gamestate = True
block_list pygame.sprite.Group()
while True:
for event in pygame.event.get():
......
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