[OLPC-Games] Pygame Mouse Events

Noah Kantrowitz kantrn at rpi.edu
Thu Jul 5 03:41:48 EDT 2007


Pedro Kayatt wrote:
> In the game!? Is about 24fps, but like i don't implement dirty rectangles
> yet, the game run with 7fps on XO...

Suffice to say this is a known bug. GTK generates mouse events far more
quickly than SDL, and unless you have a high framerate (think >45) it
will quickly overflow the queue and crash the game.

--Noah

> 2007/7/4, Noah Kantrowitz <kantrn at rpi.edu>:
>>
>> What is your framerate?
>>
>> --Noah
>>
>> Pedro Kayatt wrote:
>> > Hi guys,
>> >
>> > I make part of a Research Groups from Brazil, USP, called LSI, and
>> we re
>> > developting some activities to the XO, and in the last weeks I made a
>> > musical game in pygame.
>> > You can found more information on
>> > http://wiki.laptop.org/go/Quebra-Cabeca_Musical including the code (at
>> > googlecode qcmusical).
>> >
>> > But when I play it on my desktop, there's no errors, so i start to
>> include
>> > it in XO, like an activity. I download the olpcgames wrapper from
>> > coderanger, and follow the steps of
>> > http://wiki.laptop.org/go/Game_development_HOWTO but when I start the
>> > activity I can start the game.. even the main screen load.
>> >
>> > I think this can be because this game is like an point and click game,
>> > using
>> > all the time the mouse.
>> >
>> > So, anyone have suggestions?
>> >
>> >
>> >
>> >
>> >
>> ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > Games mailing list
>> > Games at lists.laptop.org
>> > http://lists.laptop.org/listinfo/games
>>
>>
>>
>> _______________________________________________
>> Games mailing list
>> Games at lists.laptop.org
>> http://lists.laptop.org/listinfo/games
>>
>>
>>
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Games mailing list
> Games at lists.laptop.org
> http://lists.laptop.org/listinfo/games


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : http://lists.laptop.org/pipermail/games/attachments/20070705/dece4347/attachment.pgp 


More information about the Games mailing list