Skip to content

Instantly share code, notes, and snippets.

@stamaniorec
Created October 31, 2015 11:50
Show Gist options
  • Select an option

  • Save stamaniorec/2f0438f935ae21361a7e to your computer and use it in GitHub Desktop.

Select an option

Save stamaniorec/2f0438f935ae21361a7e to your computer and use it in GitHub Desktop.
#pygame add background
background = pygame.Surface(game_display.get_size()) # (width,height)
background = background.convert()
background.fill((100, 100, 100))
game_display.blit(background, (0,0))
pygame.display.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment