Alright, lets get a rundown of what I think I should use for game Programming

1) Thinking in C++, Volume 1: Introduction to Standard C++ (2nd Edition)

2) Thinking in C++, Vol. 2: Practical Programming, Second Edition

3) Game Programming Gems 1-8

Alright, That what I am doing for that but now lets see here.... I wanna know if any one else has any Game coding books...

I need to know how to do Game programming like this:

bool ChatHandler::HandleHelpCommand(const char* args)
{
ChatCommand *table = getCommandTable();
WorldPacket data;
if(!*args)
return false;
char* cmd = strtok((char*)args, " ");
if(!cmd)
return false;
if(!ShowHelpForCommand(getCommandTable(), cmd))
{
FillSystemMessageData(&data, m_session, "There is no such command");
m_session->SendPacket( &data );
}
return true;
}

I wanna learn code like that for my game

Another Example...

#ifndef ENABLE_GRID_SYSTEM
m_positionX = m_destinationX;
m_positionY = m_destinationY;
m_positionZ = m_destinationZ;
#else
assert( m_destinationX != 0 && m_destinationZ != 0 && m_destinationY != 0);
MapManager::Instance().GetMap(m_mapId)->ObjectRelocation<Creature>(this, m_destinationX, m_destinationY, m_destinationZ, m_orientation); 
#endif
if(((uint32)m_positionX==respawn_cord[0])&&
((uint32)m_positionY==respawn_cord[1])&&
((uint32)m_positionZ==respawn_cord[2]))
SetUInt32Value(UNIT_FIELD_HEALTH,GetUInt32Value(UNIT_FIELD_MAXHEALTH));
m_destinationX = m_destinationY = m_destinationZ = 0;
m_timeMoved = 0;
m_timeToMove = 0;
}
else


Recommended Answers

All 12 Replies

You just grabbed some random code from a program and dumped it here so we can see what you want to do?

Learn C/C++ first, then game APIs. Don't worry about little class handlers like the one you posted. That will come eventually. In the meantime, simply start with a basic tutorial, and work your way up from there.

Also, if you're interested in 3D game development, you're going to need to be a math whiz, perhaps take some linear algebra courses and stuff so you get used to the idea of using matrices to solve your problems. Once you've learned the necessary information to write such things, code like this is basically automatic.

and don't expect you will learn sufficient C++ to become a proficient game programmer form "Thinking in C++".
You'll need a lot more than that.
Add "C++ for Game Programmers" to the list (ISBN 1584502274), and "The C++ Programming Language (3rd Edition)" (ISBN 0201889544) at the very least.
Another book anyone who's serious about software development should read is "Agile Software Development, Principles, Patterns, and Practices" (ISBN 0135974445).

If you get more into it, you may want to get something like "Numerical Recipes in C++", "Physics for Game Programmers", and titles like that. Highly specialised tomes about specific topics.

Alright so can we get a run down of what books I should start with and what I should end with I would be so happy if you guys could do that! DANIWEB FTW

I want college books that are really good dont care about price! I just wanna learn!!!

Maby we could start off
with

thinking in c++ 1 and 2 get another book then get some AWESOME THE BEST c++ books around

Bruce Eckel's books are WAY overrated. The only reason they're popular is the fact you can get them for free as eBooks.

If you want excellence, look for "Objects, Abstraction, Data Structures and Design Using C++", by Koffman and Wolfgang, ISBN 0471467553, published by Wiley.

>Bruce Eckel's books are WAY overrated.
I disagree. Thinking in C++ volume 2 is a good book. The code is tolerably ugly, but the content is sound and useful. I actually haven't read volume 1 though, so you could be right on that one.

lol those books are awesome!

Also, any Audio books for my game like when you into a area it starts playing that song

>Bruce Eckel's books are WAY overrated.
I disagree. Thinking in C++ volume 2 is a good book. The code is tolerably ugly, but the content is sound and useful. I actually haven't read volume 1 though, so you could be right on that one.

started reading the PDFs and put them down again.
Maybe I'm biassed as I don't like the guy at all (especially his new "Flex is god" attitude now that he's got a contract with Adobe, suddenly nothing except Flex is good for anything), but I've never liked his writing.

Could be his style, his code, or everything taken together.

well, geez i'm a newbee but sadly i've to know is there's any guide book regardles to game programm in java? especially in J2ME?
gee, man i really need it, i seek for it, i have to graduate with it.

<< email and site address snipped>>

i'm just a beginner, having blank mind need to fulfill with your knowledges.

please let me know anything you would like me to know.

thanx your guide

well, geez i'm a newbee but sadly i've to know is there's any guide book regardles to game programm in java? especially in J2ME?

Yes, there are several books on game programming in Java. Wouldn't know about JME, but there almost certainly are as games are one of the main uses of modile phone applications :)

Try "Developing Games in Java" by David Brackeen, ISBN 1592730051

But as a beginning (Java) programmer you should first learn the language before diving into more complex things like graphics and game code.

thanx bro, i'll follow your direction.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.