i am still a high school student and i want to make ppc games. I am learning c++ right now. Can u guys tell me what else i need to learn in order to be able to program ppc games.
wat do i need to know in order to program ppc games?
OOP and Design Patterns.
I'm in high school too and have been trying to make a PPC game. OOP is Object Orientated Programming. You may also want to learn about Data Structures. A good book is "Data Structures for Game Programmers". It is always good to know some about the Windows API so you can make windows looking buttons and such, but the good thing about GapiDraw is that if you start with the minimal app, you don't have to worry about the Windows API. Once you get going, you will need Microsoft's free IDE, eMbedded Visual C++ 3.0/4.0 (depending on the PPC OS, 4.0 is for PPC2K3 only). I think the best advice is to look at the examples, forum posts, and experiment. Most stuff I learned was by trial and error. If that was because of bad luck, I don't know, but at least I learned it 
If you are starting from scratch you need a PC, a PocketPC (you can exist without this for a while & use an emulator or PC build to test) and Microsoft's free Embedded Visual C++ software. If you happened to have Visual C++ 6 then you can do most development on desktop without a PPC. See this link
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/devtoolsmobileapps.asp
If you are just beginning I suggest using one of the 2 popular game development toolkits, PocketFrog or GapiDraw. In my opinion PF has more functionality & is easier to use while GapiDraw is more organised & has wider platform support. Suit yourself as they will both help you create fast games.
As well as this site which is PPC specific you should visit www.gamedev.net which is one of the best dev sites out on the web.
Happy coding
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnppcgen/html/devtoolsmobileapps.asp
If you are just beginning I suggest using one of the 2 popular game development toolkits, PocketFrog or GapiDraw. In my opinion PF has more functionality & is easier to use while GapiDraw is more organised & has wider platform support. Suit yourself as they will both help you create fast games.
As well as this site which is PPC specific you should visit www.gamedev.net which is one of the best dev sites out on the web.
Happy coding
What everyone else said, plus what I say.
Programming (including game programming) is all about algorithms and data structures. Period.
There are many algorithms, and many data structures. The more you know, the more capable a programmer you will be. The less you know, the more crippled a programmer you will be.
Do not make the mistake of thinking, in data structures class, "Gee, this will never help me write games." Brian Hook (of id Software, makers of Doom and Quake) had that sentiment emailed to him by a high school student, and promptly tore it apart. He stated that game programming was ALL about data structures (and algorithms, they go hand in hand really), and that everything else (graphics etc.) was secondary. Like he said, if it weren't for advanced data structures such as BSP tree, Quake would never exist.
There are other areas related to programming you will want to know. Discrete mathematics. Computational complexity. Graphics. But think of these as supporting your algorithms and data structures: they shouldn't be your main focus.
Always pay attention in school, you never know what you will find useful ten years later. I wish I'd learned a bit more in some courses I have taken, and I wish I'd taken a few different courses than the ones I took. But at least I got as much as I could out of the courses I did take.
Design is important. Knowing how to solve problems and think of new things. Having the discipline to structure your work habits, document what you do, and finish what you start.
In programming, it's good to write good clean code, and it's helpful to have good debugging skills (and I don't mean just with the debugger). Performance optimization. Testing techniques.
For me, making things look pretty comes last (though I always think about it). Start with the design, the model, the math, and put the graphics and UI on top of that. Don't start with the UI and the graphics, then try to build the model underneath it. That is backwards, though sadly many do it that way.
Experience is quite helpful but you'll only gain that by doing things. At the same time, don't think books are irrelevant. You can learn a hell of a lot from a good book (but avoid the bad books).
So get a PC. Install the software you need to program. It's free, although to make a build for the PC you'll need Visual Studio which isn't free. I've never used the emulator, but if you don't have a Pocket PC that's an option for a while.
Learn your C++. Aim to learn all (most) of it, but start small. Focus on the nuts and bolts: your ifs, loops, and especially functions. Good books on structured design and programming, OOP, and design patterns will show you how to structure your code.
Get a copy of Code Complete by Steve McConnell and read it ASAP. Then get The Practice of Programming by Kernighan. Then get The Pragmatic Programmer. Read those three books first. Before you read any game programming books.
Once you can write basic code, start to practice putting things on the screen. Like windows, menus, buttons, and eventually animated sprites. Here's where a decent game programming book will help you. But don't start this until you've read the three books above and can do a decent functional decomposition in your designs.
Get source code for games, and look at it. Read it. Study it. Change it. Do the same for other programs that interest you that aren't games. There is a lot of source code out there, use it.
Programming is hard work. Some believe it is perhaps the most difficult human endeavour (Dijkstra, The Humble Programmer), so approach it humbly. Just going through those books and a few simple games will take you a year. It will be many more years before you are a good programmer with good experience. But hey we all started where you are today.
Programming (including game programming) is all about algorithms and data structures. Period.
There are many algorithms, and many data structures. The more you know, the more capable a programmer you will be. The less you know, the more crippled a programmer you will be.
Do not make the mistake of thinking, in data structures class, "Gee, this will never help me write games." Brian Hook (of id Software, makers of Doom and Quake) had that sentiment emailed to him by a high school student, and promptly tore it apart. He stated that game programming was ALL about data structures (and algorithms, they go hand in hand really), and that everything else (graphics etc.) was secondary. Like he said, if it weren't for advanced data structures such as BSP tree, Quake would never exist.
There are other areas related to programming you will want to know. Discrete mathematics. Computational complexity. Graphics. But think of these as supporting your algorithms and data structures: they shouldn't be your main focus.
Always pay attention in school, you never know what you will find useful ten years later. I wish I'd learned a bit more in some courses I have taken, and I wish I'd taken a few different courses than the ones I took. But at least I got as much as I could out of the courses I did take.
Design is important. Knowing how to solve problems and think of new things. Having the discipline to structure your work habits, document what you do, and finish what you start.
In programming, it's good to write good clean code, and it's helpful to have good debugging skills (and I don't mean just with the debugger). Performance optimization. Testing techniques.
For me, making things look pretty comes last (though I always think about it). Start with the design, the model, the math, and put the graphics and UI on top of that. Don't start with the UI and the graphics, then try to build the model underneath it. That is backwards, though sadly many do it that way.
Experience is quite helpful but you'll only gain that by doing things. At the same time, don't think books are irrelevant. You can learn a hell of a lot from a good book (but avoid the bad books).
So get a PC. Install the software you need to program. It's free, although to make a build for the PC you'll need Visual Studio which isn't free. I've never used the emulator, but if you don't have a Pocket PC that's an option for a while.
Learn your C++. Aim to learn all (most) of it, but start small. Focus on the nuts and bolts: your ifs, loops, and especially functions. Good books on structured design and programming, OOP, and design patterns will show you how to structure your code.
Get a copy of Code Complete by Steve McConnell and read it ASAP. Then get The Practice of Programming by Kernighan. Then get The Pragmatic Programmer. Read those three books first. Before you read any game programming books.
Once you can write basic code, start to practice putting things on the screen. Like windows, menus, buttons, and eventually animated sprites. Here's where a decent game programming book will help you. But don't start this until you've read the three books above and can do a decent functional decomposition in your designs.
Get source code for games, and look at it. Read it. Study it. Change it. Do the same for other programs that interest you that aren't games. There is a lot of source code out there, use it.
Programming is hard work. Some believe it is perhaps the most difficult human endeavour (Dijkstra, The Humble Programmer), so approach it humbly. Just going through those books and a few simple games will take you a year. It will be many more years before you are a good programmer with good experience. But hey we all started where you are today.
I think I'll chime in on the book recommendations;
After reading an intro. to C++ book, read this;
- Code Complete by Steve McConnell
After reading that book - which should hopefully improve your code in a generalized fasion - you'll need to improve your C++ code;
- Effective C++: 50 Specific Ways to Improve Your Programs and Design (2nd Edition) by Scott Meyers
And finally, you must learn what it means to "program to an interface, not an implimentation";
- Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides
Inbetween all of these, you'll need a good book on data structures. Unfortunately I have no recommendations for such a book.
These books, combined with the group knowledge located on these forums and www.gamedev.net, should get you well on your way.
After reading an intro. to C++ book, read this;
- Code Complete by Steve McConnell
After reading that book - which should hopefully improve your code in a generalized fasion - you'll need to improve your C++ code;
- Effective C++: 50 Specific Ways to Improve Your Programs and Design (2nd Edition) by Scott Meyers
And finally, you must learn what it means to "program to an interface, not an implimentation";
- Design Patterns by Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides
Inbetween all of these, you'll need a good book on data structures. Unfortunately I have no recommendations for such a book.
These books, combined with the group knowledge located on these forums and www.gamedev.net, should get you well on your way.
You know, as someone who didn't know a thing about data structures and algorithms until later in life and STILL managed to accomplish things that most people can never dream of doing (nothing like tooting one's own horn, huh?!?
)...
I would argue that the most important thing you can do to prepare yourself to be a programmer is become accustomed to something that is difficult to learn if it's not something you are born with: logical, disciplined thought.
Sure, you can read 50 books, and I can show you thousands of people that do just that and are some of the worst programmers around.
I can also show you a large number of people that we would all consider good, competent programmers that couldn't tell you what a bubble sort was or how it differs from a binary sort.
But give them a program to write and they will absolutely astound you. My former boss is perhaps the best example I can think of. I am by all rights a far superior programmer, a fact he never would debate (and a big part of the reason he is no longer my boss), but I'll tell you what: the main amazes me to this day with his clarity of thought and ability to simply write programs that solve complex problems. He can THINK, and he couldn't tell you what a doubly linked list was to save his life.
Make no mistake, I'm not dismissing reading books. I'm not at all saying data structures and algorithms aren't important in a big way. What I am saying is that things like that, I firmly believe, should never be a programmers' primary studies. They should instead learn to "think like a machine", and the single best way to do that (drumroll please) is to simply code one's arse off for a while.
I always recommend to new programmers (I've taught quite a few people over the past 20+ years that I've been myself programming) that they should look at BASIC first, in a fairly cursory way, simply because it is the gentlest introduction to programming you can get (well, aside from LOGO I suppose
). Your not really trying to learn to program at that point, just get a feel for basic programming concepts (loops, decision points, input/output, etc.). Then, soon after, MOVE TO ASSEMBLY. Do nothing but Assembly for a minimum of six months. Challenge yourself, virtually any project you come up with will be worth it.
Too many people today are what I call "fake" programmers: they can certainly regurgitate pieces of code better than even I can, but they don't understand the basic flow of data within a computer at a low level. You can always tell a "fake" programmer from (logically enough) a "real" programmer because the later group always thinks in terms of what's happening layers below what they are doing, even if in an unconscious way. Just as a simple example, that group, when moving a window around the screen, can almost see the messages flowing through the OS, and even moreso can almost "see" the underlying code that the CPU itself must be processing in order for what they are seeing on the screen to be there.
That's a level of understanding that I believe every programmer should strive for. Hell, it's almost like a Matrix kinda thing: you really can almost "see" the underlying code. I'm not saying that programmers that don't reach that point aren't worth anything. Indeed, I know many people at work that are excellent programmers that don't approach that understanding. But I do believe that, especially when your talking about something as inherently complex as today's games are, you have to at the least strive for that.
Well, now that I've gotten off on a massive philosophical tangent and not expoused any concretly helpful information, I'll leave you all alone
I'm sure there will be rebuttal, but I hope plenty of agreement too 
I would argue that the most important thing you can do to prepare yourself to be a programmer is become accustomed to something that is difficult to learn if it's not something you are born with: logical, disciplined thought.
Sure, you can read 50 books, and I can show you thousands of people that do just that and are some of the worst programmers around.
I can also show you a large number of people that we would all consider good, competent programmers that couldn't tell you what a bubble sort was or how it differs from a binary sort.
But give them a program to write and they will absolutely astound you. My former boss is perhaps the best example I can think of. I am by all rights a far superior programmer, a fact he never would debate (and a big part of the reason he is no longer my boss), but I'll tell you what: the main amazes me to this day with his clarity of thought and ability to simply write programs that solve complex problems. He can THINK, and he couldn't tell you what a doubly linked list was to save his life.
Make no mistake, I'm not dismissing reading books. I'm not at all saying data structures and algorithms aren't important in a big way. What I am saying is that things like that, I firmly believe, should never be a programmers' primary studies. They should instead learn to "think like a machine", and the single best way to do that (drumroll please) is to simply code one's arse off for a while.
I always recommend to new programmers (I've taught quite a few people over the past 20+ years that I've been myself programming) that they should look at BASIC first, in a fairly cursory way, simply because it is the gentlest introduction to programming you can get (well, aside from LOGO I suppose
Too many people today are what I call "fake" programmers: they can certainly regurgitate pieces of code better than even I can, but they don't understand the basic flow of data within a computer at a low level. You can always tell a "fake" programmer from (logically enough) a "real" programmer because the later group always thinks in terms of what's happening layers below what they are doing, even if in an unconscious way. Just as a simple example, that group, when moving a window around the screen, can almost see the messages flowing through the OS, and even moreso can almost "see" the underlying code that the CPU itself must be processing in order for what they are seeing on the screen to be there.
That's a level of understanding that I believe every programmer should strive for. Hell, it's almost like a Matrix kinda thing: you really can almost "see" the underlying code. I'm not saying that programmers that don't reach that point aren't worth anything. Indeed, I know many people at work that are excellent programmers that don't approach that understanding. But I do believe that, especially when your talking about something as inherently complex as today's games are, you have to at the least strive for that.
Well, now that I've gotten off on a massive philosophical tangent and not expoused any concretly helpful information, I'll leave you all alone
I pretty much agree with what everyone has said thus far...
There are a few things that haven't been touched on...
Oh, and one more thing - have fun - afterall, thats what games are all about!
- book learning is very important
- data structures and algorithms are your bread and butter
- logical thinking is crucial
There are a few things that haven't been touched on...
- gain a very solid math background if Computer Science is your goal (well, even if it isn't)
- take some business and accounting classes; they will come in more handy than you can ever imagine
- keep in mind that very few programmers become successful game developers; ensure that you have a well rounded programming education
- since I'm sure you want to dive right into game development, do it. Buy a copy of Visual C++ if you don't have it already, download GapiDraw and start looking at the sample programs. Pick them apart, change them, understand how they are structured and what each line of code is intended to do.
- ask questions if you don't understand something, but first, always make a wholehearted attempt at understanding it on your own
- if you don't know how to already, learn how to search the web for the topics you're interested in. There is a wealth of information at your fingertips.
Oh, and one more thing - have fun - afterall, thats what games are all about!
Hehe, good post man. I have to agree about the necessity to think "like a man-made machine" (as long as you don't completely turn into one
- might not be so good for the real world, whether human relationships or your spiritual walk), and I really learned a lot from my early days writing little programs in GWBASIC.
I didn't do the ASSEMBLY thing, but I can see the benefit of understanding the real work that the hardware is doing underneath, especially since performance remains an important factor for a lot of games.
Data structures have never been that hugely important to me - I mean, I can use them if I feel the need for extra efficiency, but more important is to understand the way code flows. At the lowest level, that's your loops (for, while) and your conditionals (if...then). Then your functions and subroutines, and in the OO model, your classes and interfaces.
OO makes such a big difference to my development. Without it, I find I must rely on a huge amount of commenting or I'll completely lose track of where I'm at.
Nathan
I didn't do the ASSEMBLY thing, but I can see the benefit of understanding the real work that the hardware is doing underneath, especially since performance remains an important factor for a lot of games.
Data structures have never been that hugely important to me - I mean, I can use them if I feel the need for extra efficiency, but more important is to understand the way code flows. At the lowest level, that's your loops (for, while) and your conditionals (if...then). Then your functions and subroutines, and in the OO model, your classes and interfaces.
OO makes such a big difference to my development. Without it, I find I must rely on a huge amount of commenting or I'll completely lose track of where I'm at.
Nathan
I agree with all the posts;
Always remember GRMoore's post : Keep the word 'FUN' in mind.
In addition:
Read Books
Read Magazines
Be Attentive
Be Curious
Be Patient
Be Artistic
and
here's my favorite quote from a game programmer
"...there are many less honorable jobs than making other people SMILE
with our programs."
- I've read this in one of the graphics source codes I downloaded from the internet 10+yrs ago. And this inspired me to study game development
Goodluck.
Always remember GRMoore's post : Keep the word 'FUN' in mind.
In addition:
Read Books
Read Magazines
Be Attentive
Be Curious
Be Patient
Be Artistic
and
here's my favorite quote from a game programmer
"...there are many less honorable jobs than making other people SMILE
- I've read this in one of the graphics source codes I downloaded from the internet 10+yrs ago. And this inspired me to study game development
Goodluck.