[Dev] float
James Paige
Bob at HamsterRepublic.com
Sun Oct 21 21:08:15 PDT 2007
Oh, I remember that now.
I assumed it was something else because it was happening with Monkey
Boxing and I thought your work on Monkey Boxing is what prompted the
change.
I still think it is a reasonable idea. I just adjusted my code to wor
with it.
---
James
On Sun, Oct 21, 2007 at 10:22:14AM -0700, Brian Fisher wrote:
> I think that's the thing where I changed the order of angle & scale arguments
>
> so I changed:
> def render(self, image, position, scale = 1.0, angle = 0.0, ...
> to
> def render(self, image, position, angle = 0.0, scale = 1.0, ...
>
> I think we talked about it very briefly... basically I was finding
> myself wanting to rotate but not scale more than scaling but not
> rotating. Does that still seems like a reasonable change?
>
>
> On 10/20/07, James Paige <Bob at hamsterrepublic.com> wrote:
> > Any idea what this is all about? Monkey Boxing does it too.
> >
> > File "sidescroller.py", line 93, in <module>
> > game.run_game()
> > File "/usr/lib/python2.5/site-packages/motherhamster/hamsterwheel.py",
> > line 289, in run_game
> > self._draw()
> > File "/usr/lib/python2.5/site-packages/motherhamster/hamsterwheel.py",
> > line 330, in _draw
> > self.draw()
> > File "sidescroller.py", line 79, in draw
> > self.player.draw()
> > File "/home/james/src/motherhamster/sidescroller/player.py", line 85,
> > in draw
> > self.display.render(body, pos, scale)
> > File "/usr/lib/python2.5/site-packages/motherhamster/displayGL.py",
> > line 397, in render
> > glRotatef(angle, 0, 0, 1)
> > TypeError: a float is required
> > _______________________________________________
> > Dev mailing list
> > Dev at lists.motherhamster.org
> > http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
> >
> _______________________________________________
> Dev mailing list
> Dev at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/dev-motherhamster.org
>
>
More information about the Dev
mailing list