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.
John A
Vampirical Lurker
7,630 posts since Apr 2006
Reputation Points: 2,240
Solved Threads: 339
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.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
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.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
>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.
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401
>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.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
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.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337