Один из способов частичного заполнения может включать «рисование» фигуры (то есть прямоугольника) на половине экрана.
import sys
import pygame
def half_screen():
#Initialize game and create screen object.
pygame.init()
color= (255, 0, 0)
screen = pygame.display.set_mode((200, 400))
#Draw rectangle to fill the left half of the screen.
left_half = pygame.draw.rect(screen, color,(0,0, 100, 400))
#Start loop for game- keeps screen open until you decide to quit.
while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
#Make the current screen visible.
pygame.display.flip()
half_screen()
Вы можете найти больше информации о модуле розыгрыша - pygame.draw - перейдя на https://www.pygame.org/docs/ref/draw.html