load images pygame

Solutions on MaxInterview for load images pygame by the best coders in the world

showing results for - "load images pygame"
Lainey
11 Oct 2018
1import pygame
2from pygame.locals import*
3img = pygame.image.load('clouds.bmp')
4
5white = (255, 64, 64)
6w = 640
7h = 480
8screen = pygame.display.set_mode((w, h))
9screen.fill((white))
10running = 1
11
12while running:
13    screen.fill((white))
14    screen.blit(img,(0,0))
15    pygame.display.flip()
16