-
2D Tile Based Game
Yay.
Now these kind of games seem to be very outdated etc etc but I'm venturing into game programming for the first time, so I need something to get started with.
Just looking for some tips etc to send me on my merry way. Anything I should out for? Anything I should use / not use?
-
Ok. Because I want to, I've decided I'd like to use OpenGL for this 2D tile based game. Sick, isn't it.
I just need to know: are there any tutorials for 2d programming with opengl? I googled '2d opengl tutorial' but that turned up very few useful sites.
-
your not gonna find to many tutorials... just set GL to render in ortho, and use polygons for the tiles...
-
Everything after the first ellipses ('...') in that sentance made no sense to me what so ever. Well except for render, polygons and tiles, so that leaves ortho. Hmm, an ominous phrase to say the least.
-
Read up on any OGL tutorial and they'll tell you how to set up the rendering context (which is where all the drawing goes on) and they will probably explain some of the different "modes" you can be in (ortho being one of them).
A quick explanation: glOrtho will tell openGL to use a different matrix to alter your transforms, causing geometry drawn far on the Z to appear just as large as geometry close to the origin.
-
You would best be reading tutorials about general Tile Rendering than OpenGL specific. They are two different things. If this is your first jump into game programming then I suggest doing some OpenGL (or an alternative) tutorials and then later you can learn how to render some tile maps.
-
Ok I think that would be best too. Thanks for your help guys.