2d Tiles Tutorial?
Ok, I've managed to create some games in basic console windows, and know some semi-advanced OpenGL, but another approach seems to be 2d Tiles.
Does anybody know any tutorials that explain how to make tile-based stuff ? Cause OpenGL and DirectX do not seem to be able to do this >_>
I'm quite sure the best known API's are capable of doing an easy task. Try gamedev.net
For 2D using opengl you want to look into glOrtho. There is also a tutorial at nehe.gamedev.net that shows how to setup OpenGL for 2D.
Check this post out aswell: http://cboard.cprogramming.com/game-programming/83200-super-fast-tile-rendering-scrolling-d3d.html its directX but the theory or the principle is the same for OpenGL.
>>and know some semi-advanced OpenGL
Then you should know about using an orthographic view, how to draw quads, how to load textures. And depending on the types of games you have done already, boundary checking should be easy enough too.
And, "no" DirectX and OpenGL do not specifically support 2D tiles or anything for that matter. It's up to you the programmer to put all of the tools these API's give to you into your engine to perform different tasks. The less specific an API is, the more robust.