he querido colocar una imagen ATRÁS de un texto pero no e podido e buscado pero ninguno lo explica ojala me puedan ayudar.
el código que llevo haciendo pruebas es este:
- Código: Seleccionar todo
import os, sys
import pygame
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((468, 60))
pygame.display.set_caption('Monkey Fever')
pygame.mouse.set_visible(1)
background = pygame.Surface(screen.get_size())
background = background.convert()
background.fill((250, 250, 250))
if pygame.font:
font = pygame.font.Font(None, 36)
text = font.render("NO ENTIENDO", 1, (0,0,0))
textpos = text.get_rect(centerx=background.get_width()/2)
background.blit(text, textpos)
screen.blit(background, (0, 0))
pygame.display.flip()
pygame.event.set_allowed(None)
pygame.event.set_allowed(pygame.QUIT)
pygame.event.wait()
con este código sale el texto y el fondo en blanco y lo que quiero es remplazar lo blanco por una imagen.
GRACIAS A TODOS