#Surfaces import pygame, sys, random from pygame.locals import * pygame.init() DISPLAYWINDOWSIZE = pygame.display.set_mode((250,300)) pygame.display.set_caption("Surface Test") #How big the surfaces are mysurface1 = pygame.Surface( (50,50) ) mysurface1.fill( (0,255,0) ) mysurface2 = pygame.Surface( (50,50) ) mysurface2.fill( (0,255,0) ) mysurface3 = pygame.Surface( (150,50) ) mysurface3.fill( (0,255,0) ) mysurface4 = pygame.Surface( (50,50) ) mysurface4.fill( (0,255,0) ) mysurface5 = pygame.Surface( (50,50)) mysurface5.fill( (0,255,0)) while True : for event in pygame.event.get(): if event.type == QUIT: pygame.quit() sys.exit() #Where surfaces will be displayed DISPLAYWINDOWSIZE.blit(mysurface1, (50,50) ) DISPLAYWINDOWSIZE.blit(mysurface2, (150,50) ) DISPLAYWINDOWSIZE.blit(mysurface3, (50,200) ) DISPLAYWINDOWSIZE.blit(mysurface4, (0,150) ) DISPLAYWINDOWSIZE.blit(mysurface5, (200,150) ) pygame.display.update()