Re: [pygame] how to change layer of a sprite in LayeredDirty group ?

2011-04-17 Thread B W
Hi, Horst. If I recall correctly you can: 1. Set the sprite._layered attribute before adding sprite to the group. 2. Specify group.add(sprite, layer=n) where n is the layer. 3. Use group.change_layer(sprite, n) where n is the new layer. Gumm On Sun, Apr 17, 2011 at 8:43 AM, Horst JENS wrote:

[pygame] Pygame on Mac App Store?

2011-04-17 Thread Keith Nemitz
I'm about to submit my first game to the Macintosh App Store. Has anyone here gone through that process with a pygame app built with Py2App? Would love to know pitfalls and solutions in advance.

Re: [pygame] Re: Intermittent failure of surfarray.make_surface

2011-04-17 Thread Lenard Lindstrom
Hi, The bug would be something like you describe. A 64 bit int is pushed onto the stack, but PyArg_ParseTuple expects a 32 bit integer, so the rest of the arguments are out of alignment. However, _numpysurfarray.py has been reimplemented in Pygame 1.9.2, and no longer uses bufferproxies. Len

[pygame] Re: Intermittent failure of surfarray.make_surface

2011-04-17 Thread Weeble
On Sun, Apr 17, 2011 at 4:40 PM, Weeble wrote: > I get this error every so often when trying to use surfarray.make_surface: [...] > IndexError: bytes to write exceed buffer size Oops, I forgot to mention versions: ~$ python -V Python 2.6.5 ~$ uname -a Linux dischord 2.6.32-30-generic #59-Ubuntu

[pygame] how to change layer of a sprite in LayeredDirty group ?

2011-04-17 Thread Horst JENS
Hi, a question regarding pygame's LayeredDirty() group for sprites: how do i set or change the layer of a sprite in this group correctly ? At the moment (using pygame 1.9.1) i'm ony able to have the layer reflect the point of creating the sprite (newer sprites are on top of older sprites), but i

[pygame] Intermittent failure of surfarray.make_surface

2011-04-17 Thread Weeble
I get this error every so often when trying to use surfarray.make_surface: Traceback (most recent call last): [...] File "/home/weeble/py/minecraft_mapping/tilemapping.py", line 348, in hacky_map_render resources = make_resources(pygame.surfarray.make_surface(pixels)) File "/usr/local/li