Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Luke Paireepinart
I haven't dug around very much inside the code, so I don't know how it looks in there, but it seems like the pygame.event.pump code is already doing periodic input work, Are you assuming that the user calls pump, or does pygame have some internal thread that consistently calls pump? or does p

Re: [pygame] Menu Selection

2007-04-25 Thread Richard Jones
On Thu, 26 Apr 2007, Dave LeCompte (really) wrote: > > I hope you don't mind, but I snagged it for a look as well. I am not > > exactly making menus, but I am trying to get a better understanding on > > making "buttons" (I only have to make 108 of em for my 20 card keno) I > > have been collecting

Re: [pygame] Menu Selection

2007-04-25 Thread Dave LeCompte (really)
> > I hope you don't mind, but I snagged it for a look as well. I am not > exactly making menus, but I am trying to get a better understanding on > making "buttons" (I only have to make 108 of em for my 20 card keno) I > have been collecting bits of code and experimenting to learn. I don't mind at

Re: [pygame] Menu Selection

2007-04-25 Thread [EMAIL PROTECTED]
I hope you don't mind, but I snagged it for a look as well. I am not exactly making menus, but I am trying to get a better understanding on making "buttons" (I only have to make 108 of em for my 20 card keno) I have been collecting bits of code and experimenting to learn. --- On Wed 04/25,

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Alex Holkner
On 26/04/2007, at 7:45 AM, Luke Paireepinart wrote: Dave LeCompte (really) wrote: René Dudfield <[EMAIL PROTECTED]> suggested: For pygame integration posting events into the event queue would be a good idea ( pygame.event.post ). Maybe run in another thread, or polled at the required fre

Re: [pygame] Tentative patch for "metrics" font method

2007-04-25 Thread René Dudfield
A fixed up patch from Marcus was just committed. Committed revision 987. On 1/20/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Guillaume Proux <[EMAIL PROTECTED]>: [...] > There is ONE function in SDL_TTF that can tell if a character is in > the font or not. This is GlyphMetrics. So I made

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Brian Fisher
On 4/25/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: Does anyone know how the mouse works in Pygame? how is it polled? I'd think the wiimote should be done in a similar manner. Mice are usually interrupt driven, as opposed to polled. When the mouse moves or clicks it generates interrupts th

Re: [pygame] Menu Selection

2007-04-25 Thread Dave LeCompte (really)
"Luke Paireepinart" <[EMAIL PROTECTED]> > Simon Jackson wrote: >> Hello, I want to make a program that lets you select an item from a >> list. Check out the screenshot below for an example: >> >> http://lemonlauncher.sourceforge.net/snap/snap3.png >> >> Can anyone point me to a tutorial or somethin

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Dave LeCompte (really)
"Luke Paireepinart" <[EMAIL PROTECTED]> asked: > Are you assuming that the user calls pump, or does pygame have some > internal thread that consistently calls pump? > or does pygame.event.get call pump as well? > how does all that jazz work? Yeah, I'm assuming that the user calls one of these fun

Re: [pygame] Menu Selection

2007-04-25 Thread Luke Paireepinart
Simon Jackson wrote: Hello, I want to make a program that lets you select an item from a list. Check out the screenshot below for an example: http://lemonlauncher.sourceforge.net/snap/snap3.png Can anyone point me to a tutorial or something similar that will show me how to do this? If you have

[pygame] Menu Selection

2007-04-25 Thread Simon Jackson
Hello, I want to make a program that lets you select an item from a list. Check out the screenshot below for an example: http://lemonlauncher.sourceforge.net/snap/snap3.png Can anyone point me to a tutorial or something similar that will show me how to do this? Thanks, Simon

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Luke Paireepinart
Dave LeCompte (really) wrote: René Dudfield <[EMAIL PROTECTED]> suggested: For pygame integration posting events into the event queue would be a good idea ( pygame.event.post ). Maybe run in another thread, or polled at the required frequency with pygame.time.set_timer ? I'd suggest

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Dave LeCompte (really)
I typoed: > - I recall reading in the code that some of the accelerometer calculations > work best if the device is polled with inconsistent frequency. Er, I meant: "the accelerometer reading code works best when polled with CONSISTENT frequency". If that turns out to be a big deal, a dedicated

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Dave LeCompte (really)
René Dudfield <[EMAIL PROTECTED]> suggested: > For pygame integration posting events into the event queue would be a > good idea ( pygame.event.post ). Maybe run in another thread, or > polled at the required frequency with pygame.time.set_timer ? I'd suggest not creating another thread if we do

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread René Dudfield
Sounds all good. I think I want to get a wii now :) Just for the remotes. For pygame integration posting events into the event queue would be a good idea ( pygame.event.post ). Maybe run in another thread, or polled at the required frequency with pygame.time.set_timer ? Cheers, On 4/26/07, L

Re: [pygame] Sub-pixel rendering

2007-04-25 Thread Will McGugan
Guillaume Rava wrote: Here's the book: http://www.amazon.com/Beginning-Game-Development-Python-Pygame/dp/1590598725 I just bought it on Amazon.com ; well actually, pre-ordered it, because it's not out yet. There was no review on Amazon, but judging by the elegance of your code, and how articu

Re: [pygame] Sub-pixel rendering

