How much C++ do u have to know to make a game?

Started by
10 comments, last by asdasd12345 20 years, 6 months ago
Hello. I am a total computer noob. I know a little Java, and I have bought Object Oriented Programming in C++ which I am in CH.4 (Structures). I am wondering how much information about function, structures, ect, I need to know before I can make simple games like Pac-man, Tetris, ect. Eventually I want to make games to play on a GB Advance.
http://www.geocities.com/asdasd12345/
Advertisement
You should have a firm foundation on at least basic C and simple C++ before you learn an API like Direct X an the Windows GDI.

or you can ignore complicated API''s like that and use more simple alternatives like SDL.. Or just do what I do, don''t try to know everything, but keep checking reference materials it''s likely to be more accurate than your memory (if your like me..)

I think they call it RTFM or something read the f''ing manuals if you don''t know something..

What about 3D Engines. If you use an engine like fly3d? you should still learn DirectX, or a similar api?

Freaks are everywhere...
Freaks are everywhere...
theres really no limit...you can always learn more...may it not be the syntax but the way it is done thatmakes it quicker and better...so really you need to know as much as possiable to make a game.
You don''t have to know any C++ if you just decide to use another language instead.

[ Start Here ! | How To Ask Smart Questions | Recommended C++ Books | C++ FAQ Lite | Function Ptrs | CppTips Archive ]
[ Header Files | File Format Docs | LNK2001 | C++ STL Doc | STLPort | Free C++ IDE | Boost C++ Lib | MSVC6 Lib Fixes ]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
About half of the book I say. Plain vanilla C will do. It won''t be a pretty design but it''ll work for a small 2D game. I think the 2D part will be dominant, especially art. Pack man will be harder to do than tetris because of more involved ai. You should do tetris or even better a simple pong game. Basically, pick each of the skills(input, sound, 2D gfx) and use them all in a very simple game. I did this with my 2D game and I learned a lot in the process.

Actually, to be honest I would do a text game first. This will build your programming/design skills which you won''t have to sink time into when going thru 2D/3D stuff.
7.4 units of knowledge, I''d say.
Zorx (a Puzzle Bobble clone)Discontinuity (an animation system for POV-Ray)
quote:Original post by JD
About half of the book I say. Plain vanilla C will do. It won''t be a pretty design but it''ll work for a small 2D game...


Have you ever saw a commercial game''s source code before? i recommend you looking into Homeworld source code. It really have a sweet design and it''s completly written in C.
Good designs have little to do with programming lenguages, it''s a matter of paradigm. You don''t have to know C++ just to write a game, but a Object oriented programming lenguage may help. I recommend you writting a 2d game first with SDL, it''s pretty straightfoward and powerfull.

Just one thing, do never stop learning.

P.D: sorry about my english (grammar, spelling, etc...etc...)
All I said was that it won''t be a pretty design which I think majority of people would agree with me. I didn''t say that design only applies to OO langs like C++ or Java.

>> Good designs have little to do with programming lenguages, it''s a matter of paradigm. <<

This is false, btw. Why do you think Bjarne designed C++? If what you say is true then he could have continued to use C for good designs but he didn''t. He saw that a better design can be achieved with a new lang. C++ was designed primarily to achieve OO design which we learned from previous OO langs. Also, what do you mean "it''s a matter of paradigm"? What is the paradigm you speak of? If I gave you QBasic, could you write a million lines of code app in it and still achieve a good design? Think about this before you reply.

This topic is closed to new replies.

Advertisement