2009 RPG T050017
1 1 2 1 2.1 devkitpro msys....................... 1 2.2................................. 2 2.3......................... 2 2.4........... 2 3 3 3.1........................... 3 3.1.1............................. 3 3.1.2.......................... 3 3.1.3 VRAM.............................. 4 3.1.4.............................. 4 3.2 RPG............................. 4 3.2.1......................... 4 3.2.2.............................. 6 3.2.3..................... 6 3.2.4......................... 7 3.2.5................................. 9 3.2.6................................. 9 3.2.7............................. 12 3.2.8............................. 13 3.3.................................. 14 4 15 5 15
1 ( ) ( )[1] DS 2 DS DS PC ARM CPU PC DS nds PC Windous XP Professional Version 2002 Service Pack 2 devkitpro[2] DS 2.1 devkitpro msys PC DS nds ARM devkitpro devkitpro Windows Msys C c nds 1
2.2 PC devkitpro DS nds nds DS DS nds DS PC USB CD DVD DS M3REAL[3] M3REAL microsd microsd nds DS nds DS 2.3 c nds 2.2 DS microsd DS PC nds NO GBA[4] DS 2.4 DS RPG RPG RPG [5][6][7] RPG [8] DS MPTRACK [9] [10] Timidi95 MPTRACK wave XM 2
Timidi95 midi XM DS 3 3.1 c nds devkitpro [11] nds c 3.1.1 c stdio.h printf nds nds.h DS 3.1.2 DS 3
3.1.3 VRAM VRAM Video Random Access Memorry RAM A VRAM BANK 3.1.4 nds DS 3.2 RPG DS 3.2.1 gakusensi.c RPG 1. main 2. world ( 4. 3. ) 3. machi 4. encount fight 5. skill 6. 5. fight 2. 7. 4
6. skill fight 7. enemy 4. 1 1: 5
3.2.2 6 Man x y HP( ) MP( ) HP MP 1 sx[100] sy[100] 1 2: 3.2.3 main 3.2.1 gakusensi.c main -main- world -mainint main(void) { int i; Man man = {1,0}; 6
man.hp = 100; man.mp = 20; man.lv = 1; man.mhp = 100; man.mmp = 20; man.exp = 0; man.at = 10; man.df = 10; man.pt = 0; man.we = 0; man.st =13; man.x = 100; man.y = 100; for(i = 0; i < 3; i++){ man.it[i] = 0; } world(man); return 0; } Man man HP 100 MP 20 1 HP 100 MP 20 0 10 10 0 0 0 st 1 25 13 world 3.2.4 2. world 7
3: left x 1 right x 1 up y 1 down y 1 while 3 25 2 13 12 8 8
world x 30 1 31 ( 1 5 ) 30 world world encount 2 13 3.2.5 pt ( HP MP ) go out 3.2.6 encount 3 4. 9
encount 4: st( ) 25 5 1 est[5] HP 1000 500 pt 1000 10 :10 st 25 x y 6 10 1 est 10
5: 6: 7: 8: 9: 10: fight skill 4. fight fight skill skill A fight B skill 11
3.2.7 fight RPG RPG fight 11. 11: 17 80 15 75 count 1200 printf 12
5 fight while count 1 hanbetu n[0] n[1] E kakutei count count 0 Miss!! count while 20 0 D 3.2.8 RPG RPG ns while i 100 x y sx[i],sy[i] i 0 100 sx[i] x sy[i] y kiru sx[i] sy[i] man skill skill 12. 13
12: 3.3 main,world,mach,encount,fight,hanbetu,kakutei,ns,skill,kiku menu HP MP Pt mado Pt enemy lvup buy pt pt 14
INN item weapons 4 DS [12] devkitpro DS gakusensi.c 5 [1], http://www.nintendo.co.jp/ [2] devkitpro, http://www.devkitpro.org/ [3] M3REAL, http://www.m3flash.jp/m3realpd.htm [4] NO GBA, http://nocash.emubase.de/gba.htm 15
[5] On-Jin, http://www.yen-soft.com/ssse/index.html [6] Music with myuu [ ( MIDI Wave MP3) ], http://www.ne.jp/asahi/ [7] Always M-N, http://page.freett.com/nari m/index.html [8] Music Factory, http://www5f.biglobe.ne.jp/ mcs [9] MODPlug Central, http://www.modplug.com/ [10], http://www2.ocn.ne.jp/ mohishi/ [11] PukuWiki, http://meraman.dip.jp/index.php? [12] DS 2008 16