[Dev] float

Brian Fisher brian at hamsterrepublic.com
Sun Oct 21 10:22:14 PDT 2007


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
>



More information about the Dev mailing list