[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F2KFKTY4XCR8ZK5BY8YJ8Z":3,"skill-same:01M7F2KFKTY4XCR8ZK5BY8YJ8Z":335},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":32,"updatedAt":33,"install":34,"resources":47},"01M7F2KFKTY4XCR8ZK5BY8YJ8Z","realtime-game-loop",null,"Runs real-time play: a fixed-step UI-thread loop, typed-array sims, (tick, command) replays, replayable physics. Use when adding live motion, bouncing balls, a physics shot or a replay test. Not for turn animations (skia-canvas-rendering).","zakariaf\u002FReactNative-Skills","zakariaf","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2259803?v=4","01M7DEF0YMPS6Y6RQ4WGA0JH9R","Zakaria Fatahi","01M7F1VKYEK96M7SYJE1EPGD0A",13,"MIT","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: realtime-game-loop\ndescription: \"Runs real-time play: a fixed-step UI-thread loop, typed-array sims, (tick, command) replays, replayable physics. Use when adding live motion, bouncing balls, a physics shot or a replay test. Not for turn animations (skia-canvas-rendering).\"\n---\n\n# Real-time game loop\n\nReal-time play advances in fixed ticks of 1\u002F120 s, never in frame time. A real-time game runs a\ntyped-array sim on the UI thread inside a Reanimated frame callback; a turn-based game with a continuous\nphase (a ricochet shot, a cascade) runs that phase inside its pure reducer and replays it as a timeline.\nEither way a recorded run replays bit-exactly in Jest, on iOS and on Android. This skill ships the\nloop kit (`src\u002Fcore\u002Frealtime\u002F`, `src\u002Fcore\u002Fgeom\u002F`), the real-time host (`src\u002Fcanvas\u002Frealtime\u002F`), a\ntemplate game (a bouncing-orbs arena) and a checker that proves them.\n\n## Rules that must hold\n\n1. **Simulate in fixed steps of `STEP_MS = 1000 \u002F 120` with a 250 ms catch-up clamp; the first frame\n   after (re)activation simulates nothing.** Why: results depend on ticks, never on 60, 90 or 120 Hz or\n   frame timing, and a resumed sim never jumps.\n2. **Gameplay counts ticks, never milliseconds:** speeds are per tick, timers are tick counts, the sim\n   never sees a timestamp. Why: tick counts are exact integers on every device.\n3. **Sim state is one plain object of typed arrays in ONE shared value, mutated in place on the UI\n   thread, then `sim.modify()`.** Why: no per-frame copies or allocations, and in-place mutation does not\n   notify the picture by itself.\n4. **A tick allocates nothing:** buffers (entities, events, RNG words, spatial-hash scratch) are created\n   once; a full event queue drops edge and hit events but keeps reserved slots so input, save-point and\n   run-end events never drop; `step…` and every helper it reaches do scalar maths on the typed arrays\n   (`vec2`\u002F`sweep` return new objects and belong to the JS thread). One documented exception: an\n   occasional sfc32 draw through a `nextU32` wrapper; per-entity, per-tick randomness uses `hashU32`.\n   Why: the loop may run 30 ticks in one frame on the UI thread, garbage collection there is a visible\n   hitch, and a lost input breaks the replay.\n5. **Sims, the UI-thread kit and real-time draw files are `'worklet'` modules that import values only\n   from other `'worklet'` modules.** Why: a plain function called on the UI thread throws at runtime,\n   not at build time.\n6. **Sims, the kit and simulate-then-replay rules obey the determinism policy:** only `+ - * \u002F %`,\n   bitwise, `Math.sqrt\u002Fimul\u002Ffloor\u002Fround\u002Fabs\u002Fmin\u002Fmax\u002FPI`; no `**`, other `Math.*`, `Math.random`, `Date`,\n   `performance.now`, `Intl`; randomness from the sim's own sfc32 words. Why: Hermes computes\n   transcendental functions with each platform's libm and Jest uses V8, so replays would diverge\n   between an iPhone, an Android phone and CI.\n7. **Input is an integer command recorded as `(tick, command)`,** from the committed 16-direction table\n   (1 right, 5 down, 9 left, 13 up; 0 idle), identical to the stick gesture's table. Why: only integer\n   logs replay bit-exactly.\n8. **The sim never talks to JS or the app:** it appends `[kind, value, tick]` events; `runLoopFrame`\n   drains them once per frame and sends one batch with `scheduleOnRN`; a sim imports nothing from React,\n   React Native, Expo, Skia or the app's layers. Why: one crossing per frame, and the sim stays\n   testable in plain Jest and reusable by headless bots.\n9. **The frame-callback body is one call to `runLoopFrame`, which holds the `try\u002Fcatch`;** errors stop\n   the loop and pause the game. Why: an uncaught UI-thread exception kills the app, and React Compiler\n   bails out of hooks with value blocks inside `try\u002Fcatch`.\n10. **The loop runs only while the surface may run** (app active, screen focused, not covered, not\n    paused, not ended) through `useCanvasLifecycle`; stopping takes a save point and shows the pause UI;\n    real-time games never auto-resume, and resume resets the accumulator. Why: no simulation in the\n    background or under an interstitial, and a killed app loses at most the current wave.\n11. **Every sim has a replay test and a frame-grouping test.** Why: they are the proof of determinism;\n    saves, bots and bug reports all depend on it.\n12. **A real-time game exposes a `RealtimeSpec` (createSim, step, drainEvents, snapshot, savePoints,\n    isSavePoint) with a tested snapshot round trip, and is saved only at save points.** Why: the host and\n    the save path need one contract, a save must restore exactly, and a frame is too short for a write.\n13. **Simulate-then-replay games run the continuous phase inside the pure reducer with the same fixed\n    step, capped by `maxTicks`, and return timed events (`atMs`).** Why: the game stays turn-based for\n    saves, undo, bots and goldens; only the picture moves in real time, and a volley always ends.\n14. **A real-time surface is proven like every canvas:** a draw-call budget test with every entity slot\n    in play (≤ 1,000), bodies inside the canvas at 3 sizes, and pixel goldens through `paintSimPng` at\n    3 sizes × moments 0, 0.5, 1 of a scripted run (9 baselines). Why: the loop's tests prove the numbers,\n    not the picture.\n15. **No physics engine:** swept circles, `reflect` and the spatial hash; `planck` on the JS thread is the\n    documented fallback only for stacking, joints or friction. Why: engines bring non-deterministic\n    floats and a second runtime.\n16. **Every import of the kit, host, sims and draw files resolves; prerequisites come from their owner\n    skills.** Why: a half-copied kit fails at runtime on one screen; the checker names who creates the\n    missing file.\n\n## Workflow\n\n1. **Classify the game.** Real-time (an arena chase): read [references\u002Ffixed-step-loop.md](references\u002Ffixed-step-loop.md)\n   and [references\u002Fsim-design.md](references\u002Fsim-design.md). A continuous phase inside a turn (a shot, a\n   drop, a cascade): read [references\u002Fsimulate-then-replay.md](references\u002Fsimulate-then-replay.md).\n   Geometry: [references\u002Fgeom-kit.md](references\u002Fgeom-kit.md). Turn-based only: this skill does not apply\n   (game-rules-engine, skia-canvas-rendering).\n2. **Check prerequisites.** The templates import `@\u002Fcore\u002Frng\u002Fsfc32` (seeded-determinism-and-golden-vectors;\n   a synced copy ships in `templates\u002Fsrc\u002Fcore\u002Frng\u002F`), the canvas kit's `draw-kit`, `describe-error`,\n   `use-canvas-lifecycle` and `test\u002Fgoldens\u002Fskia-golden.ts` (skia-canvas-rendering, golden-and-snapshot-tests;\n   canonical `canvas-types`, `canvas-layout` and `timeline\u002F` copies ship in `templates\u002Fsrc\u002Fcanvas\u002F`),\n   `@\u002Fhooks\u002Fuse-is-app-active` (react-components-and-hooks), and fast-check pinned exactly.\n3. **Copy the kit.** Run `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-realtime-loop.mjs .` from the repo root.\n   For every `loop-file-missing` copy the file verbatim from `templates\u002F` to the path its first line names\n   (`templates\u002Fsrc\u002Fcore\u002F**`, `templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002F**`, tests included). Fix every\n   `loop-import-unresolved` with the skill it names.\n4. **Real-time game, test-first:** copy `templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002F` to `src\u002Fgames\u002F\u003Cgame-id>\u002F`,\n   replacing `__GAME_ID__` (kebab), `__GAME_PASCAL__` and `__GAME_CONST__` (UPPER_SNAKE) in names and\n   contents. Run the replay, frame-grouping and round-trip tests, then replace the gameplay slot\n   (`moveEntity`) with the game's rules, keeping every test green after each change. Add event kinds as\n   exported integer constants. Imitate [examples\u002Farena-chase\u002F](examples\u002Farena-chase\u002F).\n5. **Its surface and proof:** adapt `canvas\u002F` (palettes with `canvas-contrast.json`, `draw-arena.ts`, the\n   budget test; skia-canvas-rendering's palette and contrast rules apply) and copy\n   `templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__GAME_ID__-arena.golden.test.ts`. Create the baselines deliberately:\n   `npx jest test\u002Fgoldens\u002Fcanvas\u002F\u003Cgame-id>-arena.golden.test.ts --selectProjects golden -u`, open all 9\n   PNGs (bodies inside the canvas, nothing clipped at `small`), then `CI=1 npx jest --ci --selectProjects golden`;\n   commit the baselines with a `Gate-Change:` trailer (golden-and-snapshot-tests).\n6. **Wire the board into the host** (game-session-host owns the Game screen, the run store and the\n   writes): the game's `Surface` receives `GameSurfaceProps` and renders `RealtimeCanvasHost` with\n   `initialSim={realtime.createSim(props.state)}`, `game={realtime}`, `draw`, `colors` and `kit`\n   (makeCanvasColors, makeDrawKit), `makeGesture={makeStickGesture}`, `onEvents` (sounds, HUD,\n   statistics, input log), `isSavePoint={realtime.isSavePoint}`, `onSavePoint={(copy) =>\n   props.onSavePoint(realtime.snapshot(copy), inputLog)}` (every save point and one final one at the\n   run's end), `isEnded={props.isEnded}`, `isPaused={!props.isInputEnabled && !props.isEnded}`,\n   `onAutoPause` (a no-op inside a hosted Surface: the Game screen already pauses on background, blur\n   and full-screen ads), `isFocused` (`useIsFocused()` from expo-router; React Navigation 7:\n   `@react-navigation\u002Fnative`), `isInterrupted`, `onFailure`, a translated label, and in measurement\n   builds `onFrameTime` (performance-budgets' `sampleFrame` worklet). Keep `game` a module\n   constant; the host keeps the JS callbacks behind stable trampolines. Join the spec to\n   the module: `GameModule\u003C…> & { realtime }` with `savePolicy: { kind: 'save-points', points }`.\n7. **Simulate-then-replay game:** imitate [examples\u002Fricochet-volley\u002F](examples\u002Fricochet-volley\u002F): a pure\n   `simulate…` function in `src\u002Fgames\u002F\u003Cgame-id>\u002Frules\u002F` called by `applyMove`, events with\n   `atMs: tickToMs(tick)`, a `maxTicks` cap, a tracks builder in the surface folder, and the property tests.\n8. **Lint, format, type-check and test:** `npx eslint --fix src\u002Fgames\u002F\u003Cgame-id> src\u002Fcore\u002Frealtime src\u002Fcore\u002Fgeom src\u002Fcanvas\u002Frealtime`,\n   `npx prettier --write` on them, `npm run typecheck`, then\n   `npx jest src\u002Fgames\u002F\u003Cgame-id> src\u002Fcore\u002Frealtime src\u002Fcore\u002Fgeom src\u002Fcanvas\u002Frealtime --ci --selectProjects unit`\n   (paths first: `--selectProjects` takes several values and would swallow them).\n9. **Run the check** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-realtime-loop.mjs .`; fix every `FAIL` line\n   (file, rule, fix) and rerun until `RESULT: PASS`. Options, config keys and every rule:\n   [references\u002Fchecker.md](references\u002Fchecker.md).\n10. **Play it for real.** The host is unit-tested with Skia inert and the loop mocked; it has not run on\n    an Android device yet. On the first real-time game, run a Release build on a named iOS simulator\n    (ios-simulator-build) and a named Android emulator (android-emulator-build): the picture updates\n    every frame, pause, background and Android back stop the loop, resume starts clean. Then a human\n    plays at least 60 s on a 120 Hz phone of each platform with the frame-time recorder passed as the\n    host's `onFrameTime` (hitch rate ≤ 10 ms\u002Fs, performance-budgets) and judges the feel.\n\n## Definition of done\n\n- [ ] The kit exists with its tests: `src\u002Fcore\u002Frealtime\u002F{fixed-step,replay-commands,realtime-spec}.ts`,\n      `src\u002Fcore\u002Fgeom\u002F{vec2,sweep,spatial-hash}.ts`; for a real-time game also `src\u002Fcanvas\u002Frealtime\u002F`\n      (`run-loop-frame`, `use-fixed-step-loop`, `record-sim`, `paint-sim-png`, `realtime-canvas-host`).\n- [ ] Each sim is a `'worklet'` module of typed arrays that allocates nothing per tick, counts ticks,\n      records `(tick, command)`, drains `[kind, value, tick]` events, and its replay and frame-grouping\n      tests pass; its `RealtimeSpec` round-trip test passes.\n- [ ] Each real-time surface has light and dark palettes with `canvas-contrast.json`, a `'worklet'`\n      draw, a draw-call budget test (≤ 1,000) and 9 reviewed golden PNGs that pass under\n      `CI=1 npx jest --ci --selectProjects golden`.\n- [ ] Each simulate-then-replay phase is pure, capped by `maxTicks`, emits `atMs` events, and its\n      properties (inside the arena, never faster, deterministic, tracks replay the path) pass.\n- [ ] The host stops the loop, saves and shows the pause UI on pause, background, blur and\n      interruptions, and never auto-resumes.\n- [ ] `npm run typecheck`, `npx eslint --max-warnings 0` and `npx prettier --check` pass on the new\n      files; no `__GAME_…__` placeholder is left.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-realtime-loop.mjs .` prints `RESULT: PASS`\n\nThe checker prints no SKIP lines. It prints `NOT APPLICABLE: no real-time code: …` (a pass) in an app\nwhose games are all turn-based, and stops with exit 2 in a folder without `package.json`.\n\n## Anti-patterns\n\n- **Moving entities by `dt` in milliseconds** (`x += speed * dt`). Frame timing leaks into gameplay and\n  replays diverge; move per tick inside `step`.\n- **Keeping the world in React state or copying it to JS every frame.** Keep it in the shared value; JS\n  gets batched events and a copy only at save points.\n- **Angles and `Math.atan2`\u002F`Math.cos` in the sim.** Use committed unit-vector tables, dot products and\n  `reflect`.\n- **Calling `scheduleOnRN` from inside the sim, or once per event.** Queue events in the sim; the runner\n  sends one batch per frame.\n- **Growing arrays per tick** (`events.push` on a JS array, `new Float32Array`, `.map`). Pre-allocate\n  and write in place.\n- **A module-level `let` or array in a sim file** (a counter, a hit log). The UI thread works on its own\n  captured copy, and saves and replays never see it; keep every changing value in the typed arrays.\n- **Passing a stride-4 `body` array to the spatial hash** (it expects stride 2). Wrong cells, no error.\n- **Auto-resuming a real-time game** when the app returns to the foreground or an interstitial closes.\n  The player expects the pause UI; resume only on their tap.\n- **Running a volley live in the frame loop instead of inside `applyMove`.** It breaks saves, undo, bots\n  and goldens; simulate first, then replay the events.\n- **A second frame callback for measurements.** The frame-time recorder goes in through the host's\n  `onFrameTime` and is sampled as the first statement of `runLoopFrame`'s `try`; an extra callback keeps\n  idle screens rendering.\n- **Saving every frame or every tick.** Save at wave ends, pause, background and blur only.\n- **Trusting the simulator or emulator for speed.** The iOS simulator caps at 60 fps and emulators\n  usually render at 60 Hz; judge feel and hitch rate on real 120 Hz phones.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Ffixed-step-loop.md](references\u002Ffixed-step-loop.md) | The accumulator, runner and hook, the real-time host, lifecycle and save points on iOS and Android, sprites, refresh rates, what is verified, multi-package | Workflow step 1 for real-time games, and before touching the loop |\n| [references\u002Fsim-design.md](references\u002Fsim-design.md) | Typed-array state, one tick, events, sfc32 words, the determinism policy, integer commands, replay tests, save points, the RealtimeSpec | Steps 1 and 4 |\n| [references\u002Fsimulate-then-replay.md](references\u002Fsimulate-then-replay.md) | Continuous phases inside `applyMove`: fixed step, timed events, tracks, the collision recipe, discrete runs, tests | Steps 1 and 7 |\n| [references\u002Fgeom-kit.md](references\u002Fgeom-kit.md) | `vec2`, `sweep`, `spatial-hash` APIs and rules for new geometry | Whenever a game needs vectors or collisions |\n| [references\u002Fchecker.md](references\u002Fchecker.md) | The checker's options, config keys, discovery, every rule with its fix, NOT APPLICABLE, troubleshooting | Step 9, when a line is unclear or folders differ |\n| `templates\u002Fsrc\u002Fcore\u002Frealtime\u002F` | `fixed-step.ts`, `replay-commands.ts` (each + test), `realtime-spec.ts` | Step 3 (copy verbatim) |\n| `templates\u002Fsrc\u002Fcore\u002Fgeom\u002F` | `vec2.ts`, `sweep.ts`, `spatial-hash.ts`, each with its test | Step 3 (copy verbatim) |\n| `templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002F` | `run-loop-frame.ts` (+ test), `use-fixed-step-loop.ts`, `record-sim.ts` (+ test), `paint-sim-png.ts`, `realtime-canvas-host.tsx` (+ lifecycle test) | Step 3 (copy verbatim) for a real-time game |\n| `templates\u002Fsrc\u002Fcanvas\u002F` (other files) | `canvas-layout.ts` (+ test), `canvas-types.ts`, `timeline\u002Ftrack.ts`, `timeline\u002Fsample.ts` (+ test): synced canonical copies (skia-canvas-rendering owns them); keep the app's copy | Step 2, only when the app lacks them |\n| `templates\u002Fsrc\u002Fcore\u002Frng\u002F` | `sfc32.ts` and its golden test: synced canonical copy (seeded-determinism-and-golden-vectors owns it) | Step 2, only when the app lacks it |\n| `templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002F` | The template game: `sim\u002F` (sim + replay tests), `\u003Cid>-realtime.ts` (RealtimeSpec + round-trip test), `canvas\u002F` (palettes, contrast pairs, draw, budget test) | Steps 4 and 5 |\n| `templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F` | `__GAME_ID__-arena.golden.test.ts` and its nine reviewed baselines in `__image_snapshots__\u002F` | Step 5 |\n| [examples\u002Farena-chase\u002F](examples\u002Farena-chase\u002F) | A chase sim (player, chasers, hits) with its replay tests: the shape of real gameplay in a sim | Step 4 |\n| [examples\u002Fricochet-volley\u002F](examples\u002Fricochet-volley\u002F) | Simulate-then-replay volley with sweep and reflect, its property tests, and the tracks builder with its test (one piece of the game's surface; skia-canvas-rendering builds the rest) | Step 7 |\n| `scripts\u002Fcheck-realtime-loop.mjs` | The checker (21 rules; references\u002Fchecker.md) | Steps 3 and 9 and at the end |\n| `scripts\u002Fselftest.mjs` | Proves the checker passes the templates and examples and catches each planted bug | After changing the checker, a template or an example |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Synced source helpers (worklet directive, imports, resolution); do not edit here | When changing the checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared script library, synced (do not edit here) | Never by hand |\n| `assets\u002Fshared.json` | Declares the synced files | When adding a shared file |\n| `assets\u002Ftemplate-placeholders.json` | The values the self-test and template verification fill in (`bounce-arena`) | When adding a placeholder |\n| `tests\u002Fbases\u002Fapp\u002F` | The fixture base under the templates: `package.json`, `tsconfig.json` and stand-ins for two canvas kit files | When the fixture base changes |\n| `tests\u002Ffixtures\u002F` | `check-realtime-loop\u002F`: `good\u002F` (templates + ricochet example), one `bad-*` per planted bug, `pass-*` (turn-based app, config folder, installed skills, an RNG draw in the tick, a destructured frame callback with a renamed pause flag) and `error-*` | When adding a rule to the checker |\n\n## Related skills\n\n- `skia-canvas-rendering` - drawing rules, palettes, the canvas kit and lifecycle, turn timelines that replay simulate-then-replay events.\n- `canvas-gestures-and-hit-testing` - the stick gesture that writes integer commands, and aim intents.\n- `game-rules-engine` - `applyMove`, events, the game module and `SavePoint`.\n- `seeded-determinism-and-golden-vectors` - the determinism policy and the sfc32 PRNG.\n- `game-session-host` - the game screen: pause UI, save points, HUD from events, results.\n- `game-balance-and-bots` - thousands of seeded headless runs of the same `step`.\n- `golden-and-snapshot-tests` - the golden policy and accepting baselines.\n- `audio-and-haptics-feedback` - drained events become sounds and haptics on JS.\n- `performance-budgets` - the frame-time recorder and the on-device hitch-rate budget.\n- `ios-simulator-build` and `android-emulator-build` - the Release builds of step 10.\n","# Real-time game loop\n\nReal-time play advances in fixed ticks of 1\u002F120 s, never in frame time. A real-time game runs a\ntyped-array sim on the UI thread inside a Reanimated frame callback; a turn-based game with a continuous\nphase (a ricochet shot, a cascade) runs that phase inside its pure reducer and replays it as a timeline.\nEither way a recorded run replays bit-exactly in Jest, on iOS and on Android. This skill ships the\nloop kit (`src\u002Fcore\u002Frealtime\u002F`, `src\u002Fcore\u002Fgeom\u002F`), the real-time host (`src\u002Fcanvas\u002Frealtime\u002F`), a\ntemplate game (a bouncing-orbs arena) and a checker that proves them.\n\n## Rules that must hold\n\n1. **Simulate in fixed steps of `STEP_MS = 1000 \u002F 120` with a 250 ms catch-up clamp; the first frame\n   after (re)activation simulates nothing.** Why: results depend on ticks, never on 60, 90 or 120 Hz or\n   frame timing, and a resumed sim never jumps.\n2. **Gameplay counts ticks, never milliseconds:** speeds are per tick, timers are tick counts, the sim\n   never sees a timestamp. Why: tick counts are exact integers on every device.\n3. **Sim state is one plain object of typed arrays in ONE shared value, mutated in place on the UI\n   thread, then `sim.modify()`.** Why: no per-frame copies or allocations, and in-place mutation does not\n   notify the picture by itself.\n4. **A tick allocates nothing:** buffers (entities, events, RNG words, spatial-hash scratch) are created\n   once; a full event queue drops edge and hit events but keeps reserved slots so input, save-point and\n   run-end events never drop; `step…` and every helper it reaches do scalar maths on the typed arrays\n   (`vec2`\u002F`sweep` return new objects and belong to the JS thread). One documented exception: an\n   occasional sfc32 draw through a `nextU32` wrapper; per-entity, per-tick randomness uses `hashU32`.\n   Why: the loop may run 30 ticks in one frame on the UI thread, garbage collection there is a visible\n   hitch, and a lost input breaks the replay.\n5. **Sims, the UI-thread kit and real-time draw files are `'worklet'` modules that import values only\n   from other `'worklet'` modules.** Why: a plain function called on the UI thread throws at runtime,\n   not at build time.\n6. **Sims, the kit and simulate-then-replay rules obey the determinism policy:** only `+ - * \u002F %`,\n   bitwise, `Math.sqrt\u002Fimul\u002Ffloor\u002Fround\u002Fabs\u002Fmin\u002Fmax\u002FPI`; no `**`, other `Math.*`, `Math.random`, `Date`,\n   `performance.now`, `Intl`; randomness from the sim's own sfc32 words. Why: Hermes computes\n   transcendental functions with each platform's libm and Jest uses V8, so replays would diverge\n   between an iPhone, an Android phone and CI.\n7. **Input is an integer command recorded as `(tick, command)`,** from the committed 16-direction table\n   (1 right, 5 down, 9 left, 13 up; 0 idle), identical to the stick gesture's table. Why: only integer\n   logs replay bit-exactly.\n8. **The sim never talks to JS or the app:** it appends `[kind, value, tick]` events; `runLoopFrame`\n   drains them once per frame and sends one batch with `scheduleOnRN`; a sim imports nothing from React,\n   React Native, Expo, Skia or the app's layers. Why: one crossing per frame, and the sim stays\n   testable in plain Jest and reusable by headless bots.\n9. **The frame-callback body is one call to `runLoopFrame`, which holds the `try\u002Fcatch`;** errors stop\n   the loop and pause the game. Why: an uncaught UI-thread exception kills the app, and React Compiler\n   bails out of hooks with value blocks inside `try\u002Fcatch`.\n10. **The loop runs only while the surface may run** (app active, screen focused, not covered, not\n    paused, not ended) through `useCanvasLifecycle`; stopping takes a save point and shows the pause UI;\n    real-time games never auto-resume, and resume resets the accumulator. Why: no simulation in the\n    background or under an interstitial, and a killed app loses at most the current wave.\n11. **Every sim has a replay test and a frame-grouping test.** Why: they are the proof of determinism;\n    saves, bots and bug reports all depend on it.\n12. **A real-time game exposes a `RealtimeSpec` (createSim, step, drainEvents, snapshot, savePoints,\n    isSavePoint) with a tested snapshot round trip, and is saved only at save points.** Why: the host and\n    the save path need one contract, a save must restore exactly, and a frame is too short for a write.\n13. **Simulate-then-replay games run the continuous phase inside the pure reducer with the same fixed\n    step, capped by `maxTicks`, and return timed events (`atMs`).** Why: the game stays turn-based for\n    saves, undo, bots and goldens; only the picture moves in real time, and a volley always ends.\n14. **A real-time surface is proven like every canvas:** a draw-call budget test with every entity slot\n    in play (≤ 1,000), bodies inside the canvas at 3 sizes, and pixel goldens through `paintSimPng` at\n    3 sizes × moments 0, 0.5, 1 of a scripted run (9 baselines). Why: the loop's tests prove the numbers,\n    not the picture.\n15. **No physics engine:** swept circles, `reflect` and the spatial hash; `planck` on the JS thread is the\n    documented fallback only for stacking, joints or friction. Why: engines bring non-deterministic\n    floats and a second runtime.\n16. **Every import of the kit, host, sims and draw files resolves; prerequisites come from their owner\n    skills.** Why: a half-copied kit fails at runtime on one screen; the checker names who creates the\n    missing file.\n\n## Workflow\n\n1. **Classify the game.** Real-time (an arena chase): read [references\u002Ffixed-step-loop.md](references\u002Ffixed-step-loop.md)\n   and [references\u002Fsim-design.md](references\u002Fsim-design.md). A continuous phase inside a turn (a shot, a\n   drop, a cascade): read [references\u002Fsimulate-then-replay.md](references\u002Fsimulate-then-replay.md).\n   Geometry: [references\u002Fgeom-kit.md](references\u002Fgeom-kit.md). Turn-based only: this skill does not apply\n   (game-rules-engine, skia-canvas-rendering).\n2. **Check prerequisites.** The templates import `@\u002Fcore\u002Frng\u002Fsfc32` (seeded-determinism-and-golden-vectors;\n   a synced copy ships in `templates\u002Fsrc\u002Fcore\u002Frng\u002F`), the canvas kit's `draw-kit`, `describe-error`,\n   `use-canvas-lifecycle` and `test\u002Fgoldens\u002Fskia-golden.ts` (skia-canvas-rendering, golden-and-snapshot-tests;\n   canonical `canvas-types`, `canvas-layout` and `timeline\u002F` copies ship in `templates\u002Fsrc\u002Fcanvas\u002F`),\n   `@\u002Fhooks\u002Fuse-is-app-active` (react-components-and-hooks), and fast-check pinned exactly.\n3. **Copy the kit.** Run `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-realtime-loop.mjs .` from the repo root.\n   For every `loop-file-missing` copy the file verbatim from `templates\u002F` to the path its first line names\n   (`templates\u002Fsrc\u002Fcore\u002F**`, `templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002F**`, tests included). Fix every\n   `loop-import-unresolved` with the skill it names.\n4. **Real-time game, test-first:** copy `templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002F` to `src\u002Fgames\u002F\u003Cgame-id>\u002F`,\n   replacing `__GAME_ID__` (kebab), `__GAME_PASCAL__` and `__GAME_CONST__` (UPPER_SNAKE) in names and\n   contents. Run the replay, frame-grouping and round-trip tests, then replace the gameplay slot\n   (`moveEntity`) with the game's rules, keeping every test green after each change. Add event kinds as\n   exported integer constants. Imitate [examples\u002Farena-chase\u002F](examples\u002Farena-chase\u002F).\n5. **Its surface and proof:** adapt `canvas\u002F` (palettes with `canvas-contrast.json`, `draw-arena.ts`, the\n   budget test; skia-canvas-rendering's palette and contrast rules apply) and copy\n   `templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__GAME_ID__-arena.golden.test.ts`. Create the baselines deliberately:\n   `npx jest test\u002Fgoldens\u002Fcanvas\u002F\u003Cgame-id>-arena.golden.test.ts --selectProjects golden -u`, open all 9\n   PNGs (bodies inside the canvas, nothing clipped at `small`), then `CI=1 npx jest --ci --selectProjects golden`;\n   commit the baselines with a `Gate-Change:` trailer (golden-and-snapshot-tests).\n6. **Wire the board into the host** (game-session-host owns the Game screen, the run store and the\n   writes): the game's `Surface` receives `GameSurfaceProps` and renders `RealtimeCanvasHost` with\n   `initialSim={realtime.createSim(props.state)}`, `game={realtime}`, `draw`, `colors` and `kit`\n   (makeCanvasColors, makeDrawKit), `makeGesture={makeStickGesture}`, `onEvents` (sounds, HUD,\n   statistics, input log), `isSavePoint={realtime.isSavePoint}`, `onSavePoint={(copy) =>\n   props.onSavePoint(realtime.snapshot(copy), inputLog)}` (every save point and one final one at the\n   run's end), `isEnded={props.isEnded}`, `isPaused={!props.isInputEnabled && !props.isEnded}`,\n   `onAutoPause` (a no-op inside a hosted Surface: the Game screen already pauses on background, blur\n   and full-screen ads), `isFocused` (`useIsFocused()` from expo-router; React Navigation 7:\n   `@react-navigation\u002Fnative`), `isInterrupted`, `onFailure`, a translated label, and in measurement\n   builds `onFrameTime` (performance-budgets' `sampleFrame` worklet). Keep `game` a module\n   constant; the host keeps the JS callbacks behind stable trampolines. Join the spec to\n   the module: `GameModule\u003C…> & { realtime }` with `savePolicy: { kind: 'save-points', points }`.\n7. **Simulate-then-replay game:** imitate [examples\u002Fricochet-volley\u002F](examples\u002Fricochet-volley\u002F): a pure\n   `simulate…` function in `src\u002Fgames\u002F\u003Cgame-id>\u002Frules\u002F` called by `applyMove`, events with\n   `atMs: tickToMs(tick)`, a `maxTicks` cap, a tracks builder in the surface folder, and the property tests.\n8. **Lint, format, type-check and test:** `npx eslint --fix src\u002Fgames\u002F\u003Cgame-id> src\u002Fcore\u002Frealtime src\u002Fcore\u002Fgeom src\u002Fcanvas\u002Frealtime`,\n   `npx prettier --write` on them, `npm run typecheck`, then\n   `npx jest src\u002Fgames\u002F\u003Cgame-id> src\u002Fcore\u002Frealtime src\u002Fcore\u002Fgeom src\u002Fcanvas\u002Frealtime --ci --selectProjects unit`\n   (paths first: `--selectProjects` takes several values and would swallow them).\n9. **Run the check** `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-realtime-loop.mjs .`; fix every `FAIL` line\n   (file, rule, fix) and rerun until `RESULT: PASS`. Options, config keys and every rule:\n   [references\u002Fchecker.md](references\u002Fchecker.md).\n10. **Play it for real.** The host is unit-tested with Skia inert and the loop mocked; it has not run on\n    an Android device yet. On the first real-time game, run a Release build on a named iOS simulator\n    (ios-simulator-build) and a named Android emulator (android-emulator-build): the picture updates\n    every frame, pause, background and Android back stop the loop, resume starts clean. Then a human\n    plays at least 60 s on a 120 Hz phone of each platform with the frame-time recorder passed as the\n    host's `onFrameTime` (hitch rate ≤ 10 ms\u002Fs, performance-budgets) and judges the feel.\n\n## Definition of done\n\n- [ ] The kit exists with its tests: `src\u002Fcore\u002Frealtime\u002F{fixed-step,replay-commands,realtime-spec}.ts`,\n      `src\u002Fcore\u002Fgeom\u002F{vec2,sweep,spatial-hash}.ts`; for a real-time game also `src\u002Fcanvas\u002Frealtime\u002F`\n      (`run-loop-frame`, `use-fixed-step-loop`, `record-sim`, `paint-sim-png`, `realtime-canvas-host`).\n- [ ] Each sim is a `'worklet'` module of typed arrays that allocates nothing per tick, counts ticks,\n      records `(tick, command)`, drains `[kind, value, tick]` events, and its replay and frame-grouping\n      tests pass; its `RealtimeSpec` round-trip test passes.\n- [ ] Each real-time surface has light and dark palettes with `canvas-contrast.json`, a `'worklet'`\n      draw, a draw-call budget test (≤ 1,000) and 9 reviewed golden PNGs that pass under\n      `CI=1 npx jest --ci --selectProjects golden`.\n- [ ] Each simulate-then-replay phase is pure, capped by `maxTicks`, emits `atMs` events, and its\n      properties (inside the arena, never faster, deterministic, tracks replay the path) pass.\n- [ ] The host stops the loop, saves and shows the pause UI on pause, background, blur and\n      interruptions, and never auto-resumes.\n- [ ] `npm run typecheck`, `npx eslint --max-warnings 0` and `npx prettier --check` pass on the new\n      files; no `__GAME_…__` placeholder is left.\n- [ ] `node ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fcheck-realtime-loop.mjs .` prints `RESULT: PASS`\n\nThe checker prints no SKIP lines. It prints `NOT APPLICABLE: no real-time code: …` (a pass) in an app\nwhose games are all turn-based, and stops with exit 2 in a folder without `package.json`.\n\n## Anti-patterns\n\n- **Moving entities by `dt` in milliseconds** (`x += speed * dt`). Frame timing leaks into gameplay and\n  replays diverge; move per tick inside `step`.\n- **Keeping the world in React state or copying it to JS every frame.** Keep it in the shared value; JS\n  gets batched events and a copy only at save points.\n- **Angles and `Math.atan2`\u002F`Math.cos` in the sim.** Use committed unit-vector tables, dot products and\n  `reflect`.\n- **Calling `scheduleOnRN` from inside the sim, or once per event.** Queue events in the sim; the runner\n  sends one batch per frame.\n- **Growing arrays per tick** (`events.push` on a JS array, `new Float32Array`, `.map`). Pre-allocate\n  and write in place.\n- **A module-level `let` or array in a sim file** (a counter, a hit log). The UI thread works on its own\n  captured copy, and saves and replays never see it; keep every changing value in the typed arrays.\n- **Passing a stride-4 `body` array to the spatial hash** (it expects stride 2). Wrong cells, no error.\n- **Auto-resuming a real-time game** when the app returns to the foreground or an interstitial closes.\n  The player expects the pause UI; resume only on their tap.\n- **Running a volley live in the frame loop instead of inside `applyMove`.** It breaks saves, undo, bots\n  and goldens; simulate first, then replay the events.\n- **A second frame callback for measurements.** The frame-time recorder goes in through the host's\n  `onFrameTime` and is sampled as the first statement of `runLoopFrame`'s `try`; an extra callback keeps\n  idle screens rendering.\n- **Saving every frame or every tick.** Save at wave ends, pause, background and blur only.\n- **Trusting the simulator or emulator for speed.** The iOS simulator caps at 60 fps and emulators\n  usually render at 60 Hz; judge feel and hitch rate on real 120 Hz phones.\n\n## Files in this skill\n\n| File | What it is | Read\u002Frun when |\n|---|---|---|\n| [references\u002Ffixed-step-loop.md](references\u002Ffixed-step-loop.md) | The accumulator, runner and hook, the real-time host, lifecycle and save points on iOS and Android, sprites, refresh rates, what is verified, multi-package | Workflow step 1 for real-time games, and before touching the loop |\n| [references\u002Fsim-design.md](references\u002Fsim-design.md) | Typed-array state, one tick, events, sfc32 words, the determinism policy, integer commands, replay tests, save points, the RealtimeSpec | Steps 1 and 4 |\n| [references\u002Fsimulate-then-replay.md](references\u002Fsimulate-then-replay.md) | Continuous phases inside `applyMove`: fixed step, timed events, tracks, the collision recipe, discrete runs, tests | Steps 1 and 7 |\n| [references\u002Fgeom-kit.md](references\u002Fgeom-kit.md) | `vec2`, `sweep`, `spatial-hash` APIs and rules for new geometry | Whenever a game needs vectors or collisions |\n| [references\u002Fchecker.md](references\u002Fchecker.md) | The checker's options, config keys, discovery, every rule with its fix, NOT APPLICABLE, troubleshooting | Step 9, when a line is unclear or folders differ |\n| `templates\u002Fsrc\u002Fcore\u002Frealtime\u002F` | `fixed-step.ts`, `replay-commands.ts` (each + test), `realtime-spec.ts` | Step 3 (copy verbatim) |\n| `templates\u002Fsrc\u002Fcore\u002Fgeom\u002F` | `vec2.ts`, `sweep.ts`, `spatial-hash.ts`, each with its test | Step 3 (copy verbatim) |\n| `templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002F` | `run-loop-frame.ts` (+ test), `use-fixed-step-loop.ts`, `record-sim.ts` (+ test), `paint-sim-png.ts`, `realtime-canvas-host.tsx` (+ lifecycle test) | Step 3 (copy verbatim) for a real-time game |\n| `templates\u002Fsrc\u002Fcanvas\u002F` (other files) | `canvas-layout.ts` (+ test), `canvas-types.ts`, `timeline\u002Ftrack.ts`, `timeline\u002Fsample.ts` (+ test): synced canonical copies (skia-canvas-rendering owns them); keep the app's copy | Step 2, only when the app lacks them |\n| `templates\u002Fsrc\u002Fcore\u002Frng\u002F` | `sfc32.ts` and its golden test: synced canonical copy (seeded-determinism-and-golden-vectors owns it) | Step 2, only when the app lacks it |\n| `templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002F` | The template game: `sim\u002F` (sim + replay tests), `\u003Cid>-realtime.ts` (RealtimeSpec + round-trip test), `canvas\u002F` (palettes, contrast pairs, draw, budget test) | Steps 4 and 5 |\n| `templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F` | `__GAME_ID__-arena.golden.test.ts` and its nine reviewed baselines in `__image_snapshots__\u002F` | Step 5 |\n| [examples\u002Farena-chase\u002F](examples\u002Farena-chase\u002F) | A chase sim (player, chasers, hits) with its replay tests: the shape of real gameplay in a sim | Step 4 |\n| [examples\u002Fricochet-volley\u002F](examples\u002Fricochet-volley\u002F) | Simulate-then-replay volley with sweep and reflect, its property tests, and the tracks builder with its test (one piece of the game's surface; skia-canvas-rendering builds the rest) | Step 7 |\n| `scripts\u002Fcheck-realtime-loop.mjs` | The checker (21 rules; references\u002Fchecker.md) | Steps 3 and 9 and at the end |\n| `scripts\u002Fselftest.mjs` | Proves the checker passes the templates and examples and catches each planted bug | After changing the checker, a template or an example |\n| `scripts\u002Flib\u002Fsource-scan.mjs` | Synced source helpers (worklet directive, imports, resolution); do not edit here | When changing the checker |\n| `scripts\u002Fcheck-lib.mjs` | Shared script library, synced (do not edit here) | Never by hand |\n| `assets\u002Fshared.json` | Declares the synced files | When adding a shared file |\n| `assets\u002Ftemplate-placeholders.json` | The values the self-test and template verification fill in (`bounce-arena`) | When adding a placeholder |\n| `tests\u002Fbases\u002Fapp\u002F` | The fixture base under the templates: `package.json`, `tsconfig.json` and stand-ins for two canvas kit files | When the fixture base changes |\n| `tests\u002Ffixtures\u002F` | `check-realtime-loop\u002F`: `good\u002F` (templates + ricochet example), one `bad-*` per planted bug, `pass-*` (turn-based app, config folder, installed skills, an RNG draw in the tick, a destructured frame callback with a renamed pause flag) and `error-*` | When adding a rule to the checker |\n\n## Related skills\n\n- `skia-canvas-rendering` - drawing rules, palettes, the canvas kit and lifecycle, turn timelines that replay simulate-then-replay events.\n- `canvas-gestures-and-hit-testing` - the stick gesture that writes integer commands, and aim intents.\n- `game-rules-engine` - `applyMove`, events, the game module and `SavePoint`.\n- `seeded-determinism-and-golden-vectors` - the determinism policy and the sfc32 PRNG.\n- `game-session-host` - the game screen: pause UI, save points, HUD from events, results.\n- `game-balance-and-bots` - thousands of seeded headless runs of the same `step`.\n- `golden-and-snapshot-tests` - the golden policy and accepting baselines.\n- `audio-and-haptics-feedback` - drained events become sounds and haptics on JS.\n- `performance-budgets` - the frame-time recorder and the on-device hitch-rate budget.\n- `ios-simulator-build` and `android-emulator-build` - the Release builds of step 10.\n",{"name":5,"description":7},"main","41a0e66d4d09de5b46e6537f59a97c7192473486","skills\u002Frealtime-game-loop",2,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills","https:\u002F\u002Fzakaria.dev\u002FReactNative-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fzakariaf","https:\u002F\u002Fzakaria.dev","Seniore Software Engineer","2026-10-22 07:05:00",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add zakariaf\u002FReactNative-Skills --skill realtime-game-loop",{"tool":40,"command":41},"bunx","bunx skills add zakariaf\u002FReactNative-Skills --skill realtime-game-loop",{"tool":43,"command":44},"pnpm","pnpm dlx skills add zakariaf\u002FReactNative-Skills --skill realtime-game-loop","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002FSKILL.md",true,[48,54,58,64,68,72,76,80,84,90,94,98,102,106,110,114,118,122,126,130,134,138,144,148,152,156,160,164,168,172,176,180,184,188,192,196,200,204,208,212,216,220,224,228,232,236,240,244,248,252,256,260,264,268,272,276,280,284,288,292,296,300,304,308,312,316,320,324,328,331],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"assets\u002Fshared.json","ASSET","资产文件",1025,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fassets\u002Fshared.json",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"assets\u002Ftemplate-placeholders.json",291,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fassets\u002Ftemplate-placeholders.json",{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"examples\u002Farena-chase\u002Farena-chase-sim.test.ts","SCRIPT","脚本",2178,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fexamples\u002Farena-chase\u002Farena-chase-sim.test.ts",{"path":65,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":66,"sourceHtmlUrl":67},"examples\u002Farena-chase\u002Farena-chase-sim.ts",4575,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fexamples\u002Farena-chase\u002Farena-chase-sim.ts",{"path":69,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":70,"sourceHtmlUrl":71},"examples\u002Fricochet-volley\u002Fsimulate-volley.test.ts",2315,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fexamples\u002Fricochet-volley\u002Fsimulate-volley.test.ts",{"path":73,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":74,"sourceHtmlUrl":75},"examples\u002Fricochet-volley\u002Fsimulate-volley.ts",3844,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fexamples\u002Fricochet-volley\u002Fsimulate-volley.ts",{"path":77,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":78,"sourceHtmlUrl":79},"examples\u002Fricochet-volley\u002Fvolley-timeline.test.ts",1083,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fexamples\u002Fricochet-volley\u002Fvolley-timeline.test.ts",{"path":81,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":82,"sourceHtmlUrl":83},"examples\u002Fricochet-volley\u002Fvolley-timeline.ts",1161,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fexamples\u002Fricochet-volley\u002Fvolley-timeline.ts",{"path":85,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fchecker.md","REFERENCE","参考文档",10705,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Freferences\u002Fchecker.md",{"path":91,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Ffixed-step-loop.md",16575,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Freferences\u002Ffixed-step-loop.md",{"path":95,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Fgeom-kit.md",4433,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Freferences\u002Fgeom-kit.md",{"path":99,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fsim-design.md",12343,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Freferences\u002Fsim-design.md",{"path":103,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fsimulate-then-replay.md",4860,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Freferences\u002Fsimulate-then-replay.md",{"path":107,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":108,"sourceHtmlUrl":109},"scripts\u002Fcheck-lib.mjs",119923,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fscripts\u002Fcheck-lib.mjs",{"path":111,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":112,"sourceHtmlUrl":113},"scripts\u002Fcheck-realtime-loop.mjs",41578,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fscripts\u002Fcheck-realtime-loop.mjs",{"path":115,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":116,"sourceHtmlUrl":117},"scripts\u002Flib\u002Fsource-scan.mjs",35908,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fscripts\u002Flib\u002Fsource-scan.mjs",{"path":119,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":120,"sourceHtmlUrl":121},"scripts\u002Fselftest.mjs",506,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Fscripts\u002Fselftest.mjs",{"path":123,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":124,"sourceHtmlUrl":125},"templates\u002Fsrc\u002Fcanvas\u002Fcanvas-layout.test.ts",4230,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fcanvas-layout.test.ts",{"path":127,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":128,"sourceHtmlUrl":129},"templates\u002Fsrc\u002Fcanvas\u002Fcanvas-layout.ts",6201,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fcanvas-layout.ts",{"path":131,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":132,"sourceHtmlUrl":133},"templates\u002Fsrc\u002Fcanvas\u002Fcanvas-types.ts",5482,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Fcanvas-types.ts",{"path":135,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":136,"sourceHtmlUrl":137},"templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Fpaint-sim-png.ts",1150,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Fpaint-sim-png.ts",{"path":139,"resourceType":140,"resourceTypeDesc":141,"sizeBytes":142,"sourceHtmlUrl":143},"templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frealtime-canvas-host.test.tsx","OTHER","其他",4699,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frealtime-canvas-host.test.tsx",{"path":145,"resourceType":140,"resourceTypeDesc":141,"sizeBytes":146,"sourceHtmlUrl":147},"templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frealtime-canvas-host.tsx",5283,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frealtime-canvas-host.tsx",{"path":149,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":150,"sourceHtmlUrl":151},"templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frecord-sim.test.ts",1942,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frecord-sim.test.ts",{"path":153,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":154,"sourceHtmlUrl":155},"templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frecord-sim.ts",1624,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frecord-sim.ts",{"path":157,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":158,"sourceHtmlUrl":159},"templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frun-loop-frame.test.ts",3394,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frun-loop-frame.test.ts",{"path":161,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":162,"sourceHtmlUrl":163},"templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frun-loop-frame.ts",1899,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Frun-loop-frame.ts",{"path":165,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":166,"sourceHtmlUrl":167},"templates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Fuse-fixed-step-loop.ts",3183,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Frealtime\u002Fuse-fixed-step-loop.ts",{"path":169,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":170,"sourceHtmlUrl":171},"templates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Fsample.test.ts",1691,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Fsample.test.ts",{"path":173,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":174,"sourceHtmlUrl":175},"templates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Fsample.ts",3368,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Fsample.ts",{"path":177,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":178,"sourceHtmlUrl":179},"templates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Ftrack.ts",1997,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcanvas\u002Ftimeline\u002Ftrack.ts",{"path":181,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":182,"sourceHtmlUrl":183},"templates\u002Fsrc\u002Fcore\u002Fgeom\u002Fspatial-hash.test.ts",1623,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Fgeom\u002Fspatial-hash.test.ts",{"path":185,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":186,"sourceHtmlUrl":187},"templates\u002Fsrc\u002Fcore\u002Fgeom\u002Fspatial-hash.ts",2253,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Fgeom\u002Fspatial-hash.ts",{"path":189,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":190,"sourceHtmlUrl":191},"templates\u002Fsrc\u002Fcore\u002Fgeom\u002Fsweep.test.ts",2033,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Fgeom\u002Fsweep.test.ts",{"path":193,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":194,"sourceHtmlUrl":195},"templates\u002Fsrc\u002Fcore\u002Fgeom\u002Fsweep.ts",3027,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Fgeom\u002Fsweep.ts",{"path":197,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":198,"sourceHtmlUrl":199},"templates\u002Fsrc\u002Fcore\u002Fgeom\u002Fvec2.test.ts",1075,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Fgeom\u002Fvec2.test.ts",{"path":201,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":202,"sourceHtmlUrl":203},"templates\u002Fsrc\u002Fcore\u002Fgeom\u002Fvec2.ts",1317,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Fgeom\u002Fvec2.ts",{"path":205,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":206,"sourceHtmlUrl":207},"templates\u002Fsrc\u002Fcore\u002Frealtime\u002Ffixed-step.test.ts",1915,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Frealtime\u002Ffixed-step.test.ts",{"path":209,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":210,"sourceHtmlUrl":211},"templates\u002Fsrc\u002Fcore\u002Frealtime\u002Ffixed-step.ts",1146,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Frealtime\u002Ffixed-step.ts",{"path":213,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":214,"sourceHtmlUrl":215},"templates\u002Fsrc\u002Fcore\u002Frealtime\u002Frealtime-spec.ts",1478,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Frealtime\u002Frealtime-spec.ts",{"path":217,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":218,"sourceHtmlUrl":219},"templates\u002Fsrc\u002Fcore\u002Frealtime\u002Freplay-commands.test.ts",888,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Frealtime\u002Freplay-commands.test.ts",{"path":221,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":222,"sourceHtmlUrl":223},"templates\u002Fsrc\u002Fcore\u002Frealtime\u002Freplay-commands.ts",1493,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Frealtime\u002Freplay-commands.ts",{"path":225,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":226,"sourceHtmlUrl":227},"templates\u002Fsrc\u002Fcore\u002Frng\u002Fsfc32.test.ts",4275,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Frng\u002Fsfc32.test.ts",{"path":229,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":230,"sourceHtmlUrl":231},"templates\u002Fsrc\u002Fcore\u002Frng\u002Fsfc32.ts",3016,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fcore\u002Frng\u002Fsfc32.ts",{"path":233,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":234,"sourceHtmlUrl":235},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002F__GAME_ID__-realtime.test.ts",1583,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002F__GAME_ID__-realtime.test.ts",{"path":237,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":238,"sourceHtmlUrl":239},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002F__GAME_ID__-realtime.ts",1850,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002F__GAME_ID__-realtime.ts",{"path":241,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":242,"sourceHtmlUrl":243},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fcanvas-contrast.json",345,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fcanvas-contrast.json",{"path":245,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":246,"sourceHtmlUrl":247},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fcanvas-palettes.json",238,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fcanvas-palettes.json",{"path":249,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":250,"sourceHtmlUrl":251},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fcanvas-palettes.ts",477,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fcanvas-palettes.ts",{"path":253,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":254,"sourceHtmlUrl":255},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fdraw-arena.test.ts",3474,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fdraw-arena.test.ts",{"path":257,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":258,"sourceHtmlUrl":259},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fdraw-arena.ts",1862,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fcanvas\u002Fdraw-arena.ts",{"path":261,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":262,"sourceHtmlUrl":263},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fsim\u002F__GAME_ID__-sim.test.ts",4778,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fsim\u002F__GAME_ID__-sim.test.ts",{"path":265,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":266,"sourceHtmlUrl":267},"templates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fsim\u002F__GAME_ID__-sim.ts",7502,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Fsrc\u002Fgames\u002F__GAME_ID__\u002Fsim\u002F__GAME_ID__-sim.ts",{"path":269,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":270,"sourceHtmlUrl":271},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__GAME_ID__-arena.golden.test.ts",2631,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__GAME_ID__-arena.golden.test.ts",{"path":273,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":274,"sourceHtmlUrl":275},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-phone-portrait-0.5.png",6902,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-phone-portrait-0.5.png",{"path":277,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":278,"sourceHtmlUrl":279},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-phone-portrait-0.png",6649,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-phone-portrait-0.png",{"path":281,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":282,"sourceHtmlUrl":283},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-phone-portrait-1.png",7058,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-phone-portrait-1.png",{"path":285,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":286,"sourceHtmlUrl":287},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-small-0.5.png",5232,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-small-0.5.png",{"path":289,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":290,"sourceHtmlUrl":291},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-small-0.png",5120,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-small-0.png",{"path":293,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":294,"sourceHtmlUrl":295},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-small-1.png",5289,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-small-1.png",{"path":297,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":298,"sourceHtmlUrl":299},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-tablet-landscape-0.5.png",13428,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-tablet-landscape-0.5.png",{"path":301,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":302,"sourceHtmlUrl":303},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-tablet-landscape-0.png",13236,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-tablet-landscape-0.png",{"path":305,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":306,"sourceHtmlUrl":307},"templates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-tablet-landscape-1.png",13508,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftemplates\u002Ftest\u002Fgoldens\u002Fcanvas\u002F__image_snapshots__\u002F__GAME_ID__-arena-tablet-landscape-1.png",{"path":309,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":310,"sourceHtmlUrl":311},"tests\u002Fbases\u002Fapp\u002Fpackage.json",249,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftests\u002Fbases\u002Fapp\u002Fpackage.json",{"path":313,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":314,"sourceHtmlUrl":315},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fcanvas\u002Fdescribe-error.ts",294,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fcanvas\u002Fdescribe-error.ts",{"path":317,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":318,"sourceHtmlUrl":319},"tests\u002Fbases\u002Fapp\u002Fsrc\u002Fcanvas\u002Fuse-canvas-lifecycle.ts",233,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftests\u002Fbases\u002Fapp\u002Fsrc\u002Fcanvas\u002Fuse-canvas-lifecycle.ts",{"path":321,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":322,"sourceHtmlUrl":323},"tests\u002Fbases\u002Fapp\u002Ftsconfig.json",163,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftests\u002Fbases\u002Fapp\u002Ftsconfig.json",{"path":325,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":326,"sourceHtmlUrl":327},"tests\u002Ffixtures\u002Fcheck-realtime-loop\u002FCASES.json",29909,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftests\u002Ffixtures\u002Fcheck-realtime-loop\u002FCASES.json",{"path":329,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":14,"sourceHtmlUrl":330},"tests\u002Ffixtures\u002Fcheck-realtime-loop\u002Fgood\u002FEXPECT.txt","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftests\u002Ffixtures\u002Fcheck-realtime-loop\u002Fgood\u002FEXPECT.txt",{"path":332,"resourceType":86,"resourceTypeDesc":87,"sizeBytes":333,"sourceHtmlUrl":334},"tests\u002Ffixtures\u002Fcheck-realtime-loop\u002FSUITE.json",300,"https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Frealtime-game-loop\u002Ftests\u002Ffixtures\u002Fcheck-realtime-loop\u002FSUITE.json",[336,343,349,356,363,370],{"skillNo":337,"name":338,"nameZh":6,"description":339,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":340,"categories":341,"keywords":342,"publishedAt":19},"01M7F2S4KZG97D21GEJ2GKKYK1","demo","Planted skill folder (never scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":344,"name":338,"nameZh":6,"description":345,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":346,"categories":347,"keywords":348,"publishedAt":19},"01M7F2S1F4ATZ49909EDKWA9E6","Planted installed skill (its files must never be scanned).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002Ftests\u002Fbases\u002Fapp\u002F.agents\u002Fskills\u002Fdemo\u002FSKILL.md",[],[],{"skillNo":350,"name":351,"nameZh":6,"description":352,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":353,"categories":354,"keywords":355,"publishedAt":19},"01M7F2RXGPZJ5Q1FV2HQ1PJ6AX","web-support","Ships the web build of an Expo app: platform files, APIs missing in react-native-web, expo-sqlite headers. Use when adding web, a .web.tsx file or expo export --platform web. Not for responsive layout (adaptive-layout).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fweb-support\u002FSKILL.md",[],[],{"skillNo":357,"name":358,"nameZh":6,"description":359,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":360,"categories":361,"keywords":362,"publishedAt":19},"01M7F2RQ43JFA4QFWQEHBET08G","value-objects-money-and-units","Stores money as ISO 4217 minor units, quantities in canonical units, instants as epoch ms. Use when adding a price, currency, tax, split, unit or timestamp, or a total is a cent off. Not for calendar days (dates-streaks-and-statistics).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalue-objects-money-and-units\u002FSKILL.md",[],[],{"skillNo":364,"name":365,"nameZh":6,"description":366,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":367,"categories":368,"keywords":369,"publishedAt":19},"01M7F2RHR7H8VVZDP16FJNJV11","unit-and-component-tests","Sets up Jest, checks unit, component and route tests (RNTL 14, renderWithProviders, SDK mocks, fakes, fast-check, Stryker). Use when writing a test or mock, or Jest fails or flakes. Not for goldens (golden-and-snapshot-tests).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Funit-and-component-tests\u002FSKILL.md",[],[],{"skillNo":371,"name":372,"nameZh":6,"description":373,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":374,"categories":375,"keywords":376,"publishedAt":19},"01M7F2RAEDWQ6H4514HFRWJAE6","ui-states-and-feedback","Builds loading, empty, failed and offline states, delayed skeletons, toasts, banners, confirms, Undo. Use when a screen loads data, shows a spinner, toast, retry or delete prompt. Not for failure values (error-handling-typed-results).","https:\u002F\u002Fgithub.com\u002Fzakariaf\u002FReactNative-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fui-states-and-feedback\u002FSKILL.md",[],[]]