![devkitpro 3ds tutorial devkitpro 3ds tutorial](https://i.gyazo.com/dd2f3902e5058a828d411dfecb9fa507.png)
PA_OutputSimpleText ( 1, 1, 1, "Hello World!" ) // Print the desired text on screen 1, with coordinate 1, 1 Some more functions are available, like setting the text font, or changing its color, and much much more, but for now we’ll keep it simple :pĪll you need to do is add the following lines to the template’s main.c file just after PA_InitVBL() PA_InitText ( 1, 2 ) // Tell it to put text on screen 1, background number 2 The text system uses the backgrounds–well, one background (you have four of them per screen)–and you can choose which screen and which background to use. To make a Hello World example, we’ll use PAlib’s basic text system. 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
![devkitpro 3ds tutorial devkitpro 3ds tutorial](https://i.ytimg.com/vi/FNZVHvmGOIE/maxresdefault.jpg)
Let’s alter the template to make a simple Hello World just to show how easy it can be.
DEVKITPRO 3DS TUTORIAL HOW TO
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.