HSP¥Ý¡¼¥¿¥ë
¥µ¥¤¥È¥Þ¥Ã¥× ¤ªÌ䤤¹ç¤ï¤»


HSPTV!·Ç¼¨ÈÄ


̤²ò·è ²ò·è Ää»ß ºï½üÍ×ÀÁ

2021
0924
¹§Çµ²Ö¥¹¥³¥¢¤ÎÊݸ7²ò·è


¹§Çµ²Ö

¥ê¥ó¥¯

2021/9/24(Fri) 06:28:33|NO.93955

¡¡£²ÅÀ¶µ¤¨¤Æ¤¤¤¿¤À¤­¤¿¤¤¤Ç¤¹¡£
­¡¥Ï¥¤¥¹¥³¥¢¤Îɽ¼¨
¡¡¥²¡¼¥à¥×¥ì¥¤Ãæ¡¢²áµî¤Î¥Ï¥¤¥¹¥³¥¢¤òɽ¼¨¤¹¤ëÊýË¡¤òÃΤꤿ¤¤¤Ç¤¹¡£¥¹¥¯¥ê¥×¥È¤ÎÀµ²ò¿ô¡Êseikai)¤òÆÀÅÀ¤È¤·¤¿¤¤¤Ç¤¹¡£

­¢¥¹¥³¥¢¤ÎÊݸ¡¦¥é¥ó¥­¥ó¥°ºîÀ®¡¦Ì¾Á°¤Îɽ¼¨
¡¡¥²¡¼¥à½ªÎ»¸å¡¢gameover¡¢finish¥Ü¥¿¥óÁªÂò¤Î¸å¤Ë¡¢¥¹¥³¥¢¤ÎÊݸ¡¢¥é¥ó¥­¥ó¥°¤Îɽ¼¨¤ò¤Ç¤­¤ë¤è¤¦¤Ë¤·¤¿¤¤¤Ç¤¹¡£

°Ê²¼¥¹¥¯¥ê¥×¥È¤Ç¤¹¡£
*Start
mmload"sht_a01.mp3",0,1
mmload"startsound.mp3",1,2
mmload"sht_a06.mp3",2,1
screen 0,600,400
mmplay 0
title "½¤Â¤ENGLISH"
redraw 0
color:boxf
celload "266-0.png",1
color 255,0,0:font "HGÌÀÄ«E",50:pos (870-50*11)/2,100:mes "½¤Â¤ENGLISH"
color $FF,$FF,$00:font "HGÌÀÄ«E",30:pos (600-30* 6)/2,180:mes "¡ÁLEVEL1¡Á"
color 255,255,255:font "HGÌÀÄ«E",30:pos (400- 8*15)/2,250:mes "¥¹¥¿¡¼¥È(Enter)"
:pos (400- 8*15)/2,275:mes "²Ý¶â(SPC)"
pos (400- 8*15)/2,300:mes "½ªÎ»(ESC)"

redraw 1
repeat
pos 400,200
celput 1
stick key
if(key&32):mmplay 1:break
if(key&16):mmplay 1:goto*kakin
if(key&128):mmplay 1:end
await 20
loop

mmplay 2
notesel buf
ab=0
ac=1

time=500 : ; await 20¤ò500²ó¤¯¤êÊÖ¤¹¤³¤È¤ÇÌó10ÉäËÊѹ¹¡£


noteload "type1.txt",50000 : ; ³°¤Ë½Ð¤¹¡£
sdim kaitou,500 : ; ³°¤Ë½Ð¤¹¡£½é´ü²½¤ÏÂåÆþ¤Ç¹Ô¤¦¡£



*main
cls ; ¤³¤Î¥¹¥¯¥ê¥×¥È¤Ê¤écls¤Ç¤¤¤¤¤È»×¤¦¡£
pos 270,100
celput 1
pos 0,0
font "MS ¥´¥·¥Ã¥¯",48,1
mes "Àµ²ò="+seikai+"":mes "ÉÔÀµ²ò="+huseikai+""
noteget a,ab
mes a
noteget b,ac
kaitou="" : ; ½é´ü²½¡£
objmode 2 : ; cls¤ò»Ä¤·¤¿¤Î¤Ç¡¢¤³¤ì¤é¤â»Ä¤¹¡£
font msgothic,48
objsize 250,50
input kaitou
objsel 0 : ; ¤³¤ì¤¬Ìµ¤¤¤È2²óÌܰʹߤËinput¥Ü¥Ã¥¯¥¹Æâ¤ËÆþÎÏ¥«¡¼¥½¥ë¤¬¥Ç¥Õ¥©¤Ç½Ð¤Ê¤¤¡£
mes "PUSH ENTER"

; main¤ò2¤Ä¤Ëʬ¤±¤ë¡£
*main_2
time=time-1
redraw 0 : ; ²èÌ̤ΥÁ¥é¥Ä¥­¤òËɤ°¡£
color 255,255,255 : boxf 300,300,599,399 : ; »Ä¤ê»þ´Ö¤Îɽ¼¨¤ò¾Ãµî¡£
color 0,0,0 : ; ¾Ãµî¤ÎºÝ¤Ë¿§¤òÊѤ¨¤¿¤Î¤Ç¡¢Ê¸»ú¤Î¿§¤Ë¹õ¤ò»ØÄê¡£
pos 300,300
mes "»Ä¤ê»þ´Ö:"+str((time+49)/50) : ; time¤¬49°Ê²¼¤Ë¤Ê¤ë¤È0¤Èɽ¼¨¤µ¤ì¤ë¤Î¤òËɤ°¤¿¤á¤Ë49¤ò­¤¹¡£
redraw 1
if time<1:goto *gameover : ; »Ä¤ê»þ´Ö¤òɽ¼¨¤µ¤»¤Æ¤«¤é*gameover¤ËÈô¤Ö¤è¤¦¤Ë½çÈÖÊѹ¹¡£
; wait 100¤Ï»È¤ï¤Ê¤¤¡£
stick ky
if (ky&32)!=0 :goto *judge : ; if¤Ï»ä¤Î¹¥¤ß¤Î½ñ¤­Êý¤Ê¤À¤±¤ÎÊѹ¹¡£gosub¤ògoto¤ËÊѹ¹¡£
await 20 : ; wait 1¤òÊѹ¹¡£
goto *main_2 : ; Êѹ¹¡£

*judge
if kaitou=b{
mes "Àµ²ò"
seikai=seikai+1
}else{
mes "ÉÔÀµ²ò"
huseikai=huseikai+1
}
wait 100
ab=ab+2
ac=ac+2

if huseikai=3:goto*gameover
goto *main : ; gosub¤ògoto¤ËÊѤ¨¤¿¤Î¤Çreturn¤âÊѹ¹

*gameover
clrobj:await 16
cls
redraw 1
pos 80,170:color 255,0,0
font "MS gothic",96
mes"Game Over"
pos 100,300
font "MS gothic",20
objsize 100,50
button"one more",*main
pos 300,300
button"finish",*Start
stop; ÊÌ¥é¥Ù¥ë¤ËÈô¤Ö¤è¤¦¤ËÊѹ¹¡£

*longmode
mmplay 2
notesel buf
ab=0
ac=1

time=1000 : ; await 20¤ò500²ó¤¯¤êÊÖ¤¹¤³¤È¤ÇÌó10ÉäËÊѹ¹¡£

noteload "type1.txt",50000 : ; ³°¤Ë½Ð¤¹¡£
sdim kaitou,500 : ; ³°¤Ë½Ð¤¹¡£½é´ü²½¤ÏÂåÆþ¤Ç¹Ô¤¦¡£
goto*main

*kakin
cls
font "MS gothic",96
pos 80,170:color 255,0,0
mes "2480±ß"
pos 100,300
font "MS gothic",20
objsize 100,50
button "¹ØÆþ",*oto
stop

*oto
mmplay 1
goto*longmode
¤è¤í¤·¤¯¤ª´ê¤¤¤·¤Þ¤¹¡£



¤³¤Îµ­»ö¤ËÊÖ¿®¤¹¤ë


SSSS

¥ê¥ó¥¯

2021/9/24(Fri) 16:58:18|NO.93956