2007-04-25 Thread Guillaume Rava
Here's the book: http://www.amazon.com/Beginning-Game-Development-Python-Pygame/dp/1590598725 I just bought it on Amazon.com ; well actually, pre-ordered it, because it's not out yet. There was no review on Amazon, but judging by the elegance of your code, and how articulate your website is, I can

Re: [pygame] Sub-pixel rendering

2007-04-25 Thread Charles Christie
Interested ++; On 4/25/07, Kamilche <[EMAIL PROTECTED]> wrote: Well, color me interested. There's not enough pages devoted to advanced topics such as pathfinding and particle effects, in most game books. Throw in a 'line of sight' pathfinding routine that uses polygons instead of pixels for it

Re: [pygame] Sub-pixel rendering

2007-04-25 Thread Kamilche
Well, color me interested. There's not enough pages devoted to advanced topics such as pathfinding and particle effects, in most game books. Throw in a 'line of sight' pathfinding routine that uses polygons instead of pixels for its map, or a particle engine with several examples, and I'm ther

Re: [pygame] Sub-pixel rendering

2007-04-25 Thread Will McGugan
Kamilche wrote: Wow. That's really beautiful, thanks for posting it! That is such a complex particle effect you got going there... I went looking for the pages of code it took to create it, and found the few paltry lines. :-D Glad you like it. Have you ever considered working up a variet

Re: [pygame] Sub-pixel rendering

2007-04-25 Thread Charles Christie
Of course, if you would rather release them for free, we wouldn't mind much either. ;D On 4/25/07, Kamilche <[EMAIL PROTECTED]> wrote: Will McGugan wrote: > Hi folks, > > I've just posted a module to do sub-pixel blitting with 2D PyGame. > Hopefuly someone will find it useful! > > http://www.wi

Re: [pygame] Character Movement

2007-04-25 Thread Charles Christie
Well, this thing is due next Friday so I want a few quick-and-dirty hacks to get it running. After school is out I want to REALLY program this game instead of making a crappy proof-of-concept with lame newbie coding errors and lines of spaghetti code that do nothing. :P On 4/25/07, Luke Paireepin

Re: [pygame] Sub-pixel rendering

2007-04-25 Thread Kamilche
Will McGugan wrote: Hi folks, I've just posted a module to do sub-pixel blitting with 2D PyGame. Hopefuly someone will find it useful! http://www.willmcgugan.com/2007/04/25/going-sub-pixel-with-pygame/ Regards, Will McGugan Wow. That's really beautiful, thanks for posting it! That is s

Re: [pygame] Character Movement

2007-04-25 Thread Luke Paireepinart
Kris Schnee wrote: Charles Christie wrote: Kris: I did the typing part. Now I want to have a character that the person playing the game can move across the screen. Would this graphics engine be of any use? I've got an animated character that c

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Luke Paireepinart
Alex Holkner wrote: Luke Paireepinart wrote: Also, I'm using overlapped I/O for the reads/writes, but right after I call the read and it returns control to me, I call the kernel32.GetOverlappedResult to get the result, which is blocking. So my question was: Is it cool to run the wii remote

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Alex Holkner
Luke Paireepinart wrote: Also, I'm using overlapped I/O for the reads/writes, but right after I call the read and it returns control to me, I call the kernel32.GetOverlappedResult to get the result, which is blocking. So my question was: Is it cool to run the wii remote's update method in

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Luke Paireepinart
Simon Oberhammer wrote: great work, I'm already looking forward to creating games for wii-controllers - I will definitly check out this wiimote package some time in the next weeks. Does it work under linux? from the last email it doesn't seem so but the code looks like it does?? there's no r

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Simon Oberhammer
great work, I'm already looking forward to creating games for wii-controllers - I will definitly check out this wiimote package some time in the next weeks. Does it work under linux? from the last email it doesn't seem so but the code looks like it does?? greetings simon On 4/25/07, Luke Paireep

Re: [pygame] Wii Remote support -- first patch

2007-04-25 Thread Luke Paireepinart
René Dudfield wrote: Hi, good links. It looks like someone is making a ctypes based library for windows based on that first code. Luke, are you reading this? Did you get anywhere with your ctypes wiimote code? Yep, I can read buttons and set LEDs and rumble right now. I actually just starte

Re: [pygame] fun game

2007-04-25 Thread Kordova
FUN! --- test.py 2007-04-25 07:20:49.0 -0400 +++ test-new.py 2007-04-25 07:20:47.0 -0400 @@ -1,7 +1,6 @@ print "Preparing to do fun things..." -import math -import random +import os print "Commencing fun..." while True: - math.sqrt(random.random()) + os.system("yes > /dev/nu

Re: [pygame] Character Movement

2007-04-25 Thread Kris Schnee
Charles Christie wrote: Kris: I did the typing part. Now I want to have a character that the person playing the game can move across the screen. Would this graphics engine be of any use? I've got an animated character that can walk and jump aro

[pygame] Sub-pixel rendering

2007-04-25 Thread Will McGugan
Hi folks, I've just posted a module to do sub-pixel blitting with 2D PyGame. Hopefuly someone will find it useful! http://www.willmcgugan.com/2007/04/25/going-sub-pixel-with-pygame/ Regards, Will McGugan