[pygame] Re: manually cutting a picture

2007-11-06 Thread Joseph king
I have a kinda hard question i am trying to build a jigsaw game with python, i would like to give the option for people to create there own puzzle piece does anyone know how to accomplish this it is becoming increasingly difficult for me

Re: [pygame] Re: manually cutting a picture

2007-11-06 Thread Michael George
Do you want to cut them into curvy non-recangular pieces or are rectangular pieces good enough? I'm not sure how to do non-rectangular pieces although it's an interesting puzzle :) I think you'd need to use the surfarray module. --Mike Marcus von Appen wrote: On, Tue Nov 06, 2007, Joseph

Re: [pygame] Re: manually cutting a picture

2007-11-06 Thread Noah Kantrowitz
For normal jigsaw-ish shapes (read: highly irregular) I would bounce the images through Cairo. If all you need is a simple, repeating cutout you may be able to do it in pure SDL, but it would be tricky. --Noah On Nov 6, 2007, at 12:48 PM, Michael George wrote: Do you want to cut them into

Re: [pygame] Re: manually cutting a picture

2007-11-06 Thread Joseph king
what i want to do is make it so that the user playing the game can decide how the pices are cut size shape and other things like that. i can't seem to get it to where the user can use his mouse per say or have pre shaped cut out templates to chose from to make what he wants a puzzle piece. thanks

Re: [pygame] Re: manually cutting a picture

2007-11-06 Thread Casey Duncan
On Nov 6, 2007, at 9:29 AM, Joseph king wrote: I have a kinda hard question i am trying to build a jigsaw game with python, i would like to give the option for people to create there own puzzle piece does anyone know how to accomplish this it is becoming increasingly difficult for

Re: [pygame] Re: manually cutting a picture

2007-11-06 Thread Joseph king
Ok so let me get this straight what i would do i create a piece say puzzlepiece_1 _2 and so on make them as templates that the user can use to cut out the image where he wants to. so what i would have is something like this. Def curvature_func(pos, eb_size, xmod, ymod): #A general curve to

Re: [pygame] Re: manually cutting a picture

2007-11-06 Thread Greg Ewing
Joseph king wrote: i am trying to build a jigsaw game with python, i would like to give the option for people to create there own puzzle piece does anyone know how to accomplish this it is becoming increasingly difficult for me What sort of shapes do you want to be able to create? Would

Re: [pygame] Re: manually cutting a picture

2007-11-06 Thread Joseph king
i would like to create something that chose as a piece. On Nov 6, 2007 5:25 PM, Greg Ewing [EMAIL PROTECTED] wrote: Joseph king wrote: i am trying to build a jigsaw game with python, i would like to give the option for people to create there own puzzle piece does anyone know how to