Sign in to follow this  

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

This topic is 2044 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
Probably not exactly what you are looking for, but libtcod [url="http://doryen.eptalys.net/libtcod/"]http://doryen.eptalys.net/libtcod/[/url] 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

This topic is 2044 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this