Sign in to follow this  
SoulHeart

How to go from console to graphical text- based games

Recommended Posts

SoulHeart    101
I can make console apps pretty well, but I'm looking to ease my way into 2d graphics. I want to make a nonconsole text-based game with a background and click options(not using very technical terms lol) I will need as many details as you can give. Also i would like someone to explain how to publish a finished program so others can use it without me having to give them the code.

Share this post


Link to post
Share on other sites
KazenoZ    152
Well, to start using graphics for text, you'll need at this point to choose a graphic library that you want to work with, the overall notion for C++ says that you're better off with either SDL or SFML.
I don't know much about SFML, but I think that it's higher level, so it's easier to learn and use.
My expertise is set in SDL, so I can provide links for that if that helps, the best place to start would be this site:
[url="http://lazyfoo.net/SDL_tutorials/index.php"]http://lazyfoo.net/SDL_tutorials/index.php[/url]
Or if you prefer the following site is better at explanations of the process and, in my opinion, is better to get started up with the basics of SDL before you head over to lazyfoo above:
[url="http://www.aaroncox.net/tutorials/2dtutorials/index.html"]http://www.aaroncox.net/tutorials/2dtutorials/index.html[/url]

As for publishing, I'm not sure, but it's probably IDE specific.
If you're using Visual Studio, after compiling just go to the location in which your project is saved and there should be a folder named either 'Debug' or 'Release' according to your configuration settings for the project, you can change this on the top of the IDE next to the Run button.
Should probably be a similiar method for other IDEs though, just go to the project's folder and you should find something useful.

Once you have the .exe you can start distributing it, but you'll most likely need to pack this along:
[url="http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=29"]http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=29[/url]
That's for x86 VS2008 though, so make sure that you find the right version if that's not the one that you need.
A computer that doesn't have Visual Studio installed needs to have run this program once in its' lifetime to allow a VS created program to run on it.

Hope this all helps.

Share this post


Link to post
Share on other sites
SoulHeart    101
I'm still very confused about the graphics. Are there any good tutorials out there that explain how the graphics work and how to use them. Also is there a non-zipped download for SDL because i'm a noob with zip files lol

Share this post


Link to post
Share on other sites
daviangel    604
[quote name='SoulHeart' timestamp='1327018973' post='4904411']
I'm still very confused about the graphics. Are there any good tutorials out there that explain how the graphics work and how to use them. Also is there a non-zipped download for SDL because i'm a noob with zip files lol
[/quote]
You might want to try something like Gamemaker or Unity since it will handle all this for you and there are tons of free video's on how to use them to make 2D games.
The reason you don't see the same for C++/DirectX/SDL, etc is that it's 10x harder. If it wasn't they'd have free time to made good tutorials [img]http://public.gamedev.net//public/style_emoticons/default/ph34r.png[/img]
Just visit Khan Academy for example, they have video's on just about everything even differential equations and linear algebra but alas you won't find any video's on game programming and they barely started adding some programming one's using Python.

Share this post


Link to post
Share on other sites

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