Jump to content
  • Advertisement
Sign in to follow this  
AdAm KeenAn

Tutorial for making 2d text-based game in opengl in c++

This topic is 2263 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey everyone. I am wondering if any of you know where i can find a good tutorial on how to use opengl in c++ to make a 2d text-based game, something kind of like dwarf fortress, but a whole lot simpler. I have already started a game with menus and options and whatnot but id like to convert the graphical output to opengl. I have looked on the internet and most everything i find is making a 3d game. Also, i've seen SDL in some of the things ive seen.

Thanks for the suggestions in advance and i would also prefer if the guides were written for coding in linux but that is just a preference. Thanks again,

Adam Edited by adamk33n3r

Share this post


Link to post
Share on other sites
Advertisement
Probably not exactly what you are looking for, but libtcod http://doryen.eptalys.net/libtcod/ contains an OpenGL renderer as part of its library.

Unless you are specifically trying to learn OpenGL, I'd stick to leveraging a library for your use, and libtcod is fairly full featured for its domain.

Share this post


Link to post
Share on other sites
Go to http://nehe.gamedev.net/.

It has a bunch of tutorials, including:
Creating a window in OpenGL
Loading a font (bitmap, Freetype) and render text in OpenGL
Load Textures
etc

It's got more than enough for what you need.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!