I am looking for a tutorial that teaches the reader how to render tiles as they are arrange in a array looking like this.
Code:
int groundMap[5][5] = {
{2 , 2 , 2 , 2 , 2},
{2 , 1 , 1 , 1 , 2},
{2 , 1 , 1 , 1 , 2},
{2 , 1 , 1 , 1 , 2},
{2 , 2 , 2 , 2 , 2},
};
Here does the numbers represent a tile (file).
ex. 1 is grass and 2 is dirt.
A friend helped me with this in openGL but he doesn't know directx so he cant help me.
I have been looking for a few months after a tutorial that teaches the reader this.
I wish to use D3D and DirectX9 with C++. But all I find when I google is articles about DirectDraw and tiles, and I wish to learn D3D not DirectDraw.
This is a sample from the render we made in openGL (so people know what I am looking for). http://data.fuskbugg.se/skalman01/testRender.jpg hopefully someone that are good with DirectX9 and d3d can help me or show a tutorial about this or maybe has a example to show.
To people that wish to reply to the thread:
Keep to the topic please I am just trying to find this and so I can learn.