Pynolathgeen 19 Light Poster

Hello,

I'm programming an little MMORPG for getting experience in Game Programming.
I need a 2D Camera thing for this game to expand it a lot, since an MMORPG is not only on the same map.

I know the trick of just moving everything to the left or the right depending of the movement, but I dislike using it because it ruins my collision detection things.

I already have a piece of code, and code runs fine but not as it should, the rendering is upside down.

D3DXMatrixOrthoLH(&Ortho2D, 800.0, 600.0, 0.0f, 1.0f);
D3DXMatrixIdentity(&Identity);

Device->SetTransform(D3DTS_PROJECTION, &Ortho2D);
Device->SetTransform(D3DTS_WORLD, &Identity);
Device->SetTransform(D3DTS_VIEW, &Identity);

This is all the code I can provide right now as I am on a different PC.

If you think you can help me, please post one.

Thanks!~