From: Pete S. <pe...@vi...> - 2000-09-11 19:47:13
|
> Actually I get good information from the regular SDL > list even though I don't really program in C at all. > There are a lot of applicable discussions about how to > do blitting and updating rectangles, that sort of > thing. peter's right, i spend a lot of time here too. i do know C programming, but pretty much all the pySDL functions have a 1-to-1 call for their C function. pySDL is a pretty thin wrapping, so techniques for the C SDL apply directly to the python version. > > Is there any publicly available PySDL applications > > that I could use to see how others have done things? > > The new version of PyAliens is pretty good for that. > It would be nice to have a place for people to upload > things they've done with PySDL, I'd contribute to > that. currently, all pysdl applications i know of are open source. the "examples" directory that comes with pysdl is a bit frightening, and i've currently rewritten most of those to be simple and elegent (and as a bonus, work correctly). i'll be releasing that real soon, but for i'd recommend the cleanedup pyaliens i did, and you can also see cowtipper by Jeff Clement. I also recommend David Clark's pyPanda, pyStars, and the direct-from-c- conversion, pyAliens-1.1 the devel-pysdl archive lost my post?? here is a temporary home for the cleaner pyAliens: (note, this wasn't the exact version i put on the mailing list recently, but it should be close. i noticed it does print fps to the console as it plays) http://www.shinners.org/pete/ cowtipper: http://bluesine.com/archives/software/cowTipper/ david's goodstuff: http://www3.telus.net/futility/futility/software.html > This sounds good. I just started using Python 2.0, and > the old modules don't work with it, including pysdl. So > far I use 1.52 for the development of the parts that use > pysdl, and 2.0 for the parts that rely on the new XML > handling. It would be nice if there would be a Python 2.0 > version of pysdl some day. I have no idea as to how hard > it is to do the port, but I hope it's not impossible? well, if anyone's interested, i have a version of my super-secret, unlreased source-split version of pysdl ready as a binary release for python 2.0b1 (win32). i've been using it for my testing and it works quite well. my big grief with it now is that it's using the latest CVS SDL and the alpha- slightly-incompatible SDL_image-1.0.9. so all image alphas are backwards. it's a pain using images with alphas (for now) but it does work with python2. if anyone wants, i'll post the binaries. |