- Make stat command cross-platform (Linux -c%s with macOS -f%z fallback)
- Document expected zip layout: text files at root, binary zips under assets/
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace the bare "Please wait... Loading webassembly" text with a
branded loading screen featuring a Rosebud logo (base64-embedded),
rotating theme-park phrases, gradient progress bar, and phase labels
that track actual engine/asset loading stages.
- rosebud/static/index.html: dark overlay with CSS animations, JS
helpers (updateLoadingBar, showLoadingError, dismissOverlay)
- rosebud/static/index.js: fork copy of upstream index.js wired to
report 14 progress stages and 6 error paths through the overlay
- .claude/verification.md: project-specific verification instructions
Key fixes during development:
- Canvas must be visible before callMain() for WebGL init
- Progress helpers use window scope so file-level functions can call them
- Body flex layout reset on dismiss to prevent canvas offset
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
After copying the WASM build output, overlay rosebud/static/ files
so our mobile-specific index.html replaces the upstream version.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace inline touch handling in UiContext with a dedicated state machine
that handles tap, double-tap (right-click), long-press (right-click),
two-finger pan (map drag), and pinch-to-zoom gestures.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Create rosebud/static/index.html with our mobile/touch additions
(viewport meta, overflow hidden, touch-action none) instead of
modifying the upstream emscripten/static/index.html. Build process
should copy rosebud/static/* over upstream static files.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move Docker build infra, dev server, reskin pipeline, and packaging
script from emscripten/ and tools/ into rosebud/ to cleanly separate
fork-specific work from upstream code.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Delete docker/dev/Dockerfile, docker-compose.yml, and docs/docker-dev.md.
This was local infrastructure not from upstream, and we use the DevContainer
instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move Docker build infrastructure from docker/emscripten/ to
emscripten/docker/, and move docker-build and serve scripts from
scripts/ to emscripten/. Keeps build-emscripten in scripts/ for
CI compatibility.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add Dockerfile, build-depends.sh, clone-deps.sh, and .dockerignore
for building a native arm64 emscripten Docker image. Add the
docker-build-emscripten DinD wrapper script.
The ext/ directory (pre-cloned deps, ~413MB) is gitignored.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move the useful packaging script from tmp/ to tools/ before
deleting the tmp/ directory (now gitignored).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Move all reskin Python scripts, shell wrappers, and documentation
into a self-contained tools/reskin/ directory. All 44 tests pass
after the move with no path reference updates needed.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add findings from scaling the reskin pipeline to 552 sprites across
36 FAL.ai batches. Key insight: palette quantization is the primary
blocker for AI-generated reskins — mechanical palette remap is more
reliable. Also fix stat flags in build-reskin-upload.sh for Linux
compatibility (stat -c%s with -f%z fallback).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
FAL.ai sometimes paints dark horizontal bands across sprites (from grid
lines bleeding into content). The new cleanup_black_artifacts() step
detects opaque pixels significantly darker than the sprite's median
brightness (where the original was NOT dark) and fills them from the
nearest bright neighbor.
This took the Gemini visual quality rating from 2/10 to 10/10 on
test sprites — no more black/dark bands, clean transparency, shape
perfectly preserved.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- describe_grid.py: Uses Gemini CLI to analyze each grid image and
describe individual sprite cells, producing JSON descriptions that
feed into the FAL.ai prompt for much better restyling fidelity
- verify_sprites.py: Builds HTML comparison page (original vs restyled
at 1x and 4x zoom), screenshots via Playwright, optionally judges
with Gemini CLI
- reskin.py: Add "describe" step between batch and generate; auto-
resolve descriptions_dir for both describe and generate steps
- Tests for describe_grid (6 tests covering parsing edge cases)
- Fix 4x zoom CSS overflow in verification page
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>