View Full Version : 2D Games in OpenGL? :)

06-05-2001, 11:01 AM
Hello http://www.opengl.org/discussion_boards/ubb/smile.gif ,

I have a Question: I want to do a nice 2D-Jump n' Run with OpenGL. But I want to use a random generated Landscape. Should I draw it with Polygones or something? What would be the best and fastest way to display such a World?

06-05-2001, 12:57 PM
I'm not sure about fastest but the most standard method involves "tiles". Tiles are little pictures you put together to form the ground and landscape or whatever. Then u just move the tiles around to get a side scrolling effect. pretty simple really (i think)

06-06-2001, 06:31 AM
Yes, I thought about tiles too, but I can't morph them in realtime (I need that for Random Maps for example). Because of that I thought about drawing Lines but this could be very slow...

06-06-2001, 12:15 PM
Use triangle strips