bsaveÌ¿Îá¤änotesaveÌ¿Îá¤ò»È¤¨¤ÐÊݸ¤Ç¤­¤Þ¤¹¡£
bsaveÌ¿Îá¤Î¾ì¹ç¥Ð¥¤¥Ê¥ê¥Ç¡¼¥¿¤È¤·¤ÆÊݸ¤¹¤ë¤Î¤Ç¡ÊÈæ³ÓŪ¡Ë²òÆɤµ¤ì¤Ë¤¯¤¤¤Ç¤¹¡£
°ì±þ¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È¤Ç¤¹¡£

//Êݸ¤¹¤ë¥µ¥ó¥×¥ë a = "ÄÇ̾¿´Èþ¤Ç¤¹¡£¤¢¤Ê¤¿¤Ï¡©" bsave "C:\\Users\\Public\\Document\\test.aaa",a


//Æɤ߹þ¤à¥µ¥ó¥×¥ë b = "" bload "C:\\Users\\Public\\Document\\test.aaa",b mes b
½¤Â¤ENGLISH¤È¤Æ¤âÌÌÇò¤½¤¦¤Ê¤Î¤Ç´°À®¤·¤¿¤éÀ§È󸫤»¤Æ¤¯¤À¤µ¤¤¡£

font "",80 color 255,0,0 mes "½¤Â¤¼°±Ññ¸ìÆ»¾ì¡¢\n »Ï¤Þ¤ëZO!"



ÂôÅÏ

¥ê¥ó¥¯

2021/9/24(Fri) 20:05:12|NO.93957

¼ÂºÝ¤Î¼ÂÁõ¤Ë¤Ä¤¤¤Æ¤Ï¤ªÇ¤¤»¤¹¤ë¤·¤«¤Ê¤¤¤Î¤Ç¡¢¤ä¤êÊý¤Ë¤Ä¤¤¤Æ¤À¤±¡£
¤¢¤¯¤Þ¤Ç¤â¤³¤ì¤Ï¡Ö»ä¤Ê¤é¤³¤¦¤¹¤ë¡×¤È¤¤¤¦¤ä¤êÊý¤Ç¤¹¡£

¤¿¤È¤¨¤Ð¾å°Ìn¿Íʬ¤Î¥Ï¥¤¥¹¥³¥¢¤òµ­Ï¿¤·¤¿¤¤¤È¤·¤Æ¡¢
¤½¤ì¤é¤Î¥¹¥³¥¢¤òµ­Ï¿¤¹¤ë¥Õ¥¡¥¤¥ë¤¬¡Öscr.dat¡×¡¢
¥¹¥³¥¢¥Í¡¼¥à¤òµ­Ï¿¤¹¤ë¥Õ¥¡¥¤¥ë¤¬¡Öscr_name.dat¡×¤À¤È¤·¤Þ¤¹¡£
scr.dat¤Ïn¡ß4¥Ð¥¤¥È¤Î¥Ð¥¤¥Ê¥ê¥Õ¥¡¥¤¥ë(À°¿ôÊÑ¿ô¤Ï°ì¤Ä4¥Ð¥¤¥È)¡¢
scr_name.dat¤Ïn¹Ôʬ¤Î¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤È¤·¤Þ¤¹¡£
(¥¹¥³¥¢¤È¥¹¥³¥¢¥Í¡¼¥à¤ò°ì¤Ä¤Ë¤Þ¤È¤á¤ëÊýË¡¤â¤¢¤ë¤¬¡¢
Ïä¬ÌÌÅݤˤʤë¤Î¤Çº£²ó¤ÏÆó¤Ä¥Õ¥¡¥¤¥ë¤òºî¤ë)

¤Þ¤º¡¢½é¤á¤ÎÊý¤ËÃÖ¤¯¤Ù¤­¥Ç¡¼¥¿Æɤ߹þ¤ßÉôʬ¡£

