[pygame] Beginner Question

2012-01-09 Thread Ryan Strunk
Hello everyone, I've been learning Python for about a year now, and I wanted to get more seriously into developing audio games. I was told that Pygame is a good package to look at, so I installed it on my machine and joined this list. On looking at python.org, however, it appears as though there ha

RE: [pygame] Beginner Question

2012-01-09 Thread Ryan Strunk
Good to know. Thank you. From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org] On Behalf Of Nick Arnoeyts Sent: Monday, January 09, 2012 1:55 PM To: pygame-users@seul.org Subject: Re: [pygame] Beginner Question As far as I know, Pygame is still being actively developed. You

[pygame] Capabilities of Pygame

2012-01-12 Thread Ryan Strunk
Hello everyone, As I embark on this journey of learning Pygame and game design, I have one last burning question I haven't been able to find an answer to. I've heard that Python, as an interpreted language, isn't as fast as languages like C++. It follows, then, that Pygame would suffer the same dr

RE: [pygame] Capabilities of Pygame

2012-01-12 Thread Ryan Strunk
From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org] On Behalf Of Christopher Night Sent: Thursday, January 12, 2012 7:54 PM To: pygame-users@seul.org Subject: Re: [pygame] Capabilities of Pygame > Seriously, what kind of game do you want to make? I have a couple in mind: an

RE: [pygame] Capabilities of Pygame

2012-01-14 Thread Ryan Strunk
--- On Fri, 1/13/12, Lenard Lindstrom wrote: > > Also, > > though SDL does support streaming, Pygame does not. > > Everything must be loaded before played. > Um... that's not true. pygame.mixer.music is Pygame's streaming module. So if you were to stream audio, would that eliminate the potenti

[pygame] Capturing Multiple Keyboard Inputs

2012-01-15 Thread Ryan Strunk
Hello everyone, I am testing my understanding of the pygame.key module by creating a program that pans the sound of a car engine and raises/lowers its frequency. While the individual keys do exactly what they're supposed to, I run into a big problem when I try to do two things at once. For example,

RE: [pygame] Capturing Multiple Keyboard Inputs

2012-01-16 Thread Ryan Strunk
> On 1/15/2012 8:16 PM, Ian Mallett wrote: >>> >> You should use pygame.key.get_pressed() to check whether the left/up >> keys are pressed. Something like: >> >> while pygame.event.get(): pass >> key = pygame.key.get_pressed() >> if key[K_LEFT]: #whatever >> if key[K_UP]: #whatever I understand

[pygame] Substantial Lag

2012-02-12 Thread Ryan Strunk
Hi everyone, I apologize in advance for posting 43 lines of code, but I can't figure out where on Earth the trouble is coming from. When I run this code, the keys do exactly what I'd like, but I'm noticing a delay of a few tenths of a second between when I press the key and when the sound of the st

RE: [pygame] Substantial Lag

2012-02-12 Thread Ryan Strunk
From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org] On Behalf Of Christopher Night Sent: Sunday, February 12, 2012 7:07 PM To: pygame-users@seul.org Subject: Re: [pygame] Substantial Lag > You're only updating 5 frames a second, so yu should expect delays of up to 0.2s, and i

RE: [pygame] Substantial Lag

2012-02-12 Thread Ryan Strunk
From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org] On Behalf Of Vovk Donets Sent: Sunday, February 12, 2012 10:12 PM To: pygame-users@seul.org Subject: Re: [pygame] Substantial Lag > If you, by any chance, need this then for C++ like delay in miliseconds you can use .sleep()

RE: [pygame] Substantial Lag

2012-02-13 Thread Ryan Strunk
From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org] On Behalf Of Vovk Donets Sent: Monday, February 13, 2012 1:48 AM To: pygame-users@seul.org Subject: Re: [pygame] Substantial Lag > I would use builtin pygame clock, coz' no need for manual control of the frame rate. I look

RE: [pygame] Substantial Lag

2012-02-13 Thread Ryan Strunk
From: owner-pygame-us...@seul.org [mailto:owner-pygame-us...@seul.org] On Behalf Of Santiago Romero Sent: Monday, February 13, 2012 2:16 AM To: pygame-users@seul.org Subject: Re: [pygame] Substantial Lag > > In order to save CPU power, do I need to put in a pygame.time.delay(10) at the end of m

RE: [pygame] Substantial Lag

2012-02-18 Thread Ryan Strunk
, Ryan Strunk wrote: > If clock can force my program to run at a desired speed, how do I > program it to do so? Do I use clock.tick at a certain framerate, for > instance? [Sent from wrong address, so re-posting] Clock.tick(fps) effectively sleeps your program to keep it running at

[pygame] Intercepting the Keyboard

2012-03-07 Thread Ryan Strunk
Hello everyone, In creating audio-based games, I'm trying to make my programs work with major screen readers. The problem is that the industry leader, JAWS, likes to intercept keystrokes sent to the system. This means that if you build arrow key use into a pygame program, JAWS gets to your arrow ke

[pygame] RE: Intercepting the Keyboard

2012-03-07 Thread Ryan Strunk
One more thing about this situation: Just after writing my previous email, I discovered pygame.event.set_grab(True). However, even when I set this to true outside of the main loop, I did not steal keyboard input from the screen reading software. In addition, I was still able to alt+tab out of the w

[pygame] pyHooking the Arrow Keys

2012-03-19 Thread Ryan Strunk
Hi everyone, I wrote a little while back about how I wanted to tie the arrow keys specifically to my program so that they could be used exclusively for the program instead of being intercepted by a screen reader. I attempted to modify the code from the tutorial I found, but it is producing some rat

[pygame] Accounting for Pressed Keys

2012-03-25 Thread Ryan Strunk
Hi everyone, I'm closer to solving my arrow key problem with regard to getting pyHook to snag the arrow keys first. I've blocked the four arrow keys, and I've used the block to put a KEYDOWN event on the Pygame queue. The problem, though, is that now Pygame receives a key down event several times a