Re: [pygame] controlled midi playback

2008-01-01 Thread Lenard Lindstrom
I guess it is getting late. LIBCMT.LIB is one version of the VC 6.0 C library, so apparently isn't present in VC 7.1. I expect uuid.lib is still be available. I am not so sure about OLDNAMES.LIB, but then you did not mention a LNK1104 for it so I assume it is also available. So try replacing li

Re: [pygame] Collision Resolver module

2008-01-01 Thread David Gowers
This is awesome; it certainly will save me a lot of trouble, and I agree that including it as part of PyGame would be a smart move.

Re: [pygame] controlled midi playback

2008-01-01 Thread Lenard Lindstrom
Python 2.5 extensions are compiled on Windows with vctoolkit2003 by default. It is the same compiler used on Python 2.5. When I compile with MinGW I get these warnings: Warning: .drectve `-defaultlib:LIBCMT ' unrecognized Warning: .drectve `-defaultlib:OLDNAMES ' unrecognized Warning: .drectve

Re: [pygame] controlled midi playback

2008-01-01 Thread [EMAIL PROTECTED]
that fixed the pyrex problem. i have the .c file now but there is another problem i ran into. i tried to use code::blocks and the vctoolkit2003 to compile the extension. i get this error message: fatal error LNK1104: cannot open file 'LIBCMTD.LIB ' maybe you can give me another tip? what compile

Re: [pygame] controlled midi playback

2008-01-01 Thread Lenard Lindstrom
Yeah. To make Pyrex compatible with C++ enumerations are no longer treated as integers, though assignment of an enumeration to an integer is still allowd. Not accepting an enumeration as a boolean value may be a bug. I would have to check. But then again it makes some sense. Just edit line 357

Re: [pygame] controlled midi playback

2008-01-01 Thread [EMAIL PROTECTED]
awesome! :) thanks a lot... now i only have to get pyportmidi compiled for python 2.5. i get this pyrex error: pypm.pyx:357:21: Type 'PmError' not acceptable as a boolean do you have an idea what causes this? On 1/1/08, Lenard Lindstrom <[EMAIL PROTECTED]> wrote: > > This was something I put tog

Re: [pygame] controlled midi playback

2008-01-01 Thread [EMAIL PROTECTED]
thanks! and does anyone know if there are examples somewhere? like a simple program which allows you to play a midi instrument (best using the integrated synthesizer on the sound card) with the computer keyboard? On 1/1/08, Lenard Lindstrom <[EMAIL PROTECTED]> wrote: > > Try http://alumni.media.

Re: [pygame] Collision Resolver module

2008-01-01 Thread sjbrown
I'm not sure what tutorial you're referring to. What this collision_resolver module does that the provided tools do not do is detect collisions that happened inside the hexagon that the rect travelled through, and provide an easy way to resolve the collisions so that the moving rect can be "blocke

Re: [pygame] Collision Resolver module

2008-01-01 Thread Luca
On Jan 1, 2008 7:49 PM, <[EMAIL PROTECTED]> wrote: > Pygame should aspire to providing a very rich (while being consistent, lean, > and elegant) set of tools. > I'm not a smart pygame user yet so my opinion can be very poor, but what I quoted here is true, and important. This is true for all engi

Re: [pygame] Virtual attributes of pygame.Rect

2008-01-01 Thread Jake b
If the self argument ( sean's post ) doesn't fix the problem, it could be that the Rect() is actually a tuple. I ran into this before. To fix this, see: http://www.mail-archive.com/pygame-users@seul.org/msg05338.html On Dec 26, 2007 4:04 AM, <[EMAIL PROTECTED]> wrote: > > > > Hi everyone, > > Fir

Re: [pygame] Collision Resolver module

2008-01-01 Thread sjbrown
I don't think it's bloat, nor does it belong in a specific game engine. A game engine is something designed to work for a particular genre of game. This is a general problem that will be seen in many types of game. Genres that this problem *must* be solved for: Platformers, Shoot-em-up, Any top-

Re: [pygame] Collision Resolver module

2008-01-01 Thread Brian Fisher
This looks like a python binding for an extremely similar 2d physics engine, chipmunk (it even uses some of the same algorithms from box2d) http://www.pyweek.org/d/932/ On Jan 1, 2008 7:29 AM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > did anyone look into box2d? (http://www.box2d.org/) > i t

Re: [pygame] convert() bug?

2008-01-01 Thread Brian Fisher
I load png and jpg on Linux mac and win with no problems so far. I assume every distro of pygame has image_ext in it, and that it provides a consistent level of format support across all platforms in the load function. I would say if you experience something that isn't consistent in that way, it sh

Re: [pygame] controlled midi playback

2008-01-01 Thread Lenard Lindstrom
Try http://alumni.media.mit.edu/~harrison/code.html Lenard [EMAIL PROTECTED] wrote: thanks! http://sound.media.mit.edu/~harrison/pyportmidi/ it sounds like it is what i need but unfortunately it doesn't seem to be available anymore... On

Re: [pygame] convert() bug?

2008-01-01 Thread hwg
Thanks for the explanation. I have another, related question... What image formats are supported cross-platform (Windows, Linux, Mac) by default in Pygame, without using any other modules or external graphics aupport? Thanks, hwg - Original Message From: Brian Fisher <[EMAIL PROTECT

Re: [pygame] Collision Resolver module

2008-01-01 Thread [EMAIL PROTECTED]
did anyone look into box2d? (http://www.box2d.org/) i think this also could be nice for using it with pygame. is there a python wrapper for it? sorry for being slightly offtopic... On 1/1/08, Laura Creighton <[EMAIL PROTECTED]> wrote: > > In a message of Tue, 01 Jan 2008 04:46:08 EST, bhaaluu writ

Re: [pygame] controlled midi playback

2008-01-01 Thread [EMAIL PROTECTED]
thanks! http://sound.media.mit.edu/~harrison/pyportmidi/ it sounds like it is what i need but unfortunately it doesn't seem to be available anymore... On 1/1/08, Lenard Lindstrom <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > hi, > > > > i have a midi song (not polyphonic) and want to

Re: [pygame] Collision Resolver module

2008-01-01 Thread Laura Creighton
In a message of Tue, 01 Jan 2008 04:46:08 EST, bhaaluu writes: >Perhaps the collission-resolver module should be included in a "Game Engi >ne" >leaving PyGame as is? > >The collission-resolver is a really nice module, but adding it to PyGame >seems >like the beginning of creeping feature bloat? I'

Re: [pygame] Collision Resolver module

2008-01-01 Thread bhaaluu
Perhaps the collission-resolver module should be included in a "Game Engine" leaving PyGame as is? The collission-resolver is a really nice module, but adding it to PyGame seems like the beginning of creeping feature bloat? I'd rather see it added to a Game Engine, and have a nice tutorial written