import pygame import sys # Setup pygame.init() WIDTH, HEIGHT = 800, 600 screen = pygame.display.set_mode((WIDTH, HEIGHT)) pygame.display.set_caption("Samurai Test") clock = pygame.time.Clock() # Load Image samurai_idle = pygame.image.load("Samurai/Sprites/idle.png").convert_alpha() samurai_rect = samurai_idle.get_rect(center=(WIDTH // 2, HEIGHT // 2)) # Game loop running = True while running: screen.fill((255, 255, 255)) for event in pygame.event.get(): if event.type == pygame.QUIT: running = False screen.blit(samurai_idle, samurai_rect) pygame.display.flip() clock.tick(60) pygame.quit() sys.exit()