| |||||||||||
PyWeek - PyODE 2d physics demo.We have some nice 2d physics working now, thanks to PyODE. Still a long way from being a game though.Demo code, tap the arrow keys. Needs PyODE. — erik on 2007/04/03 06:38 of The Black Shoe Comments: (log in to comment) |
Last Challenge
September 2008 [entries, ratings] Previous March 2008 [entries, ratings] September 2007 [entries, ratings] > April 2007 [entries, ratings] September 2006 [entries, ratings] March 2006 [entries, ratings] (June 2006) August 2005 [entries, ratings] Not logged in Login | ||||||||||
By simono on 2007/04/03 12:25:
hi, tried the demo on ubuntu linux. i have python 2.4 and the pyode, that comes with ubuntu installed. but sadly it crashes withsimon@silentia:~/Desktop/Pyweek other entries/balloon-demo-1.0$ python run_game.py Traceback (most recent call last): File "run_game.py", line 13, in ? main.main() File "/home/simon/Desktop/Pyweek other entries/balloon-demo-1.0/lib/main.py", line 71, in main ball = Balloon(world,space, object_list, pos=(.5,3)) File "/home/simon/Desktop/Pyweek other entries/balloon-demo-1.0/lib/Balloon.py", line 19, in __init__ ODEObject.__init__(self,world,space,list,ode.GeomSphere(space, radius), mass, pos=pos,image='ball') File "/home/simon/Desktop/Pyweek other entries/balloon-demo-1.0/lib/ODEObject.py", line 33, in __init__ self.join2d = ode.Plane2DJoint(world) AttributeError: 'module' object has no attribute 'Plane2DJoint'By faassen on 2007/04/03 12:38:
You need a newer version of ODE PyODE for the Plane2DJoint - 0.7 I believe.By simono on 2007/04/03 12:41:
I see - could you package that with the game? I really don't want to install it. I think including as much as possible will make your rating go up :-)By selsine on 2007/04/03 13:49:
Yeah I was thinking of working with pyODE and was wondering if there was an easy way to package it up, or to use it as a simple module.
Does anyone have any experience with this or any helpful links?
By erik on 2007/04/03 14:46:
For the final release we will do py2exe and py2app versions. I'm not sure about building linux binaries though, we've never done it before.By faassen on 2007/04/03 16:55:
For linux support, I have a zc.buildout configuration that builds ode and pyode more or less automatically (and installs them locally, so the system setup remains intact). I will post about it at some stage.By saluk on 2007/04/03 18:00:
erik: you can use cx_freeze to make a linux exe, I've had success with this in the past. It will package up pygame, I'm not sure about pyode, but it's work a shot.