How to add a background image in python-pygame
问题 I'm making a game, brickbreaker. I'm tring to add an image on the background, but it doesn't show up. I tried some other ways: Class background(pygame.sprite.Sprite) - I can see image, but it hides game import pygame from pygame.locals import * import sys class Brickbreaker: def __init__(self): self.screen = pygame.display.set_mode((600, 600)) self.image = pygame.image.load("bg.png") self.blocks = [] self.paddle = [[pygame.Rect(300, 500, 20, 10), 120], [pygame.Rect(320, 500, 20, 10),100],