google-code-export / gummworld2

Automatically exported from code.google.com/p/gummworld2
Other
2 stars 0 forks source link

mouse movement crashes #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. clicking a mouse button
2.
3.

What is the expected output? What do you see instead?
i expect to see an example of mouse movement in example 6 and others, but get 
this crash instead:

Traceback (most recent call last):
  File "09_collapse_map.py", line 245, in <module>
    app.run()
  File "../gamelib/engine.py", line 154, in run
    self.draw()
  File "09_collapse_map.py", line 157, in draw
    Color('yellow'), avatar_location, 4)
TypeError: integer argument expected, got float

What version of the product are you using? On what operating system?
trunk revision 70

Please provide any additional information below.

Original issue reported on code.google.com by axedc...@gmail.com on 4 Jan 2011 at 7:03

GoogleCodeExporter commented 9 years ago
I cannot reproduce this. It is not a bug in pygame release 1.9.1, though the 
use of floats in pygame.draw functions is deprecated in 1.9.1. You must be 
using a later development version?

The deprecation warnings are removed now. Theoretically this issue should be 
fixed.

Please report environment details in the future. They are often crucial to 
reproducing problems.

Thanks for reporting the issue!

Original comment by stabbing...@gmail.com on 4 Jan 2011 at 3:30

GoogleCodeExporter commented 9 years ago
Sorry I am on Arch Linux x86_64, with pygame 1.9.1 and python 2.7.1. r71 fixes 
it, thanks.

Nice work on this library. I may be incorporating some of this into my 
data-driven game engine.

Original comment by axedc...@gmail.com on 5 Jan 2011 at 8:41

GoogleCodeExporter commented 9 years ago
Thank you for the follow-up and good feedback!

If you do play with it and have any wishes for enhancement, etc., I'd be
interested in receiving them. Be sure to let me know when your game is
posted so I can follow its progress. :)

Gumm

Original comment by stabbing...@gmail.com on 7 Jan 2011 at 8:45