Win 32 Game Bitmap issue

This is a discussion on Win 32 Game Bitmap issue within the Game Programming forums, part of the General Programming Boards category; At the moment i am making a game, 2d, with Win32 and C++ and in this game you are a ...

  1. #1
    Call me AirBronto
    Join Date
    Sep 2004
    Location
    Indianapolis, Indiana
    Posts
    195

    Win 32 Game Bitmap issue

    At the moment i am making a game, 2d, with Win32 and C++ and in this game you are a stick figure. Now for the aiming in this game i am using the Y input from the mouse to dictate the number of degrees the upper body rotates, the legs are a different bitmap. but you cant rotate a RECT in Win 32 becouse of how poorly the structure is set up. can some one out there help me figure out what to use inplace of a bit map for the upper body.

  2. #2
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    And just why can't you rotate a RECT in win32?

    Look up:

    SetGraphicsMode
    SetWorldTransform

    You're going to have to read about these on MSDN to find out the params and what mode you need to be in to allow world transformations to happen. I'll leave that as an exercise to you though.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  3. #3
    Call me AirBronto
    Join Date
    Sep 2004
    Location
    Indianapolis, Indiana
    Posts
    195
    you canot rotate a RECT in win32 becouse it defines the upper left hand corner and the lower right hand corner, then draws the rectangle based on there distances apart.

  4. #4
    Registered User
    Join Date
    Apr 2002
    Posts
    1,571
    Did you even look at the API's I posted? That will transform the screen and everything on it (i.e. a RECT). Look into it.
    "...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers

  5. #5
    Call me AirBronto
    Join Date
    Sep 2004
    Location
    Indianapolis, Indiana
    Posts
    195

    Wink

    sorry man i posted befor i looked at the APIs becouse i at first thought you were taking about rotating it with just its normal paramaters.

    thanks alot for the APIs they were really helpful

  6. #6
    Politics&Cpp geek Da-Nuka's Avatar
    Join Date
    Oct 2004
    Posts
    104
    How do you display changes in the game?
    Do you do it with WM_TIMER messages?
    Or do you use a game-loop within the messageloop?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. craps game & dice game..
    By cgurl05 in forum C Programming
    Replies: 3
    Last Post: 03-25-2006, 06:58 PM
  2. PC Game project requires c++ programmers
    By drallstars in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 02-21-2006, 11:23 PM
  3. Game Engine Link Prob
    By swgh in forum Game Programming
    Replies: 2
    Last Post: 01-25-2006, 11:14 PM
  4. Resource ICONs
    By gbaker in forum Windows Programming
    Replies: 4
    Last Post: 12-15-2003, 06:18 AM
  5. FREEDOM! Win Bitmap Unload
    By _Unregistered_ in forum Windows Programming
    Replies: 7
    Last Post: 04-10-2002, 01:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21