[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] speed problem: max 6 fps



<< brian.py >>
<< errors.py >>
<< sprites.py >>
<< world.py >>
Are you using Python 2.3?

I had to insert
from __future__ import generators
True=1
False=0
at the top of most files to get this to run at all.

Then I got:
File "brian.py", line 50, in main
player.move([x, y])
File "sprites.py", line 273, in move
Creature.move(self, direction)
File "sprites.py", line 195, in move
direction[1] = self.__f.next() / self.spritespeed[1]
File "sprites.py", line 77, in accelmove
for i in range(steps)[::d]:
TypeError: sequence index must be integer

and gave up, as I am not exactly sure what that is
supposed to do (step size?).

Hmm. Looks like the transition to 2.3 may be tricky.


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963

____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org