Re: [pygame] Make a sprite fall with realistic gravity?

2009-11-30 Thread Eric Pavey
On Mon, Nov 30, 2009 at 3:20 AM, René Dudfield wrote: > On Mon, Nov 30, 2009 at 11:37 AM, Rob wrote: > > I've been trying to get a sprite (the ball) to fall from the top of > > the screen with realistic gravity. I did attempt it, however it's not > > so great so I won't post it here. > > > > I w

[pygame] Re: Query Pygame window position after creation?

2009-10-26 Thread Eric Pavey
Bit more poking, and I got the problem solved. If anyone was interested I put it up on my blog with link to source code: http://www.akeric.com/blog/?page_id=814

[pygame] Re: Pygame detect writable status of a file?

2009-10-19 Thread Eric Pavey
D'oh. Wrong email list in Gmail! Even got my title goofed up. sorry I'm tired.

[pygame] Pygame detect writable status of a file?

2009-10-19 Thread Eric Pavey
I feel like I'm missing something in the prefs, and this behavior has been on three different machines (two winXP, one Vista) with Wing: I have a file that is read-only, I open it in wing. I can't edit it. So I make it writable (managed through Perforce). The only way (that I can so far find) fo

[pygame] Re: Query Pygame window position after creation?

2009-10-17 Thread Eric Pavey
So, I can partly reply to my own post: I found a way to do this on Windows (shown below). But I realize this returns the location of the window, I need to know the location of the display screen (pygame surface). The values this returns are the outer window extents, including title-bar, outer wi

[pygame] Query Pygame window position after creation?

2009-10-17 Thread Eric Pavey
I've been searching, but not finding: Is there any way to query the location of the Pygame window after creation? There doesn't seem to be an event that is triggered when the window is moved, but there is an event for when it is resized. I've found the post describing how you can control its cre

Re: [pygame] Capture tablet pressure?

2009-10-14 Thread Eric Pavey
If anyone is interested, I got this working. Posted on my blog\Pygame, with pointers to source download: http://www.akeric.com/blog/?p=777 http://www.pygame.org/project-Tablet+Pressure-1302-2287.html

Re: [pygame] Capture tablet pressure?

2009-10-12 Thread Eric Pavey
So I tried the cgkit\wintab route. Had some success, but still can't get the dang pressure. Below is the code I came up with if anyone wants to poke at it When ran, it prints stuff like: 0 0 With the last two values representing pressure. Well, it's a start ;) # pressure.py import os import

[pygame] Capture tablet pressure?

2009-10-11 Thread Eric Pavey
Been searching around, and haven't come up with anything: Anyone know how to capture tablet pressure in Pygame? Pygame recognizes my tablet (Wacom Bamboo) just fine as a mouse, buttonclicks etc, but no "pressure" based on those clicks. Any advice? Is it possible that SDL doesn't support tablets

Re: [pygame] Python IDE for windoz

2009-10-06 Thread Eric Pavey
I really enjoy Wing IDE http://www.wingware.com/ Free to start, and once you learn more, the $$$ version is worth the money IMO

Re: [pygame] "tint" a surface?

2009-09-19 Thread Eric Pavey
Based on your suggestion I tried surface.fill(color, special_flags=BLEND_RGB_MULT) And actually, it's working great. From four lines to one, nice. Thanks for the tip!

[pygame] "tint" a surface?

2009-09-19 Thread Eric Pavey
I've been searching around, trying to see if there is a 'best practice" way of doing this in PyGame. Havn't found much, time to ask. I'm used to doing this in Processing where it's pretty easy, so I feel like I may be missing something. But don't w

Re: [pygame] EXEs: Different Approach

2009-09-15 Thread Eric Pavey
Just to be clear, the setup.py he lists on this link didn't work? http://hg.thadeusb.com/public/.r/Games/MyRTS/file/4dfc6b0d398b/src/setup.py I'd been using a similar setup.py to what you listed in your previous post with no luck. The once I link to in this post gave me much better results. Just

Re: [pygame] EXEs: Different Approach

2009-09-15 Thread Eric Pavey
I was having a real hard time, ran across this post: http://blog.thadeusb.com/2009/04/15/pygame-font-and-py2exe/ Talked with the author, and he provided his setup.py script (available from the comments of that post) which I modified, and have been making .exe's with ever since, using Python 2.6.2,