-
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. :confused:
-
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.
-
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.
-
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.
-
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
;)
-
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? :)