"Game programming all in one"

Started by
12 comments, last by TheDentist 20 years, 11 months ago
Has anyone tries to use the "Game programming all in one" book and didn''t use a version of microsoft visual c++? i.e. Borland''s C++. I''ve use borland''s for like 4 months and learned the interface ( not really programming though ). The book teaches through microsoft and so I went to it. Now I feel like shooting myself in the face. Any advice? Is it to hard to learn in a compiler if the writer refrences the keyboard shortcuts and things like that in another compiler? P.S. any comments on the book I have chosen?
What?
Advertisement
Well that book is ok for beginners but i found it only teaches basic stuff so i would suggest you get a book on C++(or Visual C++) and learn that first. Then you should get a book on game programming(if you wan to start with 2d(which i suggest)go with "Trick Of the Game Programmer Gurus", if 3D then go with "Zen Of Direct3D"). As for the compiler if you can i would go with Visual C++ pro or higher(do not get standerd becusae the compile is not optomizised) becuase it is much easier to use that.
quote:Original post by liquid_ice_programmer
As for the compiler if you can i would go with Visual C++ pro or higher(do not get standerd becusae the compile is not optomizised) becuase it is much easier to use that.

And of course, optimization really matters for a beginner. I''m sure it''s worth the $1,000 price tag.
No, no, no, you will not need the expensive compiler. You are learning and will not require compiler optimisation, since learning to code a game is what you are attempting at present.

To optimise your code manually will also be a great learing curve for you, since that is part of what game programming is.

The usual stuff goes here for a signature.
Calm down. I know how you feel. After trying to adapt code for Dev C++, it gets hard. Your best bet would be to go to the top brass. Contact the company. Ask them what to do. Or, try to adapt. If you do need help, I am available by e-mail.

Scott
Scott SimontisMy political blog
Scott, Can you clarify something? you said " Ask them what to do. Or, try to adapt. " Do different compilers use different commands? Like - I''m using #include <iostream> in Microsoft, but I remember using #include stdio in Borlands. I''m I reading your sentence wrong?

P.S. Thanks for the help everyone.
What?
I thought stdio.h was the C io header file, and iostream was for c++


     Hope is the first step on the road to disappointment

[edited by - tstrimp on April 30, 2003 12:19:27 PM]
TheDentist

Different Compilers have different ideas on what is "standard"

This code doesn't work on MSVC 6.0, but it does on BC and DEV-C
for(int i=0; i<5; i++);for(int i=0; i<5; i++);  


Even though that is the standard, MSVC doesn't like it

Each compiler has "tricks" to get code to run correctly. My suggestion, is to go to some university store, and get the educational discount on MSVC++, since its only about 50 bucks more than the learning edition.

(note, added verson number, thanks Yann L.)


[edited by - dede on May 1, 2003 10:31:11 AM]
~~~~~Screaming Statue Software. | OpenGL FontLibWhy does Data talk to the computer? Surely he's Wi-Fi enabled... - phaseburn
quote:Original post by dede
TheDentist

This code doesn''t work on MSVC, but it does on BC and DEV-C
for(int i=0; i<5; i++);for(int i=0; i<5; i++);  



What part of that code doesn''t work? I compiled an ran it fine on VC++ 7.0


Hope is the first step on the road to disappointment
quote:
Even though that is the standard, MSVC doesn't like it

Blame MS (as usual). They fixed the bug in 7.0, fortunately.

Anyway, if you are a beginner and buy a book teaching a language using a certain compiler, then make sure to have that development environment. Otherwise you're making it much more difficult and confusing than it actually is, how can you concentrate on learning C++, if you constantly need to translate the compiler shortcuts, commands and menu points ?

Of course, the other alternative (the one I would strongly recommend), is to buy a compiler independent C/C++ book.

quote:
What part of that code doesn't work?

VC6 scopes the 'int i' not into the for block (as specified by the standard), but into the block being one hierarchy up. Resulting in a double declaration of the same variable name, which is incorrect behaviour.


[edited by - Yann L on April 30, 2003 12:52:13 PM]

This topic is closed to new replies.

Advertisement