Sign in to follow this  

General game questions(C++)

This topic is 3741 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

Now i'm new to this forum but i have had some previous programming experience, this would be(if you can count these): GML(Gamemaker laungauge), LSL(Linden Scripting laungauge(for an online game)),HTML, and those are in order from most experience to least. I recently bought:http://www.gamedev.net/columns/books/bookdetails.asp?productid=379&CategoryID=21 and have currently read to chapter 2(too much work from school), but what i have read so far is it is all text based, now due to the fact that i'm used to the nice cushy Gamemaker, FPS creator(i help teach them in the summer), and they both have the graphics that i can easily show and modify in a heartbeat, i don't know how to add graphics in C++, now yes i am jumping ahead of myself, but i like asking questions ahead of time to get around those annoying bugs/glitches/etc. so is there any book or online tutorial i should look at when i finish this book?

Share this post


Link to post
Share on other sites
You will need to learn an API to display any graphics in C++. Just make the text stuff for now though. Learn the language first before you worry about graphics. But when you do think you have a firm grasp of C++, try out SDL or Allegro for 2d graphics.

Share this post


Link to post
Share on other sites
C++ is simply a language, nothing more. You use libraries for the extra functionality of it (graphics, audio, etc).

Sorry, but GML isn't a very "serious" programming language, and I'm not sure if HTML is even considered a programming language.

That link I gave you has tutorials for SDL. Check them out if you want. But don't get ahead of yourself. Don't bother trying to learn an API before you actually know how to program. Learn the language first, then learn the API. If you jump ahead of yourself you could end up like a lot of other people and give up from frustration.

So in other words, learn to walk before you run.

Share this post


Link to post
Share on other sites
I might recommend another language first, but I won't start those wars. HTML is considered a Markup Language, not programming. I'm thinking you need to read some intros into what programming is and what a language is. I don't mean to be mean or insulting, I just think that might be the first best move.

Share this post


Link to post
Share on other sites
Quote:
Original post by monkey4sale
why does C++ have no graphics? It seems like something so very necessary for any programming language.


No. Graphics are about the last thing you need for any programming language, and in fact they are almost never built in to a programming language, but instead provided in libraries and APIs. This is because one of the major reasons for using a programming language (as opposed to trying to write things directly in machine code) is portability (i.e. compilers could translate the code to multiple sets of machine code for different systems), and not all systems *can* display graphics.

Share this post


Link to post
Share on other sites

This topic is 3741 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