Desktop (Node + napi-rs) and web (WASM) examples using the TypeScript SDK.
flappy_bird/— Flappy Bird parity gamesandbox/— Feature parity tester (desktop + web)feature_lab/— API smoke coverage (desktop + web)
./dev.sh --sdk typescript --game flappy_bird
./dev.sh --sdk typescript --game sandbox
./dev.sh --sdk typescript --game feature_labOr manually:
cd examples/typescript/flappy_bird
npm install
npm run desktop # Node.js (requires native addon)
npm run build:web && npm run web # Browser on port 8765- Game logic in shared
.tsfile (platform-agnostic) - Desktop and web entry points pass their platform's
GoudGameto shared logic - Constants match C#/Python implementations exactly
See .agents/rules/examples.md.