I want to learn how to code

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

Feb 26, 2012

I want to learn how to code by funkey100 at 3:49 PM (1,630 Views / 0 Likes) 28 replies

  1. funkey100
    OP

    Newcomer funkey100 Member

    Joined:
    Feb 26, 2012
    Messages:
    11
    Country:
    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

    Member AlanJohn くたばれ

    Joined:
    Jan 6, 2011
    Messages:
    3,425
    Location:
    Canada,New Jersey
    Country:
    Ukraine
    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

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    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

    Newcomer funkey100 Member

    Joined:
    Feb 26, 2012
    Messages:
    11
    Country:
    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

    Reporter Foxi4 On the hunt...

    pip
    Joined:
    Sep 13, 2009
    Messages:
    22,732
    Location:
    Gaming Grotto
    Country:
    Poland
    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

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    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

    Member iSubaru Kitsune

    Joined:
    Apr 14, 2009
    Messages:
    358
    Location:
    Gensokyo
    Country:
    Poland
    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

    Newcomer funkey100 Member

    Joined:
    Feb 26, 2012
    Messages:
    11
    Country:
    United States
    What do you mean?
     
  9. SifJar

    Member SifJar Not a pirate

    Joined:
    Apr 4, 2009
    Messages:
    6,022
    Country:
    United Kingdom
    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

    Newcomer funkey100 Member

    Joined:
    Feb 26, 2012
    Messages:
    11
    Country:
    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

    Newcomer funkey100 Member

    Joined:
    Feb 26, 2012
    Messages:
    11
    Country:
    United States
  12. thiefb0ss

    Member thiefb0ss GBAtemp Regular

    Joined:
    Feb 26, 2012
    Messages:
    158
    Location:
    Moscow
    Country:
    Russia
    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

    Member WiiUBricker Insert Custom Title

    Joined:
    Sep 19, 2009
    Messages:
    5,827
    Location:
    Espresso
    Country:
    Argentina
    There are a few tutorials here.
     
  14. jurassicplayer

    Member jurassicplayer Completionist Themer

    Joined:
    Mar 7, 2009
    Messages:
    4,280
    Location:
    Pantsuland
    Country:
    United States
    By using libElm maybe?
     
  15. funkey100
    OP

    Newcomer funkey100 Member

    Joined:
    Feb 26, 2012
    Messages:
    11
    Country:
    United States
    Please keep on topic and please help me!
     
  16. Bobbyloujo

    Member Bobbyloujo I am a millipede, I am amazing.

    Joined:
    Jul 24, 2010
    Messages:
    609
    Location:
    United States
    Country:
    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

    Member thiefb0ss GBAtemp Regular

    Joined:
    Feb 26, 2012
    Messages:
    158
    Location:
    Moscow
    Country:
    Russia
    I want to kiss you. You have no idea how long I have been searching for thats. :yay:
     
  18. Zerosuit connor

    Member Zerosuit connor Baby I'm Back ♥

    Joined:
    Sep 17, 2010
    Messages:
    1,847
    Location:
    Eorzea
    Country:
    Australia
    Learn Javascript ;)
     
  19. funkey100
    OP

    Newcomer funkey100 Member

    Joined:
    Feb 26, 2012
    Messages:
    11
    Country:
    United States
    First, I already know it and second, why?
     
  20. DrOctapu

    Member DrOctapu Magnificent Bastard

    Joined:
    Dec 23, 2008
    Messages:
    1,207
    Location:
    Hell.
    Country:
    United States
    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.
     

Share This Page