import pygame, sys, os from pygame.locals import * pygame.init() screen = pygame.display.set_mode((100, 100)) player = pygame.image.load(os.path.join("player.png")) player.convert() while true: screen.blit(player, (10, 10)) pygame.display.flip() pygame.quit()
Loads the file "player.png" Run this and it works fine. So I hope you found out something.
John riselvato
source share