2023-05-02
FlameGameクラスのdebugModeをtrueにすると、各コンポーネントの位置やサイズが描画されるようになります。
FpsTextComponentを使うと現在の FPS を表示することができます。
debugModeとFpsTextComponentの使用例です。
debugMode = true;
await add(
FpsTextComponent(),
);
これで左上に FPS が、各コンポーネントにデバッグ情報が表示されます。
(四角形の表示方法は四角形を参照)
© 2023 tnantoka