Cool, no sweat! The bowling app is here: http://workingweek.org/apps/bowling-0.1.tar.gz
It makes pretty good use of the ode extensions, though I'd like to add more complexity to the physics. It requires the latest Soya from CVS (to get the linear velocity to work). To play: * By default, the game is for two players. You can specify more or less on the command line, like so: python bowling.py 3 * To aim the ball, hold down the left mouse button * To throw, release the left mouse button * After your ball has hit all the pins you think it's going to hit, press "Enter" to continue. Notes: * Scoring is VERY generous. Just tapping a pin will mark it as hit (TODO: make this tougher) * The game logic isn't finished yet, so there is no end to the game. (TODO: add 10th-frame logic) * The struck pins get moved behind the "player". Don't be surprised if you see them in the background. (TODO: find a better place to stash these, probably behind some scenery) * I'm really looking for ideas to make the game look and play better, so all suggestions welcome. * Any tips on using FRICTION would be appreciated. I played around with mu and slip, but I didn't get good results. Eventually, I'd like the ball to be able to hook, which would require that the ball spin fast enough at first to overcome static friction, then slow down enough to catch the floor and start hooking. Not sure how to make this work. * The code is an undocumented mess. Sorry! * The scale is wacked out. The units are about 4 times as large as they ought to be, assuming 1 unit ought to equal 1 meter, hence my fudging the gravity. 4 units = 1 meter. * Does anyone have any idea how to use the widgets? Right now, I'm just using text labels, but I'd like to use Banner objects if I can get them to work. Hope it's fun and educational! -Mike On Fri, 2005-02-04 at 10:43 -0800, Sean R. Lynch wrote: > Michael Edwards wrote: > > >Ah, we tied! I decided to learn a bit about pyrex and added it in to my > >local source just before I got your email. Interesting stuff! > > > >So, linear_velocity was definitely the missing piece of the puzzle for > >me. > > > >The CCylinders are working now, too. I just need to adjust the geom so > >that the y axis is normal to the caps instead of the z axis. > > > >Thanks! > >-Mike > > > >P.S. Let me know if you need a test app, since I'd be happy to tar this > >bowling app up and post it online after I clean it up a bit. > > > > > > > > > It would be great to get the bowling app online! People keep asking me > for examples and docs, and even though I've posted the pydoc > documentation online (it needs to be updated), there really needs to be > decent examples. > > Thanks! > --
