Thread: Win32 tetris game problem

  1. #1
    Registered User Finchie_88's Avatar
    Join Date
    Aug 2004
    Posts
    154

    Question Win32 tetris game problem

    hi, im in the middle of making a tetris game program, but am having a few problems:-

    1) I'm having difficulty showing the bitmaps in my win32 program...

    2) I'm having a problem making the bitmaps rotate by ninety degrees when you press a button, in both directions...

    3) I'm having a problem because the bitmaps tend to fall "though" each other after the first few have fallen, the rest carrying on falling when they should stop because of the others beneath them...


  2. #2
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    Here's a design that I, and many others, have used.

    Have a cell class/struct. Then make a board class which has x by y cells. The cells can either be occupied or not. Then create each tetris piece by making 3x3 cell arrays. Then set which cells are visible and which aren't. For rotating, you'll just have to rotate the array itself, and the piece is automatically rotated.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A question related to strcmp
    By meili100 in forum C++ Programming
    Replies: 6
    Last Post: 07-07-2007, 02:51 PM
  2. My Memory Game
    By jazy921 in forum C Programming
    Replies: 0
    Last Post: 05-05-2003, 05:13 PM
  3. My tetris game 2.0
    By PJYelton in forum Game Programming
    Replies: 12
    Last Post: 04-25-2003, 03:40 AM
  4. win32 Winsock problem
    By spoon_ in forum Windows Programming
    Replies: 3
    Last Post: 07-19-2002, 01:19 AM
  5. Random Number problem in number guessing game...
    By -leech- in forum Windows Programming
    Replies: 8
    Last Post: 01-15-2002, 05:00 PM