import pygame
import sys
pygame.init()
bg_fon = pygame.image.load("image/wall.bmp")
bg_rect = bg_fon.get_rect(bottomright=(640, 480))
screen_game = pygame.display.set_mode((640, 480))
pygame.display.set_caption("Screen")
screen_game.blit(bg_fon, bg_rect)
score = 0
text_color = (30, 30, 30)
font = pygame.font.SysFont(None, 48)
score_str = str(score)
score_image = font.render(score_str, True, text_color, bg_fon)
while 1:
pygame.display.update(score_image)
for i in pygame.event.get():
if i.type == pygame.QUIT:
sys.exit()