⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.c

📁 NDS 游戏开发入门实例代码 字符显示 简易入门使用
💻 C
字号:
// Les Includes
#include <PA9.h>

//Fonction principale du code
int main(void)
{
//Initialision de PAlib
PA_Init();
PA_InitVBL();

PA_InitText(1,2);

while(1)
{
PA_OutputSimpleText(1,0,0,"                                                                      ");
if(Pad.Held.A)PA_OutputTextSpecial0(1,0,1,"Hello World !");
else if(Pad.Held.B)PA_OutputTextSpecial1(1,0,1,"Hello World !");
else if(Pad.Held.Start)PA_OutputTextSpecial2(1,0,1,"Hello World !");
else if(Pad.Held.R)PA_OutputTextSpecial3(1,0,1,"Hello World !");
else if(Pad.Held.L)PA_OutputTextSpecial4(1,0,1,"Hello World !");
else if(Pad.Held.Select)PA_OutputTextSpecial5(1,0,1,"Hello World !");
//La boucle infinie du programme
}
return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -