C++, Graphics, Game Programming, Where do I start?

Started by
5 comments, last by ngoaho91 10 years, 3 months ago

I'm currently a computer science student at a university, and have completed more than 85% of our computer science undergraduate program. We use C++/java in most of our programming classes, but all we create are various console/terminal text based programs.

I want to try and start making a few simple (2D) games in C++, but I have no idea where to begin with anything related to GUI's or graphics. I've already made a few simple games with lua but I'm not really sure how to make C++ output anything other than text.

Do you recommend any books, websites, or libraries to get started? I don't need a tutorial on "how to program in C++", I need a tutorial on "C++ Programmers who want to begin programming games".

Also, I'm really looking to make a very simple game, nothing too fancy, for a start and want to make my career in game programming.

Advertisement

I would say if you want to start with game dev in C++, the library SFML is a really good place to start.

The documentation and tutorials provide a good starting place to get up and running, and it provides a lot of nice features for getting a window and 2d graphics in, as well as providing basic audio and input handling. Everything you need for a simple game. It also can provide a raw openGL context if you ever want/need to get into 3d graphics, but you don't have to deal with that if you don't want to (I wouldn't recommend it starting out). Their forums are also very active and helpful, so if you run into any issues, its a great place to ask for help. As are these forums if you have more general programming issues.

There are plenty of good options out there too, like SDL, which is pretty solid, though that has a more C based interface. Im sure others will be able to suggest more options, but I found SFML does everything i need for making simple games (and then some) and was extremely easy to get up and running quickly .

Good luck!

-Jawshttp://uploading.com/files/eff2c24d/TGEpre.zip/

I second what Xaer said also please feel free to take a look at my open source game I made in SFML all free to use. http://www.johnschmuff.com/projects-2/paperroids/ this was build on SFML 2.0beta and they have out SFML 2.1.

Hi,

Possibly/Probably an outdated method, but i started by just creating a win32 project and just used the GDI. Not a great method for creating games, but I learned a lot about programming before i moved onto DirectX.

Worth pointing out this was around 14 years ago, but i did use the GDI methods to teach some basic 3D programming just a few years ago.

Check out polycode (it's a full game engine, open source)

UNREAL ENGINE 4:
Total LOC: ~3M Lines
Total Languages: ~32

--
GREAT QUOTES:
I can do ALL things through Christ - Jesus Christ
--
Logic will get you from A-Z, imagination gets you everywhere - Albert Einstein
--
The problems of the world cannot be solved by skeptics or cynics whose horizons are limited by the obvious realities. - John F. Kennedy

IMHO:
Mathematics + Implementation
Object Oriented Programming
Effective/More Effective C++
A little about Graphics (to not get lost)
Build a small game using your creativity not your skills and keeping the code simple as possible.
Also choose a library of your taste (SFML, SDL, etc.)

you need a graphics engine, these are some

- cocos2d-x

- sfml

or these if you need a wide-range framework, not only graphics

- open framework

- cinder

This topic is closed to new replies.

Advertisement