Repository navigation
fix(3): add fa-craft widget to catalog + jsr goldens - #9
Conversation
| var N = function() { return Facraft.noise; }; | ||
| var B = function() { return Facraft.blocks; }; | ||
|
|
||
| var CHUNK_X = 16, CHUNK_Y = 64, CHUNK_Z = 16; |
There was a problem hiding this comment.
You need to make reference to your repo as app... not put full code here
There was a problem hiding this comment.
I don't see any examples of blocks... texts are squares only
|
Acknowledged both threads — rework starting now:
|
…aft@3cc1819 The catalog no longer embeds the game: widgets/fa-craft/ is an overlay (icon.svg, catalog meta, source pin) exactly like the 2048/e2e-scratch entries; manifest + widget.js + the 16 game modules come from the pinned upstream commit via 'fa_widgets fetch', and the preview URLs point at raw.githubusercontent.com/IstiN/fa_craft@3cc1819. Blocks are now visible in the goldens: fa_craft renders the real world through the production renderer's scene3d software-mesh node (per-block checker-tinted faces, raycast target highlight) — all seven example screenshots recaptured from the pinned commit, byte-deterministic across runs (frozen clock). catalog.json regenerated; zip sha 041d3e1a… stable across rebuilds.
|
Re both review threads (PRRT_kwDOUFUqGM6mx48k, PRRT_kwDOUFUqGM6mx59Y) — rework pushed on 1. Reference-style entry — done. 2. Blocks visible — done, via the renderer's existing |
…db7a5741fd826223e9a3f93e2f0
|
Goldens recaptured with real fonts (same Ahem fix as fa_craft#4 — committed Roboto + FontLoader in the capture harness): docs/goldens/fa-craft/* regenerated from the new pin fa_craft@80047a8575086db7a5741fd826223e9a3f93e2f0; zip sha 7e30f6dc… stable across rebuilds; validate + analyze + dart test 64/64 green. (92cbb9c) |
…3c8ea8564203e136ec61015
…809b8958511359b9a6147a0
# Conflicts: # catalog.json
…og; pin fa_craft@ece2511
Fixes IstiN/fa_craft#3
Delivered (rework per review)
Widget — reference-style (EXTERNAL), no embedded code.
widgets/fa-craft/is now an overlay exactly like the 2048 / e2e-scratch entries:overlay.json: catalog meta (icon.svg, description, author, tags, minRuntime 0.4.79) + the required source pin{"repo": "IstiN/fa_craft", "commit": "3cc18199603b6d65451027c81f0e411a390e4d90"}.widget.jsandicon.svgare REMOVED from this repo — code lives only in IstiN/fa_craft.dart run bin/fa_widgets.dart fetchmaterializes the pinned tarball intovendor/external/fa-craft/(untracked, per the retired-submodule scheme), validation checks the pin marker against the overlay.catalog.jsonregenerated:source.repo/source.commitpinned,preview.manifest/js→raw.githubusercontent.com/IstiN/fa_craft@3cc1819…/manifest.json+/widget.js, zipfa-craft-0.1.0.zip(sha256041d3e1a…, byte-stable across rebuilds — verified two identical builds).Blocks are now visible. The reviewer-visible root cause: the world viewport degraded to a sky fill because the renderer had no voxel host capability (the
voxel.*bridge calls could never attach). fa_craft now renders the real world through the production renderer's existingscene3dnode — its pure-Dart softwaremeshespath (JsScene3dMeshNode, no host engine needed):This is the honest stopgap: real geometry, real renderer nodes, but flat-shaded (no textures/fog) and software-rasterized; the GPU voxel/mesh node upstream to flutter_js_widget_runtime will replace the adapter wholesale.
game/*logic untouched apart from computing the raycast target per render.Goldens —
docs/goldens/fa-craft/*.png(7 states), recaptured from the pinned commit through thejsr_widgetCLI (js_widget_runtime 0.4.126,--freeze-clock), byte-deterministic: two full captures this session, all 7 PNGs sha-identical run-to-run; catalog zip sha-identical across rebuilds.01-first-run-world.png02-block-targeted.png03-block-placed.png04-hotbar-switch.png05-crafting-open-crafted.png06-health-change.png07-saved-world-reload.pngRegenerating the goldens
From a fa_craft checkout on
fix/1-fa-craft-goldens(js_widget_runtime 0.4.126 resolvable; flutter on PATH):Test evidence
dart run bin/fa_widgets.dart fetch && … validate→26 widget(s) checked / OK(pin marker == overlay commit).dart analyzeclean;dart test64/64 pass.node test/all.js80/80 (includes scene-adapter ITs: mesh payload identity cached while clean, rebuilt on edits; highlight shell present on target).fa-craft-0.1.0.zipsha equal across twocatalogbuilds.Known issue (upstream, unchanged here)
The HUD root
listView+ full-bleed stack child crash the production renderer (unbounded sliver height) — worked around in the goldens pipeline only, by unwrapping the single-childlistViewbefore the tree reaches the renderer (RENDER_ADAPTERin fa_crafttools/goldens.js; catalogwidget.jsuntouched — the entry now lives in the source repo anyway).Notes
vendor/external/+build/are untracked tooling artifacts, not committed.