I want to learn how to code

Discussion in 'NDS - Emulation and Homebrew' started by funkey100, Feb 26, 2012.

  1. funkey100
    OP

    funkey100 Member

    Newcomer
    11
    0
    Feb 26, 2012
    United States
    I really want to learn how to code a DS game. I know it takes time but I'm willing to spend it. I have code blocks installed and I'm wondering if I need to learn C or C++, and after I learn one of them, how to code a DS game with them.
     


  2. AlanJohn

    AlanJohn くたばれ

    Member
    3,447
    2,886
    Jan 6, 2011
    Canada,New Jersey
    Well, I am currently learning C. I started with Pascal, which is a very easy programming language.
    As for DS homebrew, I think its better to use C++ and then use PAlib.
     
  3. SifJar

    SifJar Not a pirate

    Member
    6,022
    891
    Apr 4, 2009
    PAlib is not recommended at all. It is old and very outdated, hasn't been updated in years. It doesn't work with the latest homebrew SDK and libraries for NDS. Just learn C or C++ (doesn't matter) and install devkitPro, look at the examples and learn from there.

    Due to changes in libnds, it's now actually more complicated to code with PAlib (which was originally meant to simplify DS programming) than it is with C/C++.
     
  4. funkey100
    OP

    funkey100 Member

    Newcomer
    11
    0
    Feb 26, 2012
    United States
    So I'll basically learn C++ (because a tutorial said it was better and more modern) with code blocks and the tutorial (http://www.cprogramming.com/tutorial/c++-tutorial.html) and when I finish or when I'm fluent, I switch to devkitPro and look at nds file examples (from where?) to learn the nds part of C++.
     
  5. Foxi4

    Foxi4 On the hunt...

    pip Reporter
    23,440
    21,329
    Sep 13, 2009
    Poland
    Gaming Grotto
    If you want to move onto the project relatively quickly, it is recommended that you learn C and pick a graphics library, such as NightfoxLib - it will facilitate your work. The best way to learn is to learn via development.
     
  6. SifJar

    SifJar Not a pirate

    Member
    6,022
    891
    Apr 4, 2009
    There are NDS examples included with devkitPro. You can also download any open source NDS homebrew and look at it's source. Only problem with that is that a lot are old and won't even compile with the latest libs etc. But if you look through all the examples you should be able to work out a bit of it, then as Foxi4 suggested, find a graphics lib to use.
     
    1 person likes this.
  7. iSubaru

    iSubaru Kitsune

    Member
    359
    18
    Apr 14, 2009
    Poland
    Gensokyo
    C will prevail! *cough*
    By default devkitpro if I remember correctly use C, it is possible to use C++ but come on :P
     
  8. funkey100
    OP

    funkey100 Member

    Newcomer
    11
    0
    Feb 26, 2012
    United States
    What do you mean?
     
  9. SifJar

    SifJar Not a pirate

    Member
    6,022
    891
    Apr 4, 2009
    It doesn't "use" either by default. It is just a set of tools and some libraries. It will compile C++ or C code, with no preference given to either.
     
  10. funkey100
    OP

    funkey100 Member

    Newcomer
    11
    0
    Feb 26, 2012
    United States
    OK. I've started coding and making some programs. I'm just asking if the tutorials I'm taking are good and teach me the things I need to know to code .nds files. (http://www.cprogramming.com/tutorial/c++-tutorial.html) If those tutorials aren't good, please tell me a simple tutorial site.

    Thanks!
     
  11. funkey100
    OP

    funkey100 Member

    Newcomer
    11
    0
    Feb 26, 2012
    United States
    *bump*
     
  12. thiefb0ss

    thiefb0ss GBAtemp Regular

    Member
    158
    7
    Feb 26, 2012
    Yugoslavia
    Moscow
    I have the same problem I've always wanted to make Wii homebrew but I don't know how the file system works and Team Twiizers never posted anything on how they did it.
     
  13. WiiUBricker

    WiiUBricker Fake News Reporter

    Member
    6,813
    3,691
    Sep 19, 2009
    Argentina
    Espresso
    There are a few tutorials here.
     
  14. jurassicplayer

    jurassicplayer Completionist Themer

    Member
    4,342
    478
    Mar 7, 2009
    United States
    Pantsuland
    By using libElm maybe?
     
  15. funkey100
    OP

    funkey100 Member

    Newcomer
    11
    0
    Feb 26, 2012
    United States
    Please keep on topic and please help me!
     
  16. Bobbyloujo

    Bobbyloujo I am a millipede, I am amazing.

    Member
    610
    190
    Jul 24, 2010
    United States
    United States
    You could cheat and DS Game Maker!

    Not that I do that. Never. Ever. I promise. Heh.
     
    1 person likes this.
  17. thiefb0ss

    thiefb0ss GBAtemp Regular

    Member
    158
    7
    Feb 26, 2012
    Yugoslavia
    Moscow
    I want to kiss you. You have no idea how long I have been searching for thats. :yay:
     
  18. Zerosuit connor

    Zerosuit connor Baby I'm Back ♥

    Member
    1,847
    304
    Sep 17, 2010
    Eorzea
    Learn Javascript ;)
     
  19. funkey100
    OP

    funkey100 Member

    Newcomer
    11
    0
    Feb 26, 2012
    United States
    First, I already know it and second, why?
     
  20. DrOctapu

    DrOctapu Magnificent Bastard

    Member
    1,207
    300
    Dec 23, 2008
    United States
    Hell.
    Buy a book on C
    It isn't really that hard
    Unless you're a tard.

    I put it in haiku form, and it even rhymes. That should make it easier to understand what everyone else has already said.