picrin / PredictiveCollision

A snippet of python code that solves collisions of circular objects using continuous (a priori) approach.
Other
3 stars 1 forks source link

Unable to load an image in intro.py, line 18 #2

Open eustaceb opened 10 years ago

eustaceb commented 10 years ago

Pygame.image.load("ball.gif") doesn't work on some machines (including mine). I've replaced it with pygame.image.load(os.path.join(os.path.dirname(--file--), "ball.gif")) for greater compatibility but am unable to commit.

P.S. the hyphens in --file-- should be underscores but github somehow makes them disappear.

probablytom commented 10 years ago

I'm also currently having troubles commiting. However, to solve the underscore issue, you can escape the underscores (using '\').

picrin commented 10 years ago

Well done, ill add you to the repo tomorrow On 26 Oct 2013 00:59, "Justas Bikulcius" notifications@github.com wrote:

pygame.image.load("ball.gif") doesn't work on some machines (including mine). I've replaced it with pygame.image.load(os.path.join(os.path.dirname( file), "ball.gif")) for greater compatibility but am unable to commit.

— Reply to this email directly or view it on GitHubhttps://github.com/picrin/PredictiveCollision/issues/2 .