board-rendering-skia
Builds Skia game boards - Picture renderer, pure draw(), timeline, frame clock (startAt fix), BoardLayout, palettes, board text/RTL, particles, 120 Hz, pixel goldens. Use when building, drawing or animating a game board. Not for touch input (board-gestures-and-input) or sims (realtime-game-loop).
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- board-rendering-skia
- description
- Builds Skia game boards - Picture renderer, pure draw(), timeline, frame clock (startAt fix), BoardLayout, palettes, board text/RTL, particles, 120 Hz, pixel goldens. Use when building, drawing or animating a game board. Not for touch input (board-gestures-and-input) or sims (realtime-game-loop).
02 资源文件 500
- 资产文件assets/shared.json1.5 KB
- 参考文档examples/line-siege/board/board-contrast.json474 B
- 脚本examples/line-siege/board/board-digits.android.test.ts3.1 KB
- 脚本examples/line-siege/board/board-ids.test.ts718 B
- 脚本examples/line-siege/board/board-ids.ts1.2 KB
- 参考文档examples/line-siege/board/board-palettes.json1.4 KB
- 脚本examples/line-siege/board/board-palettes.ts489 B
- 脚本examples/line-siege/board/build-timeline.test.ts4.6 KB
- 脚本examples/line-siege/board/build-timeline.ts5.6 KB
- 脚本examples/line-siege/board/drag-lift.test.ts4.7 KB
- 脚本examples/line-siege/board/draw-board.test.ts9.1 KB
- 脚本examples/line-siege/board/draw-board.ts6.7 KB
- 脚本examples/line-siege/board/draw-hinted.test.ts10.7 KB
- 脚本examples/line-siege/board/draw-monsters.ts5.9 KB
- 脚本examples/line-siege/board/draw-parts.ts2.9 KB
- 脚本examples/line-siege/board/draw-tray.ts3.9 KB
- 脚本examples/line-siege/board/hit-targets.test.ts4.8 KB
- 脚本examples/line-siege/board/layout-board.test.ts5.7 KB
- 脚本examples/line-siege/board/layout-board.ts5.2 KB
- 脚本examples/line-siege/board/line-siege-board.ts2.6 KB
- 脚本examples/line-siege/board/monster-tracks.ts4.2 KB
- 脚本examples/line-siege/board/to-view.test.ts2.4 KB
- 脚本examples/line-siege/board/to-view.ts1.9 KB
- 脚本examples/line-siege/golden-font.ts1.0 KB
- 资产文件examples/line-siege/goldens/line-siege-phone-portrait-0.5.png15.3 KB
- 资产文件examples/line-siege/goldens/line-siege-phone-portrait-0.png14.3 KB
- 资产文件examples/line-siege/goldens/line-siege-phone-portrait-1.png14.0 KB
- 资产文件examples/line-siege/goldens/line-siege-small-0.5.png10.4 KB
- 资产文件examples/line-siege/goldens/line-siege-small-0.png10.5 KB
- 资产文件examples/line-siege/goldens/line-siege-small-1.png9.4 KB
- 资产文件examples/line-siege/goldens/line-siege-tablet-landscape-0.5.png31.5 KB
- 资产文件examples/line-siege/goldens/line-siege-tablet-landscape-0.png29.9 KB
- 资产文件examples/line-siege/goldens/line-siege-tablet-landscape-1.png29.8 KB
- 资产文件examples/line-siege/goldens/line-siege-tutorial-dark-0.3.png16.6 KB
- 资产文件examples/line-siege/goldens/line-siege-tutorial-dark-0.png15.9 KB
- 资产文件examples/line-siege/goldens/line-siege-tutorial-dark-1.png16.8 KB
- 资产文件examples/line-siege/goldens/line-siege-tutorial-light-0.3.png16.7 KB
- 资产文件examples/line-siege/goldens/line-siege-tutorial-light-0.png15.9 KB
- 资产文件examples/line-siege/goldens/line-siege-tutorial-light-1.png16.6 KB
- 脚本examples/line-siege/line-siege-board.golden.test.ts4.2 KB
- 脚本examples/line-siege/line-siege-tutorial.golden.test.ts3.8 KB
- 脚本examples/line-siege/rules/line-siege-tuning.ts5.3 KB
- 脚本examples/line-siege/rules/line-siege-types.ts4.1 KB
- 脚本examples/line-siege/rules/pieces.ts1.7 KB
- 参考文档references/api-traps.md5.9 KB
- 参考文档references/architecture.md16.2 KB
- 参考文档references/drawing.md28.6 KB
- 参考文档references/testing-and-goldens.md12.6 KB
- 参考文档references/timeline-and-clock.md20.0 KB
- 脚本scripts/check-board-code.mjs19.9 KB
- 脚本scripts/check-board-files.mjs22.9 KB
- 脚本scripts/check-lib.mjs44.4 KB
- 脚本scripts/lib/source-scan.mjs3.5 KB
- 脚本scripts/selftest.mjs3.3 KB
- 脚本templates/game-kit/geom/board-layout.test.ts3.9 KB
- 脚本templates/game-kit/geom/board-layout.ts5.9 KB
- 脚本templates/game-kit/timeline/particles.test.ts1.2 KB
- 脚本templates/game-kit/timeline/particles.ts2.2 KB
- 脚本templates/game-kit/timeline/sample.test.ts3.9 KB
- 脚本templates/game-kit/timeline/sample.ts4.1 KB
- 脚本templates/game-kit/timeline/track.ts1.9 KB
- 脚本templates/game/board/__GAME_ID__-board.test.ts1.0 KB
- 脚本templates/game/board/__GAME_ID__-board.ts1.7 KB
- 参考文档templates/game/board/board-contrast.json214 B
- 脚本templates/game/board/board-ids.test.ts385 B
- 脚本templates/game/board/board-ids.ts548 B
- 参考文档templates/game/board/board-palettes.json849 B
- 脚本templates/game/board/board-palettes.ts490 B
- 脚本templates/game/board/build-timeline.test.ts2.0 KB
- 脚本templates/game/board/build-timeline.ts3.2 KB
- 脚本templates/game/board/draw-board.test.ts5.1 KB
- 脚本templates/game/board/draw-board.ts6.5 KB
- 脚本templates/game/board/layout-board.test.ts2.0 KB
- 脚本templates/game/board/layout-board.ts852 B
- 脚本templates/game/board/to-view.test.ts791 B
- 脚本templates/game/board/to-view.ts915 B
- 脚本templates/shell/app/use-is-app-active.test.ts1.8 KB
- 脚本templates/shell/app/use-is-app-active.ts657 B
- 其他templates/shell/game-host/board-canvas.test.tsx5.3 KB
- 其他templates/shell/game-host/board-canvas.tsx5.3 KB
- 脚本templates/shell/game-host/board-clock-state.test.ts6.0 KB
- 脚本templates/shell/game-host/board-clock-state.ts6.5 KB
- 脚本templates/shell/game-host/board-clock-traces.test.ts6.5 KB
- 脚本templates/shell/game-host/board-kit.test.ts3.8 KB
- 脚本templates/shell/game-host/board-kit.ts3.0 KB
- 其他templates/shell/game-host/board-layout-probe.android.test.tsx1.7 KB
- 其他templates/shell/game-host/board-layout-probe.test.tsx5.6 KB
- 其他templates/shell/game-host/board-layout-probe.tsx5.9 KB
- 脚本templates/shell/game-host/board-number-font.ts1.2 KB
- 脚本templates/shell/game-host/board-number-typeface.android.test.ts2.0 KB
- 脚本templates/shell/game-host/board-number-typeface.test.ts2.8 KB
- 脚本templates/shell/game-host/board-number-typeface.ts3.0 KB
- 脚本templates/shell/game-host/board-scene.test.ts3.3 KB
- 脚本templates/shell/game-host/board-scene.ts2.3 KB
- 脚本templates/shell/game-host/board-types.ts5.6 KB
- 其他templates/shell/game-host/coach-hand-layer.tsx3.1 KB
- 脚本templates/shell/game-host/cue-scheduler.test.ts4.0 KB
- 脚本templates/shell/game-host/cue-scheduler.ts2.8 KB
- 脚本templates/shell/game-host/describe-error.test.ts527 B
- 脚本templates/shell/game-host/describe-error.ts286 B
- 脚本templates/shell/game-host/draw-centered-text.test.ts3.7 KB
- 脚本templates/shell/game-host/draw-centered-text.ts3.0 KB
- 脚本templates/shell/game-host/draw-coach-hand.test.ts6.1 KB
- 脚本templates/shell/game-host/draw-coach-hand.ts7.6 KB
- 其他templates/shell/game-host/game-board-host.test.tsx8.0 KB
- 其他templates/shell/game-host/game-board-host.tsx6.2 KB
- 脚本templates/shell/game-host/paint-board-png.ts2.2 KB
- 脚本templates/shell/game-host/present-move.test.ts1.8 KB
- 脚本templates/shell/game-host/present-move.ts1.6 KB
- 脚本templates/shell/game-host/record-board.test.ts6.7 KB
- 脚本templates/shell/game-host/record-board.ts3.1 KB
- 脚本templates/shell/game-host/run-board-frame.test.ts3.6 KB
- 脚本templates/shell/game-host/run-board-frame.ts3.1 KB
- 脚本templates/shell/game-host/testing/android-skia.ts2.3 KB
- 脚本templates/shell/game-host/use-board-clock.test.ts1.9 KB
- 脚本templates/shell/game-host/use-board-clock.ts7.7 KB
- 脚本templates/shell/game-host/use-game-lifecycle.test.ts2.5 KB
- 脚本templates/shell/game-host/use-game-lifecycle.ts1.9 KB
- 其他templates/shell/native/android/BoardFontModule.kt904 B
- 其他templates/shell/native/ios/BoardFontModule.swift681 B
- 脚本templates/test/goldens/boards/__GAME_ID__-board.golden.test.ts3.5 KB
- 脚本templates/test/goldens/boards/skia-golden.ts706 B
- 脚本templates/tooling/quality/check-worklet-boundary.test.ts1.5 KB
- 脚本templates/tooling/quality/check-worklet-boundary.ts3.2 KB
- 脚本templates/tooling/quality/worklet-transform.test.ts482 B
- 脚本tests/build-fixtures.mjs10.4 KB
- 参考文档tests/fixture-base/check-board-files/apps/demo-arena/src/board/board-contrast.json159 B
- 参考文档tests/fixture-base/check-board-files/apps/demo-arena/src/board/board-palettes.json501 B
- 脚本tests/fixture-base/check-board-files/apps/demo-arena/src/board/board-palettes.ts489 B
- 脚本tests/fixture-base/check-board-files/apps/demo-arena/src/board/draw-arena.ts8 B
- 脚本tests/fixture-base/check-board-files/apps/demo-arena/src/sim/demo-arena-sim.ts7 B
- 脚本tests/fixture-base/check-board-files/jest.config.js161 B
- 脚本tests/fixture-base/check-board-files/packages/shell/src/config/with-shell.ts121 B
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-phone-portrait-0.5.png8.8 KB
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-phone-portrait-0.png10.1 KB
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-phone-portrait-1.png5.2 KB
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-small-0.5.png6.9 KB
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-small-0.png8.1 KB
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-small-1.png4.0 KB
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-tablet-landscape-0.5.png16.8 KB
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-tablet-landscape-0.png21.1 KB
- 资产文件tests/fixture-base/check-board-files/test/goldens/boards/__image_snapshots__/tap-flip-tablet-landscape-1.png10.5 KB
- 脚本tests/fixture-base/common/apps/tap-flip/src/rules/tap-flip-types.ts1.2 KB
- 参考文档tests/fixture-base/common/package.json525 B
- 脚本tests/fixture-base/common/packages/game-kit/src/contract/input-intent.ts433 B
- 脚本tests/fixture-base/common/packages/game-kit/src/rng/sfc32.ts2.7 KB
- 其他tests/fixture-base/common/packages/shell/src/game-host/example-picture-probe.tsx805 B
- 脚本tests/fixture-base/common/packages/shell/src/game-host/pan-intent.ts202 B
- 脚本tests/fixture-base/common/packages/shell/src/game-host/use-board-gestures.ts1.1 KB
- 脚本tests/fixture-base/common/packages/shell/src/services/audio/audio-port.ts345 B
- 脚本tests/fixture-base/common/packages/shell/src/services/haptics/haptics-port.ts345 B
- 其他tests/fixture-base/common/packages/shell/src/testing/render-with-shell.tsx339 B
- 其他tests/fixture-base/common/packages/shell/src/ui/app-text.tsx1007 B
- 脚本tests/fixture-base/common/skills/some-skill/tests/fixtures/bad-clock/packages/shell/src/game-host/run-board-frame.ts262 B
- 参考文档tests/fixtures/check-board-code/bad-canvas-a11y-wrapper-closed/EXPECT.txt35 B
- 其他tests/fixtures/check-board-code/bad-canvas-a11y-wrapper-closed/packages/shell/src/game-host/example-picture.tsx649 B
- 参考文档tests/fixtures/check-board-code/bad-canvas-a11y/EXPECT.txt32 B
- 其他tests/fixtures/check-board-code/bad-canvas-a11y/packages/shell/src/game-host/board-canvas.tsx3.0 KB
- 参考文档tests/fixtures/check-board-code/bad-canvas-onlayout/EXPECT.txt36 B
- 其他tests/fixtures/check-board-code/bad-canvas-onlayout/packages/shell/src/game-host/board-canvas.tsx3.1 KB
- 参考文档tests/fixtures/check-board-code/bad-clock-push-while-paused/EXPECT.txt221 B
- 脚本tests/fixtures/check-board-code/bad-clock-push-while-paused/packages/shell/src/game-host/use-board-clock.ts2.1 KB
- 脚本tests/fixtures/check-board-code/bad-draw-alloc/apps/demo-grid/src/board/draw-board.ts5.6 KB
- 参考文档tests/fixtures/check-board-code/bad-draw-alloc/EXPECT.txt93 B
- 参考文档tests/fixtures/check-board-code/bad-font-system-manager-font-file/EXPECT.txt43 B
- 脚本tests/fixtures/check-board-code/bad-font-system-manager-font-file/packages/shell/src/game-host/board-number-font.ts466 B
- 参考文档tests/fixtures/check-board-code/bad-font-system-manager-unguarded/EXPECT.txt47 B
- 脚本tests/fixtures/check-board-code/bad-font-system-manager-unguarded/packages/shell/src/game-host/board-number-typeface.ts505 B
- 参考文档tests/fixtures/check-board-code/bad-font-system-manager/EXPECT.txt50 B
- 其他tests/fixtures/check-board-code/bad-font-system-manager/packages/shell/src/game-host/create-example-picture.tsx488 B
- 参考文档tests/fixtures/check-board-code/bad-frame-callback-body/EXPECT.txt42 B
- 脚本tests/fixtures/check-board-code/bad-frame-callback-body/packages/shell/src/game-host/use-board-clock.ts2.1 KB
- 脚本tests/fixtures/check-board-code/bad-interpolate-color/apps/demo-grid/src/board/flash-colour.ts232 B
- 参考文档tests/fixtures/check-board-code/bad-interpolate-color/EXPECT.txt36 B
- 参考文档tests/fixtures/check-board-code/bad-measure-text/EXPECT.txt38 B
- 脚本tests/fixtures/check-board-code/bad-measure-text/packages/shell/src/game-host/draw-centered-text.ts961 B
- 脚本tests/fixtures/check-board-code/bad-missing-worklet/apps/demo-grid/src/board/draw-board.ts5.5 KB
- 参考文档tests/fixtures/check-board-code/bad-missing-worklet/EXPECT.txt34 B
- 参考文档tests/fixtures/check-board-code/bad-module-recorder/EXPECT.txt40 B
- 其他tests/fixtures/check-board-code/bad-module-recorder/packages/shell/src/game-host/board-canvas.tsx3.1 KB
- 脚本tests/fixtures/check-board-code/bad-mutable-path/apps/demo-grid/src/board/demo-grid-board.ts1.4 KB
- 参考文档tests/fixtures/check-board-code/bad-mutable-path/EXPECT.txt80 B
- 参考文档tests/fixtures/check-board-code/bad-no-lifecycle/EXPECT.txt33 B
- 其他tests/fixtures/check-board-code/bad-no-lifecycle/packages/shell/src/game-host/game-board-host.tsx3.1 KB
- 其他tests/fixtures/check-board-code/bad-pixel-flip/apps/demo-grid/src/board/board-frame.tsx337 B
- 参考文档tests/fixtures/check-board-code/bad-pixel-flip/EXPECT.txt29 B
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/board-ids.ts350 B
- 参考文档tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/board-palettes.json793 B
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/board-palettes.ts488 B
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/build-timeline.test.ts1.4 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/build-timeline.ts2.7 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/demo-grid-board.ts1.3 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/draw-board.test.ts4.1 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/draw-board.ts5.5 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/layout-board.test.ts1.8 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/layout-board.ts836 B
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/apps/demo-grid/src/board/to-view.ts1.1 KB
- 参考文档tests/fixtures/check-board-code/bad-reduced-motion-hook/EXPECT.txt45 B
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/game-kit/src/geom/board-layout.ts5.9 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/game-kit/src/rng/sfc32.ts2.7 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/game-kit/src/timeline/particles.ts2.2 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/game-kit/src/timeline/sample.test.ts997 B
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/game-kit/src/timeline/sample.ts2.9 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/game-kit/src/timeline/track.ts1.9 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/app/use-is-app-active.ts657 B
- 其他tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/board-canvas.tsx3.4 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/board-kit.ts2.4 KB
- 其他tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/board-layout-probe.tsx3.2 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/board-scene.test.ts3.3 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/board-scene.ts2.1 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/board-types.ts3.7 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/cue-scheduler.ts1.3 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/describe-error.ts286 B
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/draw-centered-text.ts1.0 KB
- 其他tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/game-board-host.tsx3.6 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/paint-board-png.ts1.7 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/present-move.ts1.5 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/record-board.ts1.8 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/run-board-frame.ts1.3 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/use-board-clock.ts2.0 KB
- 脚本tests/fixtures/check-board-code/bad-reduced-motion-hook/packages/shell/src/game-host/use-game-lifecycle.ts1.2 KB
- 参考文档tests/fixtures/check-board-code/bad-run-on-js/EXPECT.txt32 B
- 脚本tests/fixtures/check-board-code/bad-run-on-js/packages/shell/src/game-host/record-board.ts1.8 KB
- 脚本tests/fixtures/check-board-code/bad-text-direction/apps/demo-grid/src/board/word-label.ts218 B
- 参考文档tests/fixtures/check-board-code/bad-text-direction/EXPECT.txt31 B
- 参考文档tests/fixtures/check-board-code/bad-time-since-first-frame/EXPECT.txt34 B
- 脚本tests/fixtures/check-board-code/bad-time-since-first-frame/packages/shell/src/game-host/run-board-frame.ts1.3 KB
- 脚本tests/fixtures/check-board-code/bad-token-alpha/apps/demo-grid/src/board/draw-board.ts672 B
- 参考文档tests/fixtures/check-board-code/bad-token-alpha/EXPECT.txt29 B
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/board-ids.ts350 B
- 参考文档tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/board-palettes.json793 B
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/board-palettes.ts488 B
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/build-timeline.test.ts1.4 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/build-timeline.ts2.7 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/demo-grid-board.ts1.3 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/draw-board.test.ts4.1 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/draw-board.ts5.5 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/layout-board.test.ts1.8 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/layout-board.ts836 B
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/apps/demo-grid/src/board/to-view.ts1.1 KB
- 参考文档tests/fixtures/check-board-code/bad-value-accessor-member/EXPECT.txt83 B
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/game-kit/src/geom/board-layout.ts5.9 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/game-kit/src/rng/sfc32.ts2.7 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/game-kit/src/timeline/particles.ts2.2 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/game-kit/src/timeline/sample.test.ts997 B
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/game-kit/src/timeline/sample.ts2.9 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/game-kit/src/timeline/track.ts1.9 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/app/use-is-app-active.ts657 B
- 其他tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/board-canvas.tsx3.1 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/board-kit.ts2.4 KB
- 其他tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/board-layout-probe.tsx3.2 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/board-scene.test.ts3.3 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/board-scene.ts2.1 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/board-types.ts3.7 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/cue-scheduler.ts1.3 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/describe-error.ts286 B
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/draw-centered-text.ts1.0 KB
- 其他tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/game-board-host.tsx3.6 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/paint-board-png.ts1.7 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/present-move.ts1.5 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/record-board.ts1.8 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/run-board-frame.ts1.3 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/use-board-clock.ts2.0 KB
- 脚本tests/fixtures/check-board-code/bad-value-accessor-member/packages/shell/src/game-host/use-game-lifecycle.ts1.2 KB
- 参考文档tests/fixtures/check-board-code/bad-value-accessor/EXPECT.txt42 B
- 其他tests/fixtures/check-board-code/bad-value-accessor/packages/shell/src/game-host/board-canvas.tsx3.1 KB
- 脚本tests/fixtures/check-board-code/bad-worklet-import/apps/demo-grid/src/board/build-timeline.ts137 B
- 脚本tests/fixtures/check-board-code/bad-worklet-import/apps/demo-grid/src/board/draw-board.ts5.5 KB
- 参考文档tests/fixtures/check-board-code/bad-worklet-import/EXPECT.txt74 B
- 参考文档tests/fixtures/check-board-code/good/apps/tap-flip/src/board/board-contrast.json214 B
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/board-ids.test.ts382 B
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/board-ids.ts545 B
- 参考文档tests/fixtures/check-board-code/good/apps/tap-flip/src/board/board-palettes.json849 B
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/board-palettes.ts487 B
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/build-timeline.test.ts2.0 KB
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/build-timeline.ts3.2 KB
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/draw-board.test.ts5.1 KB
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/draw-board.ts6.5 KB
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/layout-board.test.ts1.9 KB
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/layout-board.ts833 B
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/tap-flip-board.test.ts987 B
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/tap-flip-board.ts1.6 KB
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/to-view.test.ts766 B
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/board/to-view.ts874 B
- 脚本tests/fixtures/check-board-code/good/apps/tap-flip/src/rules/tap-flip-types.ts1.2 KB
- 参考文档tests/fixtures/check-board-code/good/package.json525 B
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/contract/input-intent.ts433 B
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/geom/board-layout.test.ts3.9 KB
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/geom/board-layout.ts5.9 KB
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/rng/sfc32.ts2.7 KB
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/timeline/particles.test.ts1.2 KB
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/timeline/particles.ts2.2 KB
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/timeline/sample.test.ts3.9 KB
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/timeline/sample.ts4.1 KB
- 脚本tests/fixtures/check-board-code/good/packages/game-kit/src/timeline/track.ts1.9 KB
- 其他tests/fixtures/check-board-code/good/packages/shell/android/src/main/java/io/applander/e07shell/BoardFontModule.kt904 B
- 其他tests/fixtures/check-board-code/good/packages/shell/ios/BoardFontModule.swift681 B
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/app/use-is-app-active.ts657 B
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-canvas.test.tsx5.3 KB
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-canvas.tsx5.3 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-clock-state.test.ts6.0 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-clock-state.ts6.5 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-clock-traces.test.ts6.5 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-kit.test.ts3.8 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-kit.ts3.0 KB
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-layout-probe.android.test.tsx1.7 KB
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-layout-probe.test.tsx5.6 KB
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-layout-probe.tsx5.9 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-number-font.ts1.2 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-number-typeface.android.test.ts2.0 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-number-typeface.test.ts2.8 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-number-typeface.ts3.0 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-scene.test.ts3.3 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-scene.ts2.3 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/board-types.ts5.6 KB
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/coach-hand-layer.tsx3.1 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/cue-scheduler.test.ts4.0 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/cue-scheduler.ts2.8 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/describe-error.test.ts527 B
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/describe-error.ts286 B
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/draw-centered-text.test.ts3.7 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/draw-centered-text.ts3.0 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/draw-coach-hand.test.ts6.1 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/draw-coach-hand.ts7.6 KB
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/example-picture-probe.tsx805 B
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/game-board-host.test.tsx8.0 KB
- 其他tests/fixtures/check-board-code/good/packages/shell/src/game-host/game-board-host.tsx6.2 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/paint-board-png.ts2.2 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/pan-intent.ts202 B
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/present-move.test.ts1.8 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/present-move.ts1.6 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/record-board.test.ts6.7 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/record-board.ts3.1 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/run-board-frame.test.ts3.6 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/run-board-frame.ts3.1 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/testing/android-skia.ts2.3 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/use-board-clock.test.ts1.9 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/use-board-clock.ts7.7 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/use-board-gestures.ts1.1 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/use-game-lifecycle.test.ts2.5 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/game-host/use-game-lifecycle.ts1.9 KB
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/services/audio/audio-port.ts345 B
- 脚本tests/fixtures/check-board-code/good/packages/shell/src/services/haptics/haptics-port.ts345 B
- 其他tests/fixtures/check-board-code/good/packages/shell/src/testing/render-with-shell.tsx339 B
- 其他tests/fixtures/check-board-code/good/packages/shell/src/ui/app-text.tsx1007 B
- 脚本tests/fixtures/check-board-code/good/skills/some-skill/tests/fixtures/bad-clock/packages/shell/src/game-host/run-board-frame.ts262 B
- 脚本tests/fixtures/check-board-code/pass-path-builder-add/apps/demo-grid/src/board/demo-grid-board.ts1.6 KB
- 参考文档tests/fixtures/check-board-code/pass-path-builder-add/EXPECT.txt59 B
- 参考文档tests/fixtures/check-board-files/bad-board-object/apps/demo-arena/src/board/board-contrast.json159 B
- 参考文档tests/fixtures/check-board-files/bad-board-object/apps/demo-arena/src/board/board-palettes.json501 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/demo-arena/src/board/board-palettes.ts489 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/demo-arena/src/board/draw-arena.ts8 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/demo-arena/src/sim/demo-arena-sim.ts7 B
- 参考文档tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/board-contrast.json214 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/board-ids.test.ts382 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/board-ids.ts545 B
- 参考文档tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/board-palettes.json849 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/board-palettes.ts487 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/build-timeline.test.ts2.0 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/build-timeline.ts3.2 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/draw-board.test.ts5.1 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/draw-board.ts6.5 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/layout-board.test.ts1.9 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/layout-board.ts833 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/tap-flip-board.test.ts987 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/tap-flip-board.ts1.6 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/to-view.test.ts766 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/board/to-view.ts874 B
- 脚本tests/fixtures/check-board-files/bad-board-object/apps/tap-flip/src/rules/tap-flip-types.ts1.2 KB
- 参考文档tests/fixtures/check-board-files/bad-board-object/EXPECT.txt36 B
- 脚本tests/fixtures/check-board-files/bad-board-object/jest.config.js161 B
- 参考文档tests/fixtures/check-board-files/bad-board-object/package.json525 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/contract/input-intent.ts433 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/geom/board-layout.test.ts3.9 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/geom/board-layout.ts5.9 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/rng/sfc32.ts2.7 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/timeline/particles.test.ts1.2 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/timeline/particles.ts2.2 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/timeline/sample.test.ts3.9 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/timeline/sample.ts4.1 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/game-kit/src/timeline/track.ts1.9 KB
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/android/src/main/java/io/applander/e07shell/BoardFontModule.kt904 B
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/ios/BoardFontModule.swift681 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/config/with-shell.ts121 B
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-canvas.test.tsx5.3 KB
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-canvas.tsx5.3 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-clock-state.test.ts6.0 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-clock-state.ts6.5 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-clock-traces.test.ts6.5 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-kit.test.ts3.8 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-kit.ts3.0 KB
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-layout-probe.android.test.tsx1.7 KB
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-layout-probe.test.tsx5.6 KB
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-layout-probe.tsx5.9 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-number-font.ts1.2 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-number-typeface.android.test.ts2.0 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-number-typeface.test.ts2.8 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-number-typeface.ts3.0 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-scene.test.ts3.3 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-scene.ts2.3 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/board-types.ts5.6 KB
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/coach-hand-layer.tsx3.1 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/cue-scheduler.test.ts4.0 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/cue-scheduler.ts2.8 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/describe-error.test.ts527 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/describe-error.ts286 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/draw-centered-text.test.ts3.7 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/draw-centered-text.ts3.0 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/draw-coach-hand.test.ts6.1 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/draw-coach-hand.ts7.6 KB
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/example-picture-probe.tsx805 B
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/game-board-host.test.tsx8.0 KB
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/game-board-host.tsx6.2 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/paint-board-png.ts2.2 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/pan-intent.ts202 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/present-move.test.ts1.8 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/present-move.ts1.6 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/record-board.test.ts6.7 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/record-board.ts3.1 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/run-board-frame.test.ts3.6 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/run-board-frame.ts3.1 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/testing/android-skia.ts2.3 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/use-board-clock.test.ts1.9 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/use-board-clock.ts7.7 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/use-board-gestures.ts1.1 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/use-game-lifecycle.test.ts2.5 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/game-host/use-game-lifecycle.ts1.9 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/services/audio/audio-port.ts345 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/shell/src/services/haptics/haptics-port.ts345 B
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/testing/render-with-shell.tsx339 B
- 其他tests/fixtures/check-board-files/bad-board-object/packages/shell/src/ui/app-text.tsx1007 B
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/tooling/src/quality/check-worklet-boundary.test.ts1.5 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/tooling/src/quality/check-worklet-boundary.ts3.2 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/packages/tooling/src/quality/worklet-transform.test.ts482 B
- 脚本tests/fixtures/check-board-files/bad-board-object/skills/some-skill/tests/fixtures/bad-clock/packages/shell/src/game-host/run-board-frame.ts262 B
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-phone-portrait-0.5.png8.8 KB
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-phone-portrait-0.png10.1 KB
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-phone-portrait-1.png5.2 KB
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-small-0.5.png6.9 KB
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-small-0.png8.1 KB
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-small-1.png4.0 KB
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-tablet-landscape-0.5.png16.8 KB
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-tablet-landscape-0.png21.1 KB
- 资产文件tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/__image_snapshots__/tap-flip-tablet-landscape-1.png10.5 KB
- 脚本tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/skia-golden.ts706 B
- 脚本tests/fixtures/check-board-files/bad-board-object/test/goldens/boards/tap-flip-board.golden.test.ts3.4 KB
- 参考文档tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/demo-arena/src/board/board-contrast.json159 B
- 参考文档tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/demo-arena/src/board/board-palettes.json501 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/demo-arena/src/board/board-palettes.ts489 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/demo-arena/src/board/draw-arena.ts8 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/demo-arena/src/sim/demo-arena-sim.ts7 B
- 参考文档tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/board-contrast.json214 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/board-ids.test.ts382 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/board-ids.ts545 B
- 参考文档tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/board-palettes.json849 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/board-palettes.ts487 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/build-timeline.test.ts2.0 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/build-timeline.ts3.2 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/draw-board.test.ts5.0 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/draw-board.ts6.5 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/layout-board.test.ts1.9 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/layout-board.ts833 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/tap-flip-board.test.ts987 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/tap-flip-board.ts1.6 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/to-view.test.ts766 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/board/to-view.ts874 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/apps/tap-flip/src/rules/tap-flip-types.ts1.2 KB
- 参考文档tests/fixtures/check-board-files/bad-draw-budget-unasserted/EXPECT.txt73 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/jest.config.js161 B
- 参考文档tests/fixtures/check-board-files/bad-draw-budget-unasserted/package.json525 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/contract/input-intent.ts433 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/geom/board-layout.test.ts3.9 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/geom/board-layout.ts5.9 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/rng/sfc32.ts2.7 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/timeline/particles.test.ts1.2 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/timeline/particles.ts2.2 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/timeline/sample.test.ts3.9 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/timeline/sample.ts4.1 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/game-kit/src/timeline/track.ts1.9 KB
- 其他tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/android/src/main/java/io/applander/e07shell/BoardFontModule.kt904 B
- 其他tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/ios/BoardFontModule.swift681 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/app/use-is-app-active.test.ts1.8 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/app/use-is-app-active.ts657 B
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/config/with-shell.ts121 B
- 其他tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-canvas.test.tsx5.3 KB
- 其他tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-canvas.tsx5.3 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-clock-state.test.ts6.0 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-clock-state.ts6.5 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-clock-traces.test.ts6.5 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-kit.test.ts3.8 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-kit.ts3.0 KB
- 其他tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-layout-probe.android.test.tsx1.7 KB
- 其他tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-layout-probe.test.tsx5.6 KB
- 其他tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-layout-probe.tsx5.9 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-number-font.ts1.2 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-number-typeface.android.test.ts2.0 KB
- 脚本tests/fixtures/check-board-files/bad-draw-budget-unasserted/packages/shell/src/game-host/board-number-typeface.test.ts2.8 KB
03 SKILL.md 正文
Board rendering with Skia
Every Pocket Arcade board is one Skia <Canvas> whose single <Picture> is recorded on the UI thread from the game's pure draw(), animated by a timeline that a self-stopping frame clock plays, and proven by unit tests, a draw-call budget and pixel goldens. This skill builds the Shell's board host once and each game's board after it, and its scripts prove the result.
Rules that must hold
- One
<Canvas>per board with one<Picture>recorded inuseDerivedValuefrom the game'sdraw(). Why: dynamic boards are Skia's immediate-mode case; one picture per frame keeps cost predictable. Atlas only for hundreds of identical sprites, retained nodes only for static art. draw(canvas, frame)is a pure worklet in a'worklet'file: it reads onlyframe(view,fx,highlight,colors,layout,kit), imports Skia types only, allocates no Skia objects, reads no clock or random source. Why: the same function then renders on device, in Jest goldens and in Node with identical pixels.- Push ONE
sceneshared value per committed move (makeScene(seq, view, tracks),startAt: NOT_STARTED); the frame callback stampsstartAt = info.timestampon its first frame. Never usetimeSinceFirstFrame. Why: Reanimated resets it to 0 on every re-activation, which froze every animation after the first (verified). - The frame callback runs only while something moves and its body is one call into
runBoardFrame, which holds thetry/catch. Why: an idle board must cost nothing, an uncaught UI-thread error kills the app, and React Compiler bails out of hooks with value blocks insidetry/catch. - Save before animating; a new move fast-forwards. The session applies and saves, then
presentMovecancels old cues, pushes the final view and schedules new cues. Why: killing the app mid-animation must lose nothing; the view is always the final state. buildTimeline(events, motion)is pure and honours'reduced': half durations, no particles or shake, no overshoot. Why: reduce motion is a spec requirement and is testable as data.- An effect layer that is not a tween of something visible (flash, wave, glow, burst, shake) draws only while its track plays by linear time (game-kit
playingEntry, orplayingAtfor a layer that walks its channel's keys), never by the eased progress. Why: a sample holds a track'sfromvalues before it starts, so an unguarded effect shows at full strength at moment 0; and anout-backtrack's eased progress passes 1 early, so aprogress < 1guard cuts the effect off in its overshoot. - Selection and hints are UI state the host passes as
highlight(BoardHighlight,EMPTY_HIGHLIGHT), and the drag ghost sits exactly on the hovered cell. The gesture layer applies the board'sdragLiftPtonce; draw adds no offset. Why: game state, bots and undo never see a selection, and the ghost cell must be the placed cell. BoardLayoutis a pure worklet of the actual canvas size and is shared by draw and hit-testing. Why: iPad, landscape and resizable windows need no special case, and draw and touch cannot drift.- Boards never pixel-flip. A game that opts in (
isMirroredInRtl) mirrors positions inBoardLayout. Why:scaleX(-1)mirrors letters and digits. - Digits are localised in
toView()and drawn withdrawText(drawFittedTextin a small shape); Arabic-script words use a cached SkiaParagraph; widths come from glyph widths; the face is made from the bundled TTF's bytes (boardNumberTypeface()), asked ofSkia.FontMgr.System()only as iOS's fallback. Why:drawTextdoes no shaping,measureTextis unimplemented in CanvasKit (Jest, Node), and Android's Skia font manager cannot see the app's fonts: it drew every monster digit blank (2026-10-18). - Paths are built once with
Skia.PathBuilderat unit size and placed withcanvas.translate/scale. Why: the mutableSkPathAPI is deprecated in Skia 2.6 and allocates. - Stop everything when the board may not run, and switch the clock only through
board-clock-state.useGameLifecycle(app active AND screen focused AND no full-screen ad) stops the clock, cancels cues and suspends audio; a scene pushed while the board may not run is held until it may; every resume records at least one frame; a done message names its run, and JS never reads the scene shared value back. Why: background, ads and blur must not keep a display link or sounds alive, and a stale done read throughscene.get()froze the board after every rewarded continue (cause class A, traced on the simulator 2026-10-01). ios.infoPlist.CADisableMinimumFrameDurationOnPhone = trueinwithShell. Why: without it iOS caps third-party apps at 60 fps on ProMotion phones. Android needs no flag: it gives the app the display's rate, and the board code is the same there ("Android" in the architecture reference).- The canvas is one accessible image:
accessibilityRole="image",accessibilityLabel=t()ofboard.describe(view). Why: Skia content is invisible to VoiceOver and labels must be translated. - Every board is proven three ways: pure unit tests (timeline, clock, layout), a draw-call budget test that also asserts every localised label, and pixel goldens at 3 sizes × moments 0, 0.5, 1 with 0.1 % tolerance. Why: a two-digit label is below the golden tolerance, so pixels alone miss it; goldens catch what assertions forget.
- Draw-call budget per game on the busiest frame, never above 1,000. Why: counting canvas calls is the headless stand-in for GPU cost; a higher number needs an on-device frame report.
Workflow
- Classify the board. Read references/architecture.md: turn-based (this skill end to end), simulate-then-replay (the volley comes from
realtime-game-loop; the board, timeline and goldens are this skill's) or real-time (the loop, the arena draw test and its goldens come fromrealtime-game-loop; palettes and the drawing rules still come from here). A playable board also needs the input side: loadboard-gestures-and-inputin the same session. - Check the host. Read "Prerequisites in the app repo" in references/architecture.md: the host has a pure/golden stage (game-kit, the audio and haptics ports and fakes, the gesture kit, RNTL 14.0.1 with test-renderer 1.2.0) and a Shell stage (S5:
AppText,renderWithShell), each prerequisite with its owner skill. From the repo root runnode ${CLAUDE_SKILL_DIR}/scripts/check-board-files.mjs .; on a repo with no host or board folder yet it lists every file to copy. For everyhost-file-missingcopy the file fromtemplates/(mapping:templates/game-kit/X→packages/game-kit/src/X,templates/shell/game-host/X→packages/shell/src/game-host/X,templates/shell/app/X→packages/shell/src/app/X,templates/tooling/quality/X→packages/tooling/src/quality/X,templates/test/goldens/boards/skia-golden.ts→ same path,templates/shell/native/ios/X→packages/shell/ios/Xandtemplates/shell/native/android/X→packages/shell/android/src/main/java/io/applander/e07shell/X, theBoardFontmodule, registered inpackages/shell/expo-module.config.jsonas drawing.md's "Fonts on device" says). These files are copied verbatim (no placeholders). pocket-arcade-index copies the host at Shell step 7 (packages/shell/src/game-host/**withboard-clock-state.tsand its two tests,packages/game-kit/src/timeline/**,packages/tooling/src/quality/**,test/goldens/boards/**) and Line Siege'sbuild-timeline*,board-ids*andmonster-tracks.tsat Shell step 3; no host file is needed before its step. Ahost-import-unresolvedline names the prerequisite and its owner skill: build it first. In a game-first repo (shell-slice.jsonwithoutS5, or"screens": []) the Shell-stage files printSKIP(a pass) until the Shell step. Fixjest-golden-projectandplist-120hzas the messages say. - Read before writing the game's board: references/timeline-and-clock.md for
buildTimelineand the clock, references/drawing.md fordraw(), kit, palettes, layout, text and Toybox framing, references/api-traps.md for worklet rules and API traps. Imitate examples/line-siege/ (the verified pilot board, with its reviewed goldens). - Copy the game templates from
templates/game/board/toapps/<game-id>/src/board/andtemplates/test/goldens/boards/__GAME_ID__-board.golden.test.tstotest/goldens/boards/<game-id>-board.golden.test.ts. Replace__GAME_ID__(kebab,line-siege),__GAME_PASCAL__(LineSiege) and__GAME_CAMEL__(lineSiege) in file names and contents. The templates draw the Tap Flip template game, so they compile as is againstgame-rules-engine's rules templates (andboard-gestures-and-input's input template); then adapt the view, events, layers,board-palettes.jsonandboard-contrast.jsonto the game ("The rules shape the templates assume" indrawing.md), imitating Line Siege. - Build test-first, in this order: palettes and
board-contrast.json→to-view.ts→build-timeline.tswith its test (budget, reduced motion, cues) →layout-board.tswith its any-size test (and room below the last row for adragLiftPt) →draw-board.tswith the draw-call budget, moment-0, highlight and label tests →<game-id>-board.ts(isMirroredInRtl,describekey in the game's four catalogs,dragLiftPtandtargetsOfMovewhen the game drags or hints). Runnpx jest apps/<game-id>/src/board --ci --selectProjects unit --coverage --collectCoverageFrom='apps/<game-id>/src/board/**/*.ts' --coverageThreshold='{}'after each step (paths first:--selectProjectswould swallow them as project names; onlynpm run test:coveragejudges the thresholds). - Lint, format and type-check the new files:
npx eslint --fix apps/<game-id>/src/board test/goldens/boardsandnpx prettier --writeon them (import order and line wrapping depend on the game id), thennpx tsc -p apps/<game-id> --noEmitandnpx tsc -p tsconfig.json --noEmit. - Create the pixel goldens deliberately (references/testing-and-goldens.md):
npx jest test/goldens/boards/<game-id>-board.golden.test.ts --selectProjects golden -u, open all 9 PNGs with the Read tool and compare them with the intended look (moment 0 shows no effect that starts later; 0.5 mid-flight; 1 the final view), thenCI=1 npx jest --ci --selectProjects golden. Commit baselines with aGate-Change:trailer. - Run the checks:
node ${CLAUDE_SKILL_DIR}/scripts/check-board-code.mjs .andnode ${CLAUDE_SKILL_DIR}/scripts/check-board-files.mjs . --game <game-id>. Fix everyFAILline (each names the file, the rule and the fix) and rerun until both printRESULT: PASS. - Look at it for real. Build the app in Release for the iOS simulator, play a move in each of the four languages, and screenshot the board. The S5 screen's Shell parts (top bar, margins 4/14/40 around the board) are compared with the Toybox design screenshot by
toybox-visual-parity, with the board area masked because the mockup only draws a placeholder there; the board's own pixels are proven by the goldens. The simulator caps at 60 fps; the owner confirms 120 Hz and the hitch rate on a ProMotion phone with the debug frame-time recorder.
Definition of done
- [ ] The host files exist in
packages/shell/src/game-host,packages/game-kit/src/{timeline,geom},packages/tooling/src/quality(worklet boundary) andtest/goldens/boards/skia-golden.ts, andboard-scene.test.ts,check-worklet-boundary.test.tsandworklet-transform.test.tspass. - [ ] The game's board folder has palettes (4 sets, identical keys) with
board-contrast.json,to-view.ts,build-timeline.ts,layout-board.ts,draw-board.ts,<game-id>-board.ts, and their tests pass innpx jest apps/<game-id>/src/board --ci --selectProjects unit --coverage --collectCoverageFrom='apps/<game-id>/src/board/**/*.ts' --coverageThreshold='{}'. - [ ] Moment 0 draws no effect that starts later (a draw test and the moment-0 goldens), the host
highlightis drawn, and a board with a drag lift draws its ghost on the placed cell. - [ ] The busiest frame stays within the game's draw-call budget (≤ 1,000) and every localised label is asserted through the recording canvas.
- [ ] 9 golden PNGs (3 sizes × 0, 0.5, 1) exist, were looked at, and
CI=1 npx jest --ci --selectProjects goldenpasses. - [ ]
npx tsc --noEmit(app and root programs) andnpx eslint --max-warnings 0pass on the new files; no__GAME_…__placeholder is left. - [ ] Reduced motion removes particles, shake and overshoot; the canvas has a translated
accessibilityLabel; the board runs only while app active, focused and no ad. - [ ]
npx jest packages/shell/src/game-host/board-clock --ci --selectProjects unitpasses:board-clock-state.test.ts(push while paused, resume after done, stale done) andboard-clock-traces.test.ts(the two device traces: the round-4 hook freezes the rewarded continue,board-clock-statedoes not). - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-board-code.mjs .printsRESULT: PASS. - [ ]
node ${CLAUDE_SKILL_DIR}/scripts/check-board-files.mjs . --game <game-id>printsRESULT: PASS
Anti-patterns
- Animating with
timeSinceFirstFrameor at0stored on JS. The second move freezes. StampstartAtfrominfo.timestampin the frame runner. - Creating
Skia.Paint(),Skia.Color()or paths insidedraw()or at module import. Native allocations every frame, and module scope breaks tests. Build once in the kit (makeBoardKit,buildPaths); one recorder per canvas viauseState. - Putting per-frame data in React state or re-rendering the HUD per frame. A 120 Hz frame is 8.3 ms. Positions live in shared values and the picture; React renders on events.
- Storing only "the change" in the view and reading old state in
draw(). The view is the final state; anything that vanishes carries its own position in a track. - A frame callback that keeps running on an idle board, in the background or under an ad. Stop on
onDone(run, seq)throughfinishRunand throughuseGameLifecycle. - Guarding
onDonewithscene.get().seqon the JS thread. Until the UI applies a push, the JS read returns the old scene, so the done of the scene before a continue stops the continue on its first frame (the frozen board after a rewarded ad). Compare runs inboard-clock-state. - Starting the clock for a scene pushed while an ad or another screen covers the board. Its animation plays where nobody sees it;
pushSceneholds it until the board may run. - Reading
useReducedMotion()in the board. Reanimated reads it once at app start, so a later change is missed; the Shell's Reduce motion setting arrives asmotion. - Flipping the board with
scaleX: -1for RTL. Mirror positions inBoardLayoutinstead. isRtl && TextDirection.RTL. RTL is 0; choose explicitly.- Raising the golden tolerance or re-running
-uwithout opening the PNGs. Fix the code or accept a deliberate change with aGate-Change:trailer. - Calling a plain JS helper from
draw()orlayout(). It throws on the UI thread at runtime only; move the helper into a'worklet'module (the template'sboard-ids.ts). - Asserting small text through pixels. Use the recording canvas; 0.1 % tolerance cannot see a missing number.
- Drawing a flash or wave whenever its entry exists. It shows at full strength at moment 0; read it through
playingEntry(linear time), neverprogress < 1. - Offsetting the ghost in
draw()(row - 1). The block lands elsewhere and an edge row becomes unreachable; setdragLiftPton the board and let the gesture layer lift the pointer. - Keeping a selection or hint in game state. Bots, par and undo would see it; the host passes it as
highlight.
Files in this skill
| File | What it is | Read/run when |
|---|---|---|
| references/architecture.md | Why no engine, data flow, file map with owners, GameBoard contract, board kinds, prerequisites, Android | Workflow step 1, before any board work |
| references/timeline-and-clock.md | Tracks, sampling, buildTimeline, the startAt clock fix, board-clock-state, the rewarded-continue freeze (cause, both device traces, fix), presenter, cues, lifecycle, the board-clock trace and game.board-frame, 120 Hz |
Step 3, before writing a timeline or touching the clock |
| references/drawing.md | draw() rules, kit, palettes, paths, layout, RTL, text and fonts, particles, Atlas, performance, Toybox framing, a11y |
Step 3, before writing draw, layout, view or palettes |
| references/testing-and-goldens.md | Test levels, draw-call budget, pixel goldens set-up and acceptance, failures, headless previews | Step 7, and whenever a golden fails |
| references/api-traps.md | Worklet rules and the SDK 57 API churn table, re-verify list | Step 3, and when something works in Jest but not on device |
templates/game-kit/ |
timeline/track.ts, sample.ts (+ test), particles.ts (+ test), geom/board-layout.ts (+ property test) |
Step 2 (copy verbatim to packages/game-kit/src/) |
templates/shell/game-host/ |
Board host: types (BoardHighlight, EMPTY_HIGHLIGHT, GameBoard with dragLiftPt, targetsOfMove and targetRect), kit with setPaintColor, a token at an alpha (+ test), scene clock (+ test), the clock's decisions board-clock-state.ts (+ test, + board-clock-traces.test.ts replaying the two device traces), frame runner with the test-build trace sampling (+ test), clock hook (+ a test of its JS driver) and PNG painter (both with a device-only line naming the simulator check or the goldens that cover them), recorder (+ test), text with drawFittedText (+ test), error text (+ test), canvas (+ test), presenter (+ test), cue scheduler (+ test), host with its highlight prop (+ test), lifecycle (+ test), the test-build layout probe for Maestro and parity board masks, clipped to the board frame, with Maestro's tapScale on Android and the game.board-frame {seq, settled} probe (+ test, + board-layout-probe.android.test.tsx), the tutorial's pointing hand draw-coach-hand.ts (+ test) and its own picture layer coach-hand-layer.tsx, the digits face from the bundled TTF board-number-typeface.ts with iOS's font-manager fallback (+ board-number-typeface.test.ts, board-number-typeface.android.test.ts, on the shared Android Skia fake testing/android-skia.ts) and its device reader board-number-font.ts |
Step 2 (copy verbatim to packages/shell/src/game-host/) |
templates/shell/native/ |
The BoardFont Expo module (ios/BoardFontModule.swift, android/BoardFontModule.kt): readFontBytes(fileName) returns a font the expo-font plugin bundled |
Step 2 (copy to packages/shell/ios/ and packages/shell/android/src/main/java/io/applander/e07shell/, register both) |
templates/shell/app/ |
use-is-app-active.ts (foreground check) and its test, synced from the library (the one shared copy, also shipped by game-audio-and-haptics) |
Step 2 |
templates/tooling/quality/ |
check-worklet-boundary.ts (+ test) and worklet-transform.test.ts: the npm test gate for 'worklet' modules |
Step 2 (copy verbatim to packages/tooling/src/quality/) |
templates/game/board/ |
The Tap Flip template board with __GAME_ID__ placeholders: palettes and board-contrast.json, ids, view, timeline (cells-flipped), layout, draw (edged lit cells, glow, burst, bonus label, hinted rings), board object and their tests |
Step 4 |
templates/test/goldens/boards/ |
skia-golden.ts matcher and the __GAME_ID__-board.golden.test.ts pixel golden |
Steps 2 and 4 |
| examples/line-siege/ | Line Siege v1's board, synced from the library's canonical copy (board/: lanes band, wall and hearts, board, tray, three monster kinds with shape cues, beam, shock and burst tracks, breaches, drawFittedText health, the selected-slot ring and hinted move, the drag lift, palettes and board-contrast.json, with tests; rules/ types, tuning and pieces), its golden tests with their shared font reader (golden-font.ts, copied next to skia-golden.ts) and the reviewed golden PNGs |
Step 3, as the model to imitate |
scripts/check-board-code.mjs |
Checks worklets, frame clock (clock-runnable: push, stop, resume and done through board-clock-state), worklets API, pure draw, Skia API, fonts (font-system-manager: never the system font manager), token alpha (token-alpha: setPaintColor, never setAlphaf over a token), canvas, a11y, lifecycle, reduced-motion source |
Step 8 and at the end |
scripts/check-board-files.mjs |
Checks host files, the layout probe staying inside the board frame, board files, palettes, timeline and draw tests, goldens and baselines, 120 Hz, Jest golden project | Steps 2 and 8 and at the end |
scripts/selftest.mjs |
Proves both checkers pass good fixtures and catch each planted bug, and that the worklet boundary template requires the directive wherever check-board-code.mjs does |
After changing a checker |
scripts/lib/ |
source-scan.mjs, the TypeScript source helpers the checkers share |
When changing a checker |
scripts/check-lib.mjs |
Shared script helper, synced from the library (do not edit here) | Never by hand |
assets/shared.json |
Declares the shared files this skill copies in | When adding a shared file |
tests/build-fixtures.mjs |
Rebuilds the good fixtures from the templates (the composed Tap Flip set) and every check-board-files bad case; --check proves the good fixtures still equal the templates (the self-test runs it first) |
After changing a template or a checker, before the self-test |
tests/fixture-base/ |
What the templates do not ship: stand-ins for files other skills own (AppText, renderWithShell, the ports, the gesture kit, the Tap Flip rules types), package.json, the Expo config, a real-time board, and the 9 reviewed Tap Flip golden baselines |
When changing the fixture builder |
tests/fixtures/ |
Good and planted-bad inputs for both checkers (built by tests/build-fixtures.mjs, except check-board-code's small bad trees) |
When adding a rule to a checker |
Related skills
board-gestures-and-input- touch on the board:useBoardGestures, hit-testing, swipes, intents to moves (load with this skill for any playable board).realtime-game-loop- fixed-step loops, simulate-then-replay and the geometry kit for Bank Shot and Halo Drift.game-rules-engine- the GameModule contract, events and the seeded PRNG the board draws from.game-host-integration- the Game screen around the board: HUD, pause, results, save points.game-audio-and-haptics- the sound and haptic ports that timeline cues call.code-drawn-art-and-icons- sprite pre-rendering, app icon and store art from the same draw code.golden-tests- the golden policy,jest -urules and theGate-Change:trailer.toybox-visual-parity- comparing the Game screen's Shell parts with the Toybox design screenshot.performance-budgets- the frame-time recorder and on-device budgets.accessibility- palette contrast, colour-blind checks and VoiceOver summaries.
04 同仓库更多 Skills
unit-and-component-tests
Sets up Jest and writes Pocket Arcade test code - three projects, RNTL 14 async via renderWithShell, root SDK mocks, fakes, fast-check, coverage, Stryker. Use when a test needs the Shell wrapper, a mock or a fake, or Jest fails. Not for the red-green loop (tdd-workflow) or goldens (golden-tests).
typescript-and-lint-rules
Enforces Pocket Arcade's strict TypeScript 6 tsconfigs, ESLint 9 flat config, Prettier and size limits. Use when writing or splitting .ts/.tsx or fixing a tsc or lint error. Not for gate wiring (quality-gates), names (naming-conventions) or import zones (architecture-and-boundaries).
demo-skill
Builds a demo. Use when testing the pitfall checker.
demo-skill
Builds a demo. Use when testing the pitfall checker.
troubleshooting-playbook
Diagnoses and fixes Pocket Arcade failures with a catalogue of 300+ known ones (symptom, cause, fix). Use when something errors, crashes, hangs or renders wrong, or an error or log needs explaining. Not for gate setup (quality-gates) or running builds (ios-simulator-build, ios-release-testflight).
toybox-visual-parity
Proves a built Pocket Arcade screen matches its Toybox design screenshot (light/dark, en/fa) and drives the fixes: capture, element gates, sheets, sign-off. Use when any screen is built or changed, or for visual parity, design match, screenshot compare. Not for building screens (toybox-screens).