This will not enter into the real details of programming on the DS yet, just show you that it can be really simple and already possible on Day 1 :p Let’s alter the template to make a simple Hello World just to show how easy it can be. Now that you know everything about the template, go on and see how to display text! Here is what you see when you first open main.c : //////////////////////////// // PAlib project template // //////////////////////////// // Lines starting with two slashes are ignored by the compiler // Basically you can use them to comment what are you doing // In fact, this kind of lines are called comments :P // Include PAlib so that you can use it #include int main ( ) Īll this is the closing code, always there, always like this, don’t bother about it, just leave it alone :p If you compiled and ran the rom in an emulator or on DS, it wouldn’t do anything, though, just display 2 white screens because you haven’t done anything yet but initialize the basics. The template’s main.c contains all the basic stuff needed to run PAlib. It contains the main() function and all the stuff that’ll be loaded by default when the rom starts. ![]() ![]() Like its name suggests, main.c is your main program file. Now you should open template.pnproj (Programmer’s Notepad) or just go into the “source” folder and open main.c in the editor of your choice.
0 Comments
Leave a Reply. |