Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
5369e47efThis file is pinned to the selected release. Download the original to open it in your design tool.
<!doctype html>
<html lang="ja">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stack-chan Web Simulator</title>
<link rel="stylesheet" href="./simulator.css" />
<script type="importmap">
{
"imports": {
"three": "https://unpkg.com/three@0.164.1/build/three.module.js"
}
}
</script>
</head>
<body>
<main class="app-shell">
<section class="hero">
<h1>スタックチャンWebシミュレーター</h1>
<p>ブラウザ上でスタックチャンのWASMアプリと3Dボディを操作できます。</p>
<ul class="usage-list">
<li>3Dビューでドラッグ: 視点変更</li>
<li>3Dビューでホイール: ズーム</li>
<li>スタックチャンの画面をクリック/ドラッグ: スタックチャンを操作</li>
</ul>
</section>
<section class="simulator-layout">
<div class="viewport-card">
<canvas id="stackchan-viewport" aria-label="3D Stack-chan simulator"></canvas>
<canvas id="simulator-screen" width="320" height="240" aria-label="Stack-chan screen canvas"></canvas>
</div>
<aside class="control-card">
<h2>状態</h2>
<p id="simulator-info">Loading WASM…</p>
<div class="mod-installer">
<label class="file-button" for="mod-archive-input">Install .xsa</label>
<input id="mod-archive-input" type="file" accept=".xsa,application/octet-stream" />
<a class="sample-download" href="./samples/stackchan-sample-mod.xsa" download="stackchan-sample-mod.xsa"
>Download sample .xsa</a
>
<button id="simulator-restart-button" type="button">Restart simulator</button>
<button id="mod-clear-button" type="button">Clear MOD</button>
<p id="mod-install-status">MOD: empty</p>
</div>
<div class="mod-transfer-shell" aria-label="web MOD build and transfer controls">
<h3>Web MOD build / transfer</h3>
<button id="mod-build-button" type="button">Build MOD</button>
<button id="mod-connect-web-serial-button" type="button">Connect Web Serial</button>
<button id="mod-connect-ble-serial-button" type="button">Connect BLE Serial</button>
<button id="mod-transfer-button" type="button" disabled>Transfer to Stack-chan</button>
<p id="mod-transfer-status">Build service: not connected yet</p>
</div>
<div class="camera-controls" aria-label="browser camera controls">
<button id="browser-camera-button" type="button">ブラウザカメラ開始</button>
<p id="browser-camera-status">Cameraボタンから自動開始を試します。必要ならこのボタンで許可してください。</p>
</div>
<pre id="trace-log" aria-label="firmware trace log"></pre>
</aside>
</section>
</main>
<script type="module" src="./simulator.mjs"></script>
</body>
</html>