
A talk I game to Hampshire Linux User Group was accompanied by this Box2D demo/slideshow.
This demo requires PyOpenGL and pyBox2D.
PyOpenGL should work from the distribution, but at the time of writing, pyBox2D is not packaged and the archive on the Python Package Index (PyPI) that would be installed with easy_install, does not compile.
You will need subversion installed to check out pyBox2D and swig which is required by the build process to generate the bindings. You will also need gcc and so on, and python development tools.
Under Debian/Ubuntu these would be provided by the packages build-essential, python-dev, swig and subversion.
If you do not have root access or do not want to install pyBox2D into your system Python site-packages directory, replace step 4. with
Download the demo from the link below.
As well as Box2D as described above, the demo requires Pygameand PyOpenGL. (On Debian, run
$ sudo aptitude install python-pygame python-opengl
). Extract the archive, and from that directory, run
python talk.py
Then
To advance a slide/action, right click. Drag objects with the left mouse button. To quit, press Ctrl + Escape
To change screen resolution, specify the -r option at the commandline
python talk.py -r 1024x768
To run fullscreen, specify the -f option at the commandline
python talk.py -f
Hi Dan
Just to say thanks, it works a treat...
Cheers
Ian
If you would like to leave a comment about this project, please complete the following form:
veles1234
on Forum Quest
?????? ????????-???????? ???????????, ????????? ? ???????? (?????, ???????, ?????, ?????, ???? ? ??.).??????????? ???????. ????????? ?? ????????? www.veles2003.com.ua/tenti.html ??? ??????? ...