Î㤨¤Ð¡¢¤³¤ó¤Ê´¶¤¸¡£
await¤Ïwait¤ÈÂÔ¤Á»þ´Ö¤¬°ã¤¦¤Î¤ÇÃí°Õ
¶ñÂÎŪ¤Ë¤Ïwait10¤Ç0.1ÉäǤ¹¤¬¡¢await10¤Ç¤Ï0.01ÉäǤ¹¡£
await¤Ë¤ÏawaitľÁ°¤Î½Å¤¤½èÍýÅù¤Ç¥×¥í¥°¥é¥à¤¬½èÍýÍî¤Á¤·¤¿Ê¬¡¢
ÂÔ¤Á»þ´Ö¤ò¼«Æ°Åª¤Ë°ú¤»»¤·¤Æ¤¯¤ì¤ë¤È¤¤¤¦¡¢»È¤¤Êý¤Ë¤è¤Ã¤Æ¤ÏÊØÍø¤Êµ¡Ç½¤¬¤¢¤ê¤Þ¤¹¡£
wait_speed =100;ÂÔ¤Á»þ´Ö¤Î½é´üÀßÄê
repeat
getkey key,39;[¢ª]¥¡¼¤¬²¡¤µ¤ì¤¿¤éKey¤Ë1¤¬Æþ¤ë
if key=1{
m++;m¤Ë1¤ò¤¹¡£m+1¤ÈƱ¤¸¤Ç¤¹¡£
if m>=0 && m\100=0 : km++
if m>=0 && m\5=0 : wait_speed -= 1;5m¿Ê¤à¤´¤È¤ËÂÔ¤Á»þ´Ö¤ò£±¸º¤é¤¹
if wait_speed<=10 : wait_speed = 10;0.01ÉðʾåÂÔ¤Á»þ´Ö¤òû½Ì¤·¤Ê¤¤
;m¤¬0¤è¤êÂ礤¯¡¢m¤¬100¤Ç³ä¤êÀÚ¤ì¤ë»þ¤Ëkm¤Ë1¤ò¤¹
await wait_speed;wait_speedʬÂÔ¤Ä
redraw 2
title ""+m+"m "+km+"km"
color 255,255,255:boxf;²èÌÌ¥¯¥ê¥¢
pos 0,0 : color 0,0,0
mes str(m)+"m";""+m+"m"¤ÈƱ¤¸¤Ç¤¹¡£
mes str(km)+"Ò";""+km+"Ò"¤ÈƱ¤¸¤Ç¤¹¡£
redraw 1
}
if cnt=0{
;¥ë¡¼¥×²ó¿ô¤¬0²óÌܤλþ¤Î¤ßÉÁ²è¤¹¤ë
redraw 2
title ""+m+"m "+km+"km"
pos 0,0 : color 0,0,0
mes str(m)+"m";""+m+"m"¤ÈƱ¤¸¤Ç¤¹¡£
mes str(km)+"Ò";""+km+"Ò"¤ÈƱ¤¸¤Ç¤¹¡£
redraw 1
}
wait 0;¥Õ¥ê¡¼¥ºËɻߤκÇû»þ´Ö¤ÎWait
loop