-
Resizing surfaces
I'm building an adventure engine for when I prolly gonna build a game later on, basically I have no clue how to resize directdraw surfaces..
Since the character if he walks towards the back he'll shrink and if he comes back he'll grow...
(Examples: Sam & Max, Monkey Island, etc)
Anyone got an idea on this or an example? :)
-
You'd probably use Direct3D for this, even if your end result will be 2D. Look on http://www.directx4vb.com/, DirectX8 -> DirectGraphics -> 3D for 2D (pts. I and II) for more information. Using this, you can do rotation (well, it requires some maths knowledge, but is easy once you have this done), and you can resize surfaces very easily.
-
Actually i'm using Dx7... Dx8 was a bit too much for me to handle.. (as in, I suck at 3D vectors and thus the way Dx8 handles 2d)
-
Either the BltFast or Blt method handles resizing. You just set the destination rect to whatever size you won't. You might want to reconsider doing something like this in 2D however. Getting the correct perspective won't be easy I believe.
-
hey monkey island 1 looked good, so how difficult can it be to do the engine in Dx ;-)