pygame is
Simple DirectMedia Layer is
Site Swing
The Ultimate Platforming Hero

The Ultimate Platforming Hero - Jul 21 09

Andy Hanson (rhodiumgames)



A fun platformer. It features joystick support, but also has a mode for keyboards. Beware it has very high requirements.


Home Page:


click to view original size


The Ultimate Platforming Hero - Jul 21 09 - Jul 21, 2009 account Comments

If you wish to leave a comment with your account, please sign in first.

July 22, 2009 11:00am - Andy Hanson - nickname: (rhodiumgames)
Duh! I made a very dumb mistake!!!
Download the new release please.
July 22, 2009 1:49am - Chris Weisiger - nickname: (derakon)
Nothing is ever easy. Your test script didn't crash. :\
July 22, 2009 1:25am - Andy Hanson - nickname: (rhodiumgames)
Well, one hunch before I go to bed.
First off I can hopefully isolate this problem from the rest of the program:

import os

path = os.path.join('data','save','times','0')

print 'Directory files: ' + str(os.listdir(path))

in_file = open(os.path.join(path,'0.txt'),'rU')
text =
print 'File 0.txt: ' + str(text)

Save that in the same directory as and run it. You should get an error again.
Now try opening the file with a word processor. Type in anything and save it. Then run again. If it works now, the problem is probably that Mac has problems with empty files, in which case I will have to do more work and a new release.
July 22, 2009 1:04am - Chris Weisiger - nickname: (derakon)
I do in fact have that file. I added these three lines in helper.loadText:

next = '/'.join(fullname.split('/')[:-1])
print "---Directory dump---"
print os.listdir(next)

and the output I get right before it crashes is:

---Directory dump---
['0.txt', '1.txt', '10.txt', '11.txt', '12.txt', '13.txt', '14.txt', '15.txt', '2.txt', '3.txt', '4.txt', '5.txt', '6.txt', '7.txt', '8.txt', '9.txt']

So a curious little problem, all told.
July 21, 2009 11:49pm - Andy Hanson - nickname: (rhodiumgames)
Could you check to see if you have the file data/save/times/0/0.txt? I'm pretty sure it's in the ZIP!
July 21, 2009 11:05pm - Chris Weisiger - nickname: (derakon)
Downloaded it, tried to run it (OSX, Python2.5). It didn't do anything after writing "Press the buttons as they appear on the command prompt." I had to figure out that it wanted to use my plugged-in PS2 controller instead of the keyboard, and then blindly guess at what order the buttons should be pressed. Then it crashed:

Traceback (most recent call last):
File "", line 529, in <module>
File "", line 84, in setupGame
File "", line 295, in mainMenu
levelsGrid = special.LevelsGrid(self)
File "/Users/chriswei/proj/games/tuph/", line 30, in __init__
File "/Users/chriswei/proj/games/tuph/", line 179, in reset
File "/Users/chriswei/proj/games/tuph/", line 129, in loadTime
time = helpers.loadText(os.path.join('save','times',str(character),str(level)+'.txt.'))
File "/Users/chriswei/proj/games/tuph/", line 80, in loadText
in_file = open(fullname,'rU')
IOError: [Errno 2] No such file or directory: 'data/save/times/0/0.txt.'

our projects welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
recent releases
Jan 24, 2017

Jan 19, 2017

Jan 18, 2017

Jan 7, 2017

Dec 30, 2016

Dec 21, 2016

Dec 8, 2016

Nov 28, 2016

Nov 27, 2016

Nov 24, 2016

Nov 20, 2016

... more!
for pygame related questions, comments, and suggestions, please see help (lists, irc)