#const hiscr_num 10 //¤³¤Î¿Í¿ôʬ¤Î¥Ç¡¼¥¿¤òµ­Ï¿¤¹¤ë dim hiscr,hiscr_num //¿Í¿ôʬ¤Î¥Ï¥¤¥¹¥³¥¢ exist "scr.dat" : if strsize!=-1 : bload "scr.dat",hiscr,hiscr_num*4 //À°¿ôÊÑ¿ô¤Ï°ì¤Ä¤¢¤¿¤ê4¥Ð¥¤¥È hiscr_name="" //¥¹¥³¥¢¥Í¡¼¥à notesel hiscr_name exist "scr_name.dat" : if strsize!=-1 : noteload "scr_name.dat" x=notemax if x<hiscr_num { //¿Í¿ôʬ¤Î¹Ô¿ô¤¬¤Ê¤¤¤Î¤Ê¤é¹Ô¤òÄɲà repeat hiscr_num-x noteadd "" loop } //°Ê¹ß¡¢¤¿¤È¤¨¤Ð1°Ì¤Î¥¹¥³¥¢¤ò¼èÆÀ¤·¤¿¤¤¤Î¤Ê¤é¡¢¥¹¥³¥¢¤Ïhiscr(0)¤ËÆþ¤Ã¤Æ¤¤¤Æ¡¢ //¥¹¥³¥¢¥Í¡¼¥à¤Ïnoteget (Ǥ°Õ¤ÎÊÑ¿ô),0¤Ç¼èÆÀ¤Ç¤­¤ë¡£ //¤¿¤À¤·¡¢º£²ó¤Î¥¹¥¯¥ê¥×¥È¤Ç¤Ïbuf¤â¥á¥â¥ê¥Î¡¼¥È¥Ñ¥Ã¥ÉÌ¿Îá¤ÎÂоݤˤ·¤Æ¤¤¤ë¤Î¤Ç¡¢ //notesel¤ÇŬµ¹ÀÚ¤êÂؤ¨¤ë¤³¤È¡£

¼¡¤Ë¥¹¥³¥¢ÅÐÏ¿Éôʬ¡£

//°Ê²¼¡¢º£²ó¤Î¥¹¥³¥¢¤Ïseikai¤ËÆþ¤Ã¤Æ¤¤¤ë¤â¤Î¤È¤¹¤ë¡£ rank=-1 //º£²ó¤Î½ç°Ì¡£-1¤Î¾ì¹ç¤Ï¥é¥ó¥¯³°¡£ repeat hiscr_num if seikai>hiscr(cnt) : rank=cnt : break loop if rank!=-1 { //¥¹¥³¥¢ÅÐÏ¿ //°Ê²¼¡¢¥¹¥³¥¢¥Í¡¼¥à¤Ïmy_name¤È¤¤¤¦ÊÑ¿ôÆâ¤ËÆþ¤Ã¤Æ¤¤¤ë¤â¤Î¤È¤¹¤ë¡£ repeat hiscr_num-1-rank //¼«Ê¬¤è¤ê²¼°Ì¤Î¥¹¥³¥¢¤ò1°Ì¤º¤Ä¥º¥é¤¹ hiscr(hiscr_num-1-cnt)=hiscr(hiscr_num-2-cnt) loop hiscr(rank)=seikai bsave "scr.dat",hiscr,hiscr_num*4 //¥¹¥³¥¢¥Í¡¼¥àÅÐÏ¿ notesel hiscr_name //¤³¤³¤Çnotesel¤ò»È¤Ã¤¿¤Î¤Ç¡¢¤¢¤È¤Ç¤â¤¦°ìÅÙnotesel¤ò»È¤¤buf¤ËÀÚ¤êÂؤ¨¤ëɬÍפ¬¤¢¤ë noteadd my_name,rank //½ç°Ì¤Î°ÌÃ֤˥¹¥³¥¢¥Í¡¼¥à¤òÁÞÆþ if notemax>hiscr_num : notedel hiscr_num //¥é¥ó¥¯³°¤Ë¤Ê¤Ã¤¿¥¹¥³¥¢¥Í¡¼¥à¤òºï½ü notesave "scr_name.dat" }



¹§Çµ²Ö

¥ê¥ó¥¯

2021/9/24(Fri) 22:47:53|NO.93960

¤´²óÅú¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
SSSS¤µ¤ó¡¢ÂôÅϤµ¤ó¤ÎÊýË¡¤ÇÄ©À路¤Þ¤·¤¿¤¬¡¢¤Ç¤­¤Þ¤»¤ó¤Ç¤·¤¿¡£
°ú¤­Â³¤­¡¢¥¹¥¯¥ê¥×¥È°Æ¡¢²òÀ⤪´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£



UT-X

¥ê¥ó¥¯

2021/9/25(Sat) 00:50:53|NO.93961

