api

Labelクラス

文字列の表示に特化したActorです。 templateを設定することで、グローバル変数の内容を常に更新しながら表示することができます。

//$scoreの内容を表示
new Label{x:200,y:200,template:"Score=$score" };
$score=0;
while(true) {
    $score++;
    update();
}