用途別リファレンス
時間を計る
Main
$time=0; new TimerLabel{x:100,y:100}; while(true){ // 1フレームに1回$timeが増える $time++; update(); }
TimerLabel
while(true){ // $timeの値を30(フレーム数)で割り,小数点以下を除去して表示 text=floor($time/30); update(); }