Guest User

Untitled

a guest
Jan 29th, 2018
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. def big_black_block(thingx, thingy, thingw, thingh, color):
  2.     pygame.draw.rect(gameDisplay, color, [thingx, thingy, thingw, thingh])     
  3.  
  4. def game_loop(lives,car_speed,*skill_number):
  5.     score = 0
  6.     while not gameExit:    
  7.         big_black_block(thing_startx, thing_starty, thing_width, thing_height, block_color)
  8.  
  9.         if thing_starty > display_height:
  10.             score += 1
  11.         show_points(score)
  12.  
  13. def points(count):
  14.     font = pygame.font.SysFont("comicsansms", 25)
  15.     text = font.render("Score:  "+str(count), True, brightred)
  16.     gameDisplay.blit(text,(0,0))
Advertisement
Add Comment
Please, Sign In to add comment