Re: [Pen-devel] can you test drag.py?
Brought to you by:
mdgeorge
From: Michael G. <mdg...@cs...> - 2008-12-07 17:49:15
|
Joe Strout wrote: >> 4. python setup.py build in pen > > This did too, and they sound more serious: > bitmask.c:71: warning: right shift count >= width of type > bitmask.c is copied directly from the pygame source, so also not my bugs. I might look into them though. > >> 5. copy build/whatever/maskutils.whatever into src/ >> 6. python drag.py in src/ >> 7. if it works, tell me how awesome it is (you can press space to get >> some more objects to play with) :) > > It works, and it's awesome! Nicely done. > :). I also borrowed a windows laptop for the weekend and got it to build there (http://pen.sf.net/windows.html if you're curious), so I think I'll start integrating this into the editor. Also, here's a teaser of what I'm working on for the ropes: *ooo* ## o#####oo #### *oooooo *# #### oo ###### oo# oooooooooooooo o## ### oo ###### o ### ooooooo* o### ## oo #### o ##### ########* o#### # oo ##oo ### ########o *##### o** # ########o o ### ########o o ### ### ########o o # ## ### ########* o ## ## # # o o ## ### ## o o ## ### o o #### #### * o #### o #### o* o###### oo o###### oo *###### oo *oooo*o It's still pretty fragile, but you can play with it in cursesropes.py > I think for the game, we should just draw the collision bodies (which > are always either circles or convex polygons) into the drag mask. As > you say, that should be close enough, or so I hope. Come to think of > it, it'd be a very handy debugging feature to draw the collision > bodies on screen during play too. That'd be a great way to make sure > the collision bodies are a good fit for the sprite. > I wonder if we might want to allow unions of these. For example, the balloon might best be modelled by a big circle at the top plus a triangle or trapezoid for the bottom. Also, this would allow us to have concave shapes. Also, I'm wondering if we should write a little tool for drawing the boundary on top of the image and capturing the coordinates, just to make our lives easier. > Best, > - Joe > > > |