Thread: 2d Tiles Tutorial?

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    27

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

  2. #2
    For Narnia! Sentral's Avatar
    Join Date
    May 2005
    Location
    Narnia
    Posts
    719
    I'm quite sure the best known API's are capable of doing an easy task. Try gamedev.net
    Videogame Memories!
    A site dedicated to keeping videogame memories alive!

    http://www.videogamememories.com/
    Share your experiences with us now!

    "We will game forever!"

  3. #3
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    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/showthread.php?t=83200 its directX but the theory or the principle is the same for OpenGL.
    Last edited by Shakti; 10-17-2006 at 03:49 PM.
    STL Util a small headers-only library with various utility functions. Mainly for fun but feedback is welcome.

  4. #4
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    >>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.

  5. #5
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. text on 2d tiles in DirectX?
    By Quantum1024 in forum Game Programming
    Replies: 4
    Last Post: 04-26-2006, 11:40 PM
  2. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  3. Tutorial review
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 03-22-2004, 09:40 PM
  4. Problem with tutorial (Vector class)
    By OdyTHeBear in forum C++ Programming
    Replies: 4
    Last Post: 12-18-2002, 02:49 PM
  5. My DirectInput tutorial....
    By jdinger in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 06-18-2002, 11:32 PM