Created
October 31, 2015 11:50
-
-
Save stamaniorec/2f0438f935ae21361a7e to your computer and use it in GitHub Desktop.
#pygame add background
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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