Archived

This topic is now archived and is closed to further replies.

Mage_gr

Windows...programming

Recommended Posts

Mage_gr    122
How much knowledge of C++ do you need in order to understand the windows game programming that is in the Tricks of th windows game programming.Please tell me exactly(I know I ask for too much)what I need to know from C++.In order to make it straight I want you to tell me how much of variables unctions constants,e.t.c. I need to know

Share this post


Link to post
Share on other sites
Gravity    122
If you have this many questions about C++ then you should NOT be jumping right into game programming.

My Advice: SLOW DOWN. Go to a book store and buy a book on C++ and LEARN it. THEN, read the book you''re reading now...trust me, we will still be developing games when you get to that point.

You seem in this huge rush to know everything at once, but you''re asking everyone to everything for you...do some of the legwork yourself.

Share this post


Link to post
Share on other sites
cMADsc    122
Gravity is right. You must have patience and then even more patience. Make a few text games first, tic-tac-toe, connect4 , adventure game, etc. Then as you gain knowledege to what goes into programming these games, it will be a whole lot easier. Well this is the path I atleast took.


-----------------------------
"There are ones that say they can and there are those who actually do."

"...u can not learn programming in a class, you have to learn it on your own."

Share this post


Link to post
Share on other sites
LessBread    1415
While at the store, you might also want to pick up a copy of Charles Petzold''s "Programming Windows" - it''s the best intro to windows programming out there.

Share this post


Link to post
Share on other sites
mickey    100
yup charles petzold.., i think almost everyone had undergo that, it''s the only book i know of that uses c and straight win32 api''s ,

Share this post


Link to post
Share on other sites
Gummo    122
I have been learning C++ for just over a year now, there is always something to learn. Heck, I am just starting to get my feet wet with OpenGL and I have been experimenting with Win32 API for the past few months. I don''t believe that you are ready to program games yet. If you attempt to program games at this early stage, you will become fustrated and you will give up.

Now, to answer you question about what aspects of C++ you need to know to program games:

loops
arrays
structs/classes
pointers and references
operator overloading
streams
inheritance is useful too..

Of course, that is just for a simple game (ie. Pong, Tetris, Breakout) Of course, there is much more to know if you want to code a more advanced game.

My advice is that you go to www.cprogramming.com and read and UNDERSTAND all of the C++ tutorials they have. Of course, having a book is a lot better method of learning. When you are done learning sufficient C++ you will know it, then I recommend that you start Win32 API (at least the window creation part) and then move on to a graphics API like Direct X or OpenGL. It is not going to be easy, and sometimes its going to be tedious because you just want to make a game, but you have to learn how to crawl before you know how to walk.

Share this post


Link to post
Share on other sites
M Hemant    122
dear friend
i think u have got a fair advice from other friends .i am new to this forum.i belong to india doing mca.everybody who starts
with c/c++ considers it to be easy since its syntax are not so difficult to start with and write few programmes.when u r thinking for game programming ur point of view changes.here
u r applying the concepts not the simply the syntaxes .so before
starting with any game u should be well aware of the command u have on the language otherwise u will waste lot of time doing nothing.
as others have said do start with basic concepts of c/c++
and then u can proceed with advance topics.



m hemant

Share this post


Link to post
Share on other sites