pygame is
Python
Simple DirectMedia Layer
 
 
pygame.org is
Site Swing
The Ultimate Platforming Hero

The Ultimate Platforming Hero - Jul 21 09

Andy Hanson (rhodiumgames)

Tags:

Description

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

Links

Home Page: http://www.rhodiumgames.com/
Source: http://www.rhodiumgames.com/the-ultimate-platforming-hero/

Screenshot


click to view original size

Releases

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

Pygame.org account Comments

If you wish to leave a comment with your pygame.org 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 = in_file.read()
in_file.close()
print 'File 0.txt: ' + str(text)


Save that in the same directory as main.py 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 "main.py", line 529, in <module>
m.setupGame()
File "main.py", line 84, in setupGame
self.mainMenu()
File "main.py", line 295, in mainMenu
levelsGrid = special.LevelsGrid(self)
File "/Users/chriswei/proj/games/tuph/special.py", line 30, in __init__
self.reset()
File "/Users/chriswei/proj/games/tuph/special.py", line 179, in reset
thisColumn.append(self.loadTime(x,y))
File "/Users/chriswei/proj/games/tuph/special.py", line 129, in loadTime
time = helpers.loadText(os.path.join('save','times',str(character),str(level)+'.txt.'))
File "/Users/chriswei/proj/games/tuph/helpers.py", line 80, in loadText
in_file = open(fullname,'rU')
IOError: [Errno 2] No such file or directory: 'data/save/times/0/0.txt.'
spotlight

 
our projects
pygame.org welcomes all python game, art, music, sound, video and multimedia projects. If they use pygame or not.
 
recent releases
Jul 28, 2014

Jul 22, 2014

Jul 21, 2014

Jul 20, 2014

Jul 19, 2014

Jul 15, 2014

Jul 10, 2014

Jul 9, 2014

Jun 27, 2014



Jun 24, 2014

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