Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def big_black_block(thingx, thingy, thingw, thingh, color):
- pygame.draw.rect(gameDisplay, color, [thingx, thingy, thingw, thingh])
- def game_loop(lives,car_speed,*skill_number):
- score = 0
- while not gameExit:
- big_black_block(thing_startx, thing_starty, thing_width, thing_height, block_color)
- if thing_starty > display_height:
- score += 1
- show_points(score)
- def points(count):
- font = pygame.font.SysFont("comicsansms", 25)
- text = font.render("Score: "+str(count), True, brightred)
- gameDisplay.blit(text,(0,0))
Advertisement
Add Comment
Please, Sign In to add comment