HSP3Util¤Îµ¡Ç½¤ËÊØÍø¤Ê¤â¤Î¤¬¤¢¤Ã¤¿¤Î¤Ç¡¢¤½¤ì¤ò»È¤Ã¤¿¤â¤Î¤ò·ÇºÜ¤·¤Þ¤¹¡£
arraysave,arrayload¤È¤¤¤¦¤â¤Î¤Ç¡¢Ê¸»úÎ󷿤ÎÇÛÎóÊÑ¿ô¤òÍѤ¤¤Æ
¥Æ¥­¥¹¥È¥Õ¥¡¥¤¥ë¤ÎÆɤ߽ñ¤­¤¬¤Ç¤­¤Þ¤¹¡£
¤³¤³¤Ç¤Ï¡¢¥Ï¥¤¥¹¥³¥¢¥é¥ó¥­¥ó¥°¤òƿ̾¤«¤Ä5°Ì¤Þ¤Ç¤Î¤â¤Î¤È¤·¡¢
¡Öscore.txt¡×¤ËÊݸ¤¹¤ë¤â¤Î¤È¤·¤Þ¤¹¡£
½é´ü¾õÂ֤ǤÎscore.txt¤ÎÆâÍƤϡ¢°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ¤¯¤À¤µ¤¤¡£

0 0 0 0 0

¤Þ¤º¡¢¥¹¥¯¥ê¥×¥È¤Î°ìÈֺǽé(*Start¤ÎÁ°)¤Ë¤³¤Î¥³¡¼¥É¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£
#include "hsp3util.as" ;ÇÛÎóÊÑ¿ô¤Ë¤è¤ëʸ½ñÆɤ߽ñ¤­¤Ë»ÈÍѤ¹¤ë
sdim ranks,5 ;¤³¤³¤Î¿ô»ú¤¬¥é¥ó¥­¥ó¥°¤Î½ç°Ì¿ô¤È¤Ê¤ë dim hiscore,length(ranks)+1 ;½ç°Ì¿ô¡Ü1¸Äʬ³ÎÊÝ arrayload "score.txt",ranks ;¥é¥ó¥­¥ó¥°¤òÆɤ߹þ¤à noteunsel foreach ranks hiscore(cnt)=int(ranks(cnt)) ;ʸ»úÎ󤫤é¿ôÃͤËÊÑ´¹ loop

¼¡¤Ë¡¢¥¹¥¯¥ê¥×¥È¤Î°ìÈֺǸå¤Ë¤³¤Î¥³¡¼¥É¤òÆþ¤ì¤Æ¤¯¤À¤µ¤¤¡£
*ranking
cls color 0,0,255 pos 10,10 font "MS gothic",36 if hiscore(0)<seikai{ ;1°Ì¤À¤Ã¤¿¾ì¹ç¡¢¤½¤ì¤ò½Ë¤¦ mes "RANKING - HIGH SCORE!!" }else{ mes "RANKING" } font "MS gothic",48 sortval hiscore,1 ;¤½¤Î¤¦¤¨¤Ç¿ô»ú¤ÎÂ礭¤Ê½ç¤ËÇÛÎó¤òʤ٤ʤª¤¹ foreach ranks ranks(cnt)=str(hiscore(cnt)) ;¿ôÃͤòʸ»úÎó¤ËÊÑ´¹ loop arraysave "score.txt",ranks ;¥é¥ó¥­¥ó¥°¤òɽ¼¨¤¹¤ëÁ°¤ËÊݸ noteunsel hitmp=0 foreach hiscore sortget hitmp,cnt if hitmp=5:color 255,0,0:else:color 0,0,0 if cnt<5{ ;½ç°Ì¤Ë¤è¤Ã¤Æ1st¡¢2nd¡¢¡Ä¤È¤Ê¤ë¤è¤¦¤Ë¤¹¤ë if cnt=0:ranktxt="1st" if cnt=1:ranktxt="2nd" if cnt=2:ranktxt="3rd" if cnt>2:ranktxt=""+(cnt+1)+"th" mes ""+ranktxt+" "+hiscore(cnt) }else{ if hitmp=5{ ;¥é¥ó¥¯³°¤À¤Ã¤¿¾ì¹ç¡¢5°Ì¤Î¤Á¤ç¤Ã¤È²¼¤Ëɽ¼¨¤µ¤ì¤ë(¥Þ¥ê¥ª64DS¥ê¥¹¥Ú¥¯¥È) mes "\n "+hiscore(cnt) } } loop color 0,0,0 pos 210,350 font "MS gothic",24 mes "ENTER ¤Ç¥á¥¤¥ó¥á¥Ë¥å¡¼¤ËÌá¤ê¤Þ¤¹" mes "ESC ¤Ç½ªÎ»¤·¤Þ¤¹" repeat stick key if(key&32):break if(key&128):end await 20 loop goto *Start

