Puzzle Piece Game Logic

Hi. I'm a recently new user of Corona and I was wondering, is there was a logic already made for making puzzle pieces in Corona (For example, you have a bunch of pieces of a full image that you can put together on the screen)? If not, I'm working on something like that and I'm finishing the bugs on the logic. I can put it in the code exchange pretty soon, but I would rather not post what someone already did.

For clarification do you mean a jigsaw puzzle?

Not exactly I'm talking about having a picture broken apart into separate squares and scattered in a gridded layout. You then have to can shuffle the pieces around to try and get the full view. This logic can be used for jigsaw puzzles to with a little tweaking though.

James,

Thank you for your effort!

Do you have any code to share yet?

Leo

Yea I do. I'll be submitting it this Saturday. Just wasn't sure if It was already posted previously.

Wonderful!

I'm looking forward to try it out.

Thank you,
Leo

Any updates (links) yet?

Leo

@anscamobile8,
use a sprite sheet, split the image into squares depending on the size you want, each frame is the image you want.

see the samples in the Corona Directory to know more about SpriteSheets

cheers,

?:)

Hey ansca,

It's up now: http://developer.anscamobile.com/code/puzzle-piece-game-logic.

Let me know what you think and I hope it helps!

views:1455 update:2011/9/29 19:21:19
corona forums © 2003-2011