File system paths and image.load calls #30

Merged
merged 2 commits into from May 2, 2012

Projects

None yet

2 participants

@IanWitham
Contributor

A little fix to make file system paths cross platform. Hard coding them as "/images/" or whatever won't work for systems that don't use the forward slashes (ie. Windows) so I've used os.path.join instead.

Also I went ahead and moved the pygame.image.load calls out of the game loop and into Gamescreen.__init__. The game seems to be much more responsive now.

@IanWitham IanWitham referenced this pull request May 1, 2012
Closed

Slow frame-rate #29

@kcunning kcunning merged commit 1b299eb into kcunning:master May 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment