Results 1 to 3 of 3

Thread: jigsaw game

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Posts
    6

    jigsaw game

    i'm new in game programming
    i'm planning to make a puzzle game, but i've many problems

    1. how to cut a part of an image and put to one control

    2. how to make rounded activex control( the shape like those in real jigsaw game)

    3. how to rotate images

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Well to cut the images you could just create the one device context for the the entire picture, and then "Blit" from specific areas of that picture ...
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3
    Zaei
    Guest
    Probably the best way that I can think of making a puzzle game is to make a 2D array for the height an width of the puzzle, one for each piece. Each array has a value, 0..numPieces - 1. On the side, you have the piece bank, which you can select your piece from, and then click on the main area, to place the piece. Create some code to take the mouse click location, and turn it into an array index (for the 2D array), check the piece ID against the location in the array. if they match, place the piece. Otherwise, put it back into the bank. You can do this by creating a BIG bitmap with each piece, and use BitBlt with a Mask (look around on here to find that information) to draw the pieces.

    Z.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width