¤½¤·¤Æ¡¢*gameover¤ò°Ê²¼¤Î¤è¤¦¤Ë½ñ¤­´¹¤¨¤Þ¤¹¡£
*gameover
clrobj:await 16 cls hiscore(5)=seikai ;hiscore¤Ë1¤Ä¶õ¤­¤ò»ý¤¿¤»¤¿¤Î¤Ç¡¢¤½¤³¤Ëº£²ó¤Î¥¹¥³¥¢¤òÂåÆþ seikai=0:huseikai=0:ab=0:ac=1 ;¥ê¥»¥Ã¥È redraw 1 pos 80,170:color 255,0,0 font "MS gothic",96 mes"Game Over" noteunsel pos 100,300 font "MS gothic",20 objsize 100,50 button"one more",*main pos 300,300 button"finish",*ranking stop; ÊÌ¥é¥Ù¥ë¤ËÈô¤Ö¤è¤¦¤ËÊѹ¹¡£

¤³¤ì¤Ç¤¦¤Þ¤¯¤¤¤¯¤Ï¤º¤Ç¤¹¡£



¹§Çµ²Ö

¥ê¥ó¥¯

2021/9/25(Sat) 23:06:49|NO.93971

UT-X¤µ¤ó¡¢¥¹¥¯¥ê¥×¥È°Æ¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡£
ÍýÁۤȤ·¤Æ¤¤¤¿¤â¤Î¤Ë¶á¤Å¤­¡¢´¶·ã¤·¤Æ¤¤¤Þ¤¹¡£
¤â¤¦£³¤Ä¤À¤±¡¢¤ªÊ¹¤«¤»¤¯¤À¤µ¤¤¡£
­¡¥×¥ì¥¤Ãæ¤Ë¸½ºß¤Î¥Ï¥¤¥¹¥³¥¢¤òɽ¼¨¤µ¤»¤ëÊýË¡¤Ï¤¢¤ë¤Ç¤·¤ç¤¦¤«¡©
­¢¥é¥ó¥­¥ó¥°¤ÎÃæ¤Ë¡¢¥¹¥³¥¢¤È¶¦¤Ë̾Á°¤òÆþ¤ì¤ëÊýË¡¤Ï¤¢¤ë¤Ç¤·¤ç¤¦¤«¡©
­£¥é¥ó¥­¥ó¥°¤ò£±£°°Ì¤Þ¤ÇÁý¤ä¤¹¤Ë¤Ï¤É¤¦¤·¤¿¤é¤è¤¤¤Ç¤·¤ç¤¦¤«¡©
¤É¤¦¤¾¡¢¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£



UT-X

¥ê¥ó¥¯

2021/9/26(Sun) 11:28:33|NO.93977

1.*main¤Î°Ê²¼¤ÎÉôʬ¤ò½ñ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤¡£
mes "Àµ²ò="+seikai+"":mes "ÉÔÀµ²ò="+huseikai+""
¢­ mes "¥Ï¥¤¥¹¥³¥¢="+hiscore(0)+"":mes "Àµ²ò="+seikai+"":mes "ÉÔÀµ²ò="+huseikai+""
¤³¤ì¤Ç¡¢¥×¥ì¥¤Ãæ¤Ë¤â¥Ï¥¤¥¹¥³¥¢¤¬É½¼¨¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£

