ROM Hack DS Programming Language

ipwndeveloper

Well-Known Member
Member
Joined
Jun 3, 2013
Messages
276
Trophies
0
Age
35
Location
San Fransisco, CA
Website
gb4iphone.x10.mx
XP
189
Country
United States
  • Like
Reactions: Foxi4

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,373
Country
United Kingdom
Depends upon what you want to do. C++ is workable on the DS but it may not have the edge as far as performance goes compared to C, however by the time that really matters to you* then you will have bigger things to worry about.

If you prefer there are considerably higher level languages than both of those, though I appreciate all languages I would be wrong to point you at anything other than lua really (most of the others are more tech demo or just for the fun of the original programmer). Lua is especially developed with http://sourceforge.net/projects/microlua/ probably being the more well developed at this point. You will not be making the next mario kart in it but graphics and text are quite possible with it (puzzle quest on the DS is more or less written in it if you want an idea of what is possible) and will allow you to get something up and running quite quickly.

Normally here I would drop a bunch of links like http://devkitpro.org/wiki/Getting_Started/devkitARM , http://dev-scene.com/NDS/Tutorials_Day_1 and http://www.coranac.com/tonc/text/toc.htm but I will hold back from making a full on linkfest for the time being.

*naturally you could write some spaghetti in either but assuming you are programming properly.
 
  • Like
Reactions: ipwndeveloper

Foxi4

Endless Trash
Global Moderator
Joined
Sep 13, 2009
Messages
30,827
Trophies
3
Location
Gaming Grotto
XP
29,857
Country
Poland
My personal preference is C, I find it simpler and it allows for more hands-on control, however it lacks some of the higher-level functionality C++ offers. It's probably best to mix-and-match depending on what you want to do, really.
 
  • Like
Reactions: Snailface

Snailface

My frothing demand for 3ds homebrew is increasing
Member
Joined
Sep 20, 2010
Messages
4,324
Trophies
2
Age
40
Location
Engine Room with Cyan, watching him learn.
XP
2,256
Which is better to program DS homebrew in? C or C++?
C++ is C with classes. If you like using functions to organize code, use C. If you prefer objects, methods, and classes, use C++. They'll both produce perfectly fine machine code. Its just two different styles.

The nice thing about C++ is that it is backward compatible with C so you can try both styles interchangeably and find out what you like.
 

ipwndeveloper

Well-Known Member
Member
Joined
Jun 3, 2013
Messages
276
Trophies
0
Age
35
Location
San Fransisco, CA
Website
gb4iphone.x10.mx
XP
189
Country
United States
slightly offtopic:
Snailface I thought I was the only one on the temp who lisened to CCR!
and also could resist posting:
both.jpg
 
  • Like
Reactions: Snailface

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Psionic Roshambo @ Psionic Roshambo:
    That Dell data breach is worse than people probably realize....
  • Psionic Roshambo @ Psionic Roshambo:
    When I worked for Dell we had access to data about military contracts and addresses for high ranking people.
  • Psionic Roshambo @ Psionic Roshambo:
    I personally handled a call from the second highest person at Raytheon. That call bothered me a lot... The guy was nice and smart what bothered me was the way management basically just blew him off instead of going the extra mile to help him.
  • Psionic Roshambo @ Psionic Roshambo:
    In the end that call ended up costing Dell millions in lost contracts with Raytheon, and really the issue could have been solved for like 450 bucks lol
  • NinStar @ NinStar:
    sometimes I wonder why anyone would ever buy mega man x legacy collection 2
  • NinStar @ NinStar:
    I always thought that capcom shuffled the games in these collection, but apparently they are all in chronological order, which makes legacy collection 2 worthless
  • BakerMan @ BakerMan:
    guys, i want to start singing pirate metal songs and sea shanties if i play sea of thieves
  • The Real Jdbye @ The Real Jdbye:
    find a pirate metal playlist
    +2
  • The Real Jdbye @ The Real Jdbye:
    and sing along
  • BakerMan @ BakerMan:
    nevermind i just learned swearing is against the rules in sea of thieves

    i was about to start singing the song i last put in "what song are you currently listening to" yesterday
  • BakerMan @ BakerMan:
    but yeah ig so
  • The Real Jdbye @ The Real Jdbye:
    swearing not allowed in a pirate game? what has the world come to
  • BakerMan @ BakerMan:
    (here's the song for context)
  • BigOnYa @ BigOnYa:
    Just add -izle to the end of every curse word, you will be fine.
    +2
  • The Real Jdbye @ The Real Jdbye:
    i like alestorm
    +1
  • The Real Jdbye @ The Real Jdbye:
    @BigOnYa too many syllables
    +1
  • BakerMan @ BakerMan:
    same lmao
  • BigOnYa @ BigOnYa:
    hi, welcome to the Temp!
    +1
  • BakerMan @ BakerMan:
    Welcome to the Underground!
    +1
  • BakerMan @ BakerMan:
    the booty boogie from (once again) the donkey kong country cartoon could also be a good song to sing while playing sea of thieves
  • BigOnYa @ BigOnYa:
    Please insert 25 cents for an additional 30 minutes of talk time.
    +2
    Psionic Roshambo @ Psionic Roshambo: https://www.youtube.com/watch?v=tG7fk_DUz5g +1