Loading files
c26313eeaThis file is pinned to the selected release. Download the original to open it in your design tool.
Files from this revision, including CAD and LFS contents. Git history is not included.
Or in GitHub Desktop, choose File → Clone repository → URL and paste this address.
Public repositories can be cloned without signing in. For pushing, use your ThingAtlas username and a Git access token as the password.
git lfs install git clone https://thingatlas.com/git/-unclaimed/stack-chan-374381865.git
Includes Git history, branches, and Git LFS files. Clones the repository’s default branch, regardless of the version shown here.
c26313eeaThis file is pinned to the selected release. Download the original to open it in your design tool.
# ミニアプリサンプル: スタックチャン JUMP
Piu の `Port` を使った、次々に迫る障害物をジャンプで飛び越えるゲームです。
画面をタップするとスタックチャンがジャンプします。どこまでスコアを伸ばせるか挑戦しましょう。
障害物を越えるたびにスコアと移動速度が上がり、衝突後にもう一度タップすると再スタートします。
終了するときは、常に表示されるAppBar左上の「戻る」ボタンを使います。
ゲーム領域は単一の `Port` で描画し、プレイヤーと障害物の周辺だけを再描画します。
Piuオブジェクトを多数重ねず、組み込みターゲットでの表示ツリーと再描画の負荷を抑えるためです。
通常の `mod` ではなく `miniapp` モジュールを含むarchiveとしてビルドされます。
インストールして再起動し、顔をタップすると、顔画面のAppBarにアプリ一覧ボタンが現れます。
MOD Galleryでは「スタックチャン JUMP」として、CoreS3実機への書き込みとWebシミュレーターでの実行を選べます。
## スプライト
`assets/stack-chan.png` は [meganetaaan/mouse-followerのスプライト](https://github.com/meganetaaan/mouse-follower/blob/3258fc6d0890019a3c94024e3a456175cd563a6a/packages/mouse-follower/assets/stack-chan.png)
(commit `3258fc6d`)を元にしています。
元画像の緑色の背景だけを透過へ変換し、スプライトの非背景ピクセルは変更していません。
配布条件は [LICENSE.mouse-follower](./LICENSE.mouse-follower) を参照してください。
この実行方式はexperimentalです。
Compartmentはimportとglobalを制限しますが、生のPiuオブジェクトをホストの表示ツリーへ接続するため、未信頼コードに対する完全なsandboxではありません。