[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Help with pygame



Hi, i wrote this code
CODE: SELECT ALL
import pygame
car=pygame.image.load('car.jpeg') #i have tried car.png car.bmp and so on
screen.blit(car, (50, 100))
pygame.display.flip()


but i get this error
CODE: SELECT ALL
Traceback (most recent call last):
  File "/Users/zackbaker/Desktop/Cartest.py", line 2, in <module>
    car=pygame.image.load('images.BMP')
error: File is not a Windows BMP file
>>>



HUh?? I tried BMP and bmp as extensions but i keep getting this error. Any help would be greatly appreciated. Thanks
Btw I'm running Mac osx lion

-Zack