[Grassroots-l] [OLPC-Games] Physics with Python and Pygame (Chipmunk 2D Physics Engine)
Chris Hager
chris at linuxuser.at
Thu Mar 13 08:07:58 EDT 2008
Hey,
I've just finished making a xo bundle out of the physics thingy :) It's
a selection of the 3 last demos (6, 7 and 8). With not too many objects,
it's quite fun to play with :) Especially the drawing and behaviour of
polygons is always again fascinating. The activity (and project) is now
called 'elements' (http://wiki.laptop.org/go/Elements)
http://www.linuxuser.at/elements/elements.xo (195 kb)
And the normal download (with short doc and the chipmunk sources in C):
http://www.linuxuser.at/elements/elements.zip (340 kb)
Chris
PS: Phun seems to be interesting, but unfortunately it comes without
source :( Also, I tried Chipmunk with OpenGL, but it made no speed
improvements. The physics engine tends to be the bottleneck - so normal
pygame SDL is just as fast.
Samuel Klein wrote:
> Chris, that's awesome. I'm adding the phun team to the thread; they
> may have good ideas about examples as well. (phun is also sweet, but
> uses OpenGL... http://www.phun.at/ )
>
> SJ
>
> On Mon, Mar 10, 2008 at 10:57 AM, Chris Ball <cjb at laptop.org> wrote:
>
>> Hi Chris,
>>
>>
>> > So all together the dependencies for the xo laptop (chipmunk,
>> > pymunk and pymunx) are ~ 150kb. (+6.7kb for the demo :)
>>
>> Sounds good to me.
>>
>>
>> > Integrating the physics examples it into pippy would be interesting
>> > -- my primary goal was to make it easy-to-use and to have examples
>> > anyway. I would be up to do that, are there any pygame examples
>> > for pippy yet?
>>
>> Yup, there are several included examples already using pygame (bounce,
>> camera, lines, pong, slideshow). I just tried out throwing the examples
>> (into pippy/data/physics) and pymunk/pymunx (pippy/library) into Pippy,
>> and most of them worked. Some of them depend on pyglet, I think.
>>
>> Let me know if you'd like to go ahead and roll these up into Pippy --
>> maybe we could pick three or so of the examples for it?
>>
>>
>> Thanks!
>>
>> - Chris.
>> --
>> Chris Ball <cjb at laptop.org>
>> _______________________________________________
>> Games mailing list
>> Games at lists.laptop.org
>> http://lists.laptop.org/listinfo/games
>>
>>
>
>
>
More information about the Grassroots
mailing list