用途別リファレンス

評価方法(2)

Onpu(追加)
beforeTouched=false; //追加
start=$c.play().currentTime();
while(y<$screenHeight){
    t=$c.play().currentTime();
    y=(t-start)*($screenHeight*3/4)/2000;

//ここから if($touches[0].touched && !beforeTouched && abs($linePanel.y-y)<43) { print(" "+$linePanel.y-y); die(); if(abs($linePanel.y-y)<10){ $score=$score+300; print("cool"); } else if(abs($linePanel.y-y)<30){ $score=$score+200; print("good"); } else{ $score=$score+0; print("bad"); } } beforeTouched=$touches[0].touched; //ここまで追加 update(); }

die(); print("miss");

解説

前へ 評価方法(1)  次へ 拡張機能