2.¤Þ¤º¡¢*Start¤ÎÁ°¤ÎÉôʬ¤ò¼¡¤Î¤è¤¦¤Ë½ñ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤¡£
#include "hsp3util.as" ;ÇÛÎóÊÑ¿ô¤Ë¤è¤ëʸ½ñÆɤ߽ñ¤­¤Ë»ÈÍѤ¹¤ë
RANKMAX=5 ;¤³¤³¤Î¿ô»ú¤¬¥é¥ó¥­¥ó¥°¤Î½ç°Ì¿ô¤È¤Ê¤ë sdim ranks,64,RANKMAX ; ¥Õ¥¡¥¤¥ë¤ÎÆɤ߽ñ¤­¤ËÍѤ¤¤ë sdim scores,64,RANKMAX ; ʸ»úÎó¤È¿ôÃͤÎÊÑ´¹¤ËÍѤ¤¤ë dim hiscore,RANKMAX+1 ; ¥¹¥³¥¢ÍÑ ½ç°Ì¿ô¡Ü1¸Äʬ³ÎÊÝ sdim rankname,64,RANKMAX+1 ;̾Á°ÍÑ ½ç°Ì¿ô¡Ü1¸Äʬ³ÎÊÝ arrayload "score.txt",ranks ;¥é¥ó¥­¥ó¥°¤òÆɤ߹þ¤à repeat RANKMAX getstr scores(cnt),ranks(cnt),0,' ' getstr rankname(cnt),ranks(cnt),strsize,0 hiscore(cnt)=int(scores(cnt)) ;ʸ»úÎ󤫤é¿ôÃͤËÊÑ´¹ loop
¼¡¤Ë¡¢*gameover¤Î°Ê²¼¤ÎÉôʬ¤ò½ñ¤­´¹¤¨¤Æ¤¯¤À¤µ¤¤¡£
hiscore(5)=seikai ;hiscore¤Ë1¤Ä¶õ¤­¤ò»ý¤¿¤»¤¿¤Î¤Ç¡¢¤½¤³¤Ëº£²ó¤Î¥¹¥³¥¢¤òÂåÆþ
¢­ hiscore(RANKMAX)=seikai ;hiscore¤Ë1¤Ä¶õ¤­¤ò»ý¤¿¤»¤¿¤Î¤Ç¡¢¤½¤³¤Ëº£²ó¤Î¥¹¥³¥¢¤òÂåÆþ
ºÇ¸å¤Ë¡¢*ranking°Ê²¼¤ò¼¡¤Î¤è¤¦¤Ë½ñ¤­´¹¤¨¤Þ¤¹¡£

*ranking cls color 0,0,255 pos 10,10 font "MS gothic",36 if hiscore(0)<seikai{ ;1°Ì¤À¤Ã¤¿¾ì¹ç¡¢¤½¤ì¤ò½Ë¤¦ mes "RANKING - HIGH SCORE!!" }else{ mes "RANKING" } font "MS gothic",48 sortval hiscore,1 ;¿ô»ú¤ÎÂ礭¤Ê½ç¤ËÇÛÎó¤òʤ٤ʤª¤¹ hitmp=0 sdim ranknames,64,RANKMAX+1 ;̾Á°¤òʤÓÂؤ¨¤ë¤Î¤Ë»È¤¦ foreach hiscore sortget hitmp,cnt ranknames(cnt)=rankname(hitmp) if hitmp=RANKMAX:color 255,0,0:else:color 0,0,0 pos 10 if cnt<RANKMAX{ ;½ç°Ì¤Ë¤è¤Ã¤Æ1st¡¢2nd¡¢¡Ä¤È¤Ê¤ë¤è¤¦¤Ë¤¹¤ë poy=ginfo_cy if cnt=0:ranktxt="1st" if cnt=1:ranktxt="2nd" if cnt=2:ranktxt="3rd" if cnt>2:ranktxt=""+(cnt+1)+"th" mes ""+ranktxt+" "+hiscore(cnt) pos 180,poy if hitmp=RANKMAX{ input ranknames(cnt),410,ginfo_mesy,24 }else{ mes ranknames(cnt) } }else{ if hitmp=RANKMAX{ ;¥é¥ó¥¯³°¤À¤Ã¤¿¾ì¹ç¡¢ºÇ²¼°Ì¤Î¤Á¤ç¤Ã¤È²¼¤Ëɽ¼¨¤µ¤ì¤ë(¥Þ¥ê¥ª64DS¥ê¥¹¥Ú¥¯¥È) rankin=0 mes "\nYou "+hiscore(cnt) }else{ ;¥é¥ó¥­¥ó¥°¤ËÆþ¤Ã¤Æ¤¤¤ë¾ì¹ç¡¢Ì¾Á°ÅÐÏ¿¤òÂ¥¤¹ rankin=1 font "MS gothic",28 mes "\n̾Á°¤ò¾å¤ÎÍó¤Ë\nÆþÎϤ·¤Æ¤¯¤À¤µ¤¤" } } loop font "MS gothic",24 pos 290,290 objsize 300,50 if rankin=1{ button "¥»¡¼¥Ö¤·¤Æ¥á¥Ë¥å¡¼¤Ø",*ranksave tomenu=stat button "¥»¡¼¥Ö¤·¤Æ½ªÎ»",*ranksave }else{ button "¥á¥Ë¥å¡¼¤Ø",*ranksave tomenu=stat button "½ªÎ»",*ranksave } stop *ranksave if stat=tomenu:menuflg=1:else:menuflg=0 ;¤É¤Á¤é¤Î¥Ü¥¿¥ó¤ò²¡¤·¤¿¤«È½ÊÌ if rankin=1{ ;¥é¥ó¥¯³°¤Î»þ¤ÏÊݸ½èÍý¤òÈô¤Ð¤¹ foreach hiscore rankname(cnt)=ranknames(cnt) if cnt=RANKMAX:break scores(cnt)=str(hiscore(cnt)) ;¿ôÃͤòʸ»úÎó¤ËÊÑ´¹ ranks(cnt)=scores(cnt)+" "+rankname(cnt) loop arraysave "score.txt",ranks ;¥é¥ó¥­¥ó¥°¤òÊݸ } if menuflg=1:goto *Start end
¤³¤ì¤Ç̾Á°¤âÊݸ¤µ¤ì¤ë¤è¤¦¤Ë¤Ê¤ê¤Þ¤¹¡£
score.txt¤Ë¤ÏÆÀÅÀ¤È̾Á°¤¬È¾³Ñ¥¹¥Ú¡¼¥¹¤Ç¶èÀÚ¤é¤ì¤ÆÊݸ¤µ¤ì¤Þ¤¹¡£

3.(2.¤Î½èÍý¤ò¹Ô¤Ã¤¿¤â¤Î¤È¤·¤Þ¤¹)¥¹¥¯¥ê¥×¥È¤ÎºÇ½é¤Ë¤¢¤ë
RANKMAX¤ÎÃͤ¬¤½¤Î¤Þ¤Þ¥é¥ó¥­¥ó¥°¤Î½ç°Ì¿ô¤È¤Ê¤ë¤Î¤Ç¡¢¤½¤ì¤ò10¤Ë¤¹¤ì¤Ð10°Ì¤Þ¤Çɽ¼¨¤Ç¤­¤Þ¤¹¡£
¤¿¤À¤·¡¢¤½¤ì¤Ë¹ç¤ï¤»¤Æʸ»ú¤Î¥µ¥¤¥º¤äÇÛÃÖ¤òÄ´À°¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£



¹§Çµ²Ö

¥ê¥ó¥¯

2021/9/26(Sun) 13:12:56|NO.93988

UT¡¼X¤µ¤ó¡¢¤¢¤ê¤¬¤È¤¦¤´¤¶¤¤¤Þ¤¹¡ª¡ª
¤Ç¤­¤Þ¤·¤¿¡ª´¶·ã¤Ç¤¹¡ª
ËܤòÆɤó¤Ç¤â¡¢¥µ¥¤¥È¤òÄ´¤Ù¤Æ¤â¤è¤¯¤ï¤«¤é¤Ê¤«¤Ã¤¿¤Î¤Ç½õ¤«¤ê¤Þ¤·¤¿¡£
¤¿¤À¡¢²¿¤Ç¤³¤ì¤Ç¤Ç¤­¤ë¤Î¤«¡¢»ÅÁȤߤ¬¤Þ¤À¤è¤¯¤ï¤«¤é¤Ê¤¤¤Î¤Ç¡¢³Ø½¬¤ËÅؤá¤Þ¤¹¡£
º£¸å¤È¤â¡¢¤´»ØƳ¤è¤í¤·¤¯¤ª´ê¤¤¤¤¤¿¤·¤Þ¤¹¡£



ONION software Copyright 1997-2023(c) All rights reserved.