EvG9
EvG9

Reputation: 305

texture2D splitting in XNA

I want to make a puzzle game in XNA where I take a picture and divide it into several parts and the user has to get all the parts back in the right order. The thing is I am new to XNA and WP programming and I have googled a lot and still I can't find any good links that help me with what I am trying to do. I just want to know how can I split the texture into different parts. Could anyone help me by providing links if they have them? Or guide me as to how this can be done? Thanks

Upvotes: 0

Views: 469

Answers (1)

Msonic
Msonic

Reputation: 1456

If you want square pieces, you can have multiple pieces with the same image (full puzzle). If you edit the "source" parameter when you draw your puzzle pieces, you can render only a part of the image, thus making different pieces.

Upvotes: 3

Related Questions