Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: 2D Games in OpenGL? :)

  1. #1
    Guest

    2D Games in OpenGL? :)

    Hello ,

    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?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Apr 2001
    Posts
    132

    Re: 2D Games in OpenGL? :)

    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)

  3. #3
    Guest

    Re: 2D Games in OpenGL? :)

    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...

  4. #4
    Intern Contributor
    Join Date
    Aug 2000
    Posts
    93

    Re: 2D Games in OpenGL? :)

    Use triangle strips

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •