Gaming???

so im pretty new into C++ but ive learned the basics and i have absolutley no idea how to write even the simplest game! All i want is a very simple game like pong or something
You need to know Windows API for graphics, games on windows are written with C++ and Windows API, and Open GL if its 3d. You cannot do graphics with just C++ alone. If games are your goal, i would suggest C#.
Last edited on
That isn't true at all.

There are many libs around which make game development very easy in C++

I use SFML: http://sfml-dev.org/

There are many others. Other popular ones include SDL and Allegro.
Thats my point though, you cant make a graphical game with just plain C++ that you learn from tutorials. you need other things like libraries to help.
Last edited on
Second: you need to have understanding on how your game will work.
How will i get understanding then
Programming is the art and craft of thinking about solving problems in a way appropriate to the tools you have.

You have memorised some basic syntax. It is now time to start learning how to program, and learning some new tools.

Learning to program: head over to projectEuler.net and start on those.

New tools: Pick a graphics library ( http://sfml-dev.org/ ) is fine and set yourself the problem of displaying a single image on screen. Then images that change.
There's source code out there for simple games. Download it, print it, read it, and try to follow the code.

As for designing your own, start with a piece of paper and write down game themes, objectives, rules, and so on. The logic will flourish from that, and eventually the code itself.

Topic archived. No new replies allowed.