Segue o Código da casinha em python e pygame cambada!!
- Código:
import pygame
from pygame.locals import *
import time
tela_principal = pygame.display.set_mode((800,600), 0, 32)
tela_secundaria = pygame.Surface((800,600), 0, 32)
tela_secundaria.fill((255,255,255))
pygame.draw.line(tela_secundaria, (255,0,0), (100,500),(400,500))
pygame.draw.line(tela_secundaria, (255,0,0), (100,500),(100,300))
pygame.draw.line(tela_secundaria, (255,0,0), (400,500),(400,300))
pygame.draw.line(tela_secundaria, (255,0,0), (100,300),(400,300))
pygame.draw.line(tela_secundaria, (255,0,0), (100,300),(250,150))
pygame.draw.line(tela_secundaria, (255,0,0), (250,150),(400,300))
tela_principal.blit(tela_secundaria, (0,0))
pygame.display.update()
time.sleep(3)