[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pygame] speed problem: max 6 fps
Lee Harr schreef op zondag 9 februari om 16:47:52 +0000:
> ><< brian.py >>
> ><< errors.py >>
> ><< sprites.py >>
> ><< world.py >>
>
> Are you using Python 2.3?
Yes, I am.
> 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.
Hm, sorry. I didn't realize that.
> 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?).
Well:
range(s)[::]d) equals range(0, s, d). It's even slower...
> Hmm. Looks like the transition to 2.3 may be tricky.
yours,
Gerrit.
--
Asperger Syndroom - een persoonlijke benadering:
http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
http://www.sp.nl/
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org