Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if rect2.colliderect(rect1) or car1.x<0 or car1.x>330:
- window.fill((0, 0, 0))
- fontprint("Game Over. You scored: "+str(score),10,200)
- if score > hiscore:
- hiscore = score
- fontprint('You have a new high Score !!',10,250)
- else:
- fontprint("High Score: "+str(hiscore),10,250)
- pygame.display.update()
- randx = random.randrange(0, 300)
- randy = 0
- marky = 600
- score = 0
- speed = 5
- car1.x = 200
- wait()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement