Re: [pygame] Noticeable lag between key press events and sound events

2010-12-12 Thread inigo.delg...@gmail.com
I had the same problem in ubuntu... and I think it's yours There appears to be some problem with pygame (SDL) and ALSA It worked changing ALSA with pulseaudio... but it was a uggly solution I've found this one too: http://ubuntuforums.org/showthread.php?t=429258 But I haven't te

Re: [pygame] Networking

2011-03-06 Thread inigo.delg...@gmail.com
Well I've a petitions (or suggestions) I'm doing a online real-time game and have to solve that problem... I'll suggest you to do the thinks that are necessary from TCP to use over UDP, that's: A packet indexing method (to mantain the order of the packets in the reciber, it can be done by inserti

Re: [pygame] Pygame-UI: UI Component Framework for python and pygame

2011-07-01 Thread inigo.delg...@gmail.com
I have to do a UI for my game cause y want to costumize a lot of the menus I've done 3 (3!!!) almost funtional (with menus, checks, radios and animations) but while I'm programing my game for fun it must be almost perfect. I'll download the code and take a look on it this afternoon. 2011/6/2

Re: Re: [pygame] Pygame-UI: UI Component Framework for python and pygame

2011-07-01 Thread inigo.delg...@gmail.com
s my question: Do you prefer callbacks or custom component events > when using such a framework, because I have currently implemented callbacks > but I intend to change it to events say clicking on a button pushes > UIComponentClick with the component reference as argument. > > Best

Re: Re: Re: [pygame] Pygame-UI: UI Component Framework for python and pygame

2011-07-14 Thread inigo.delg...@gmail.com
I have just take the code and I dont like -or have to argue because dont think that is the best way to do- some things... As always I would like to be wrong and correct my opinions after this dicussion because my objetive is to learn and to improve my programming skills. Coding:     -8 whitespace

Re: Re: Re: [pygame] Pygame-UI: UI Component Framework for python and pygame

2011-07-14 Thread inigo.delg...@gmail.com
Another two cents (so you have 4!!! :P) I would make a object "background" and an object "foreground" instead of backgroundimage in the component style, so you can have animations in background an foreground (which is cool). 2011/7/14 inigo.delg...@gmail.com : > I have j

Re: [pygame] Surface objects

2011-07-14 Thread inigo.delg...@gmail.com
I dont understand well what are you wanting to do, a wrapper? Do a class that inherits Surface and that contains a Surface. Do implement all the methods callables of the object and say them to do in inside's surface, a simple example will be: class A: def __init__(self): print "init

Re: [pygame] trajectory

2011-07-25 Thread inigo.delg...@gmail.com
Im late to this threath but Why dont recalculate de vector in each iteration? they are two substractions... not a extensive calculation... no? This way missile ALWAYS will reach it objetive. 2011/7/25 BIAGINI Nathan : > Thanks. > The TD i have planned to code may contain lot of directio