gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

C/C++ > NDS game programming

#143646 - shmush - Thu Oct 25, 2007 12:39 am

If i want to get into learning how to program homebrew games for the NDS, should i learn C or C++ first?

#143658 - tepples - Thu Oct 25, 2007 1:40 am

Yes, you should learn C or C++. And you should learn it on a PC, making PC programs. This environment is allegedly friendlier than cross-development (compiling a program on one machine that is intended to run on another kind of machine).
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#143659 - sajiimori - Thu Oct 25, 2007 1:42 am

C++ is basically a superset of C, so you may as well compile your code as C++ from the beginning.

As far as the order in which to learn parts of the language, I'd start with the parts that are easiest to fully understand. For the most part, that means starting with the C subset of the language.

That said, program for your PC first, and only switch to NDS after you're comfortable with the language. Handheld programming adds another level of complexity that will only slow you down at first.

Microsoft offers a free version of Visual C++, which is awesome.

Edit: Tepples has the right idea -- "Yes", you should learn C or C++. :)

#143772 - shmush - Thu Oct 25, 2007 10:27 pm

okay, thanks guys.