45 Commits
Author SHA1 Message Date
Mike LiuandClaude Opus 4.6 e318fec283 fix: update build-no-music-upload.sh for cross-platform and correct zip layout
- 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>
2026-03-04 00:04:49 +00:00
Mike LiuandClaude Opus 4.6 54048c6bac feat: add polished loading overlay with progress bar
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>
2026-03-03 23:27:25 +00:00
Mike LiuandClaude Opus 4.6 1d6534f3b2 feat: overlay rosebud/static/ onto build output in docker-build
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>
2026-03-03 22:34:13 +00:00
Mike LiuandClaude Opus 4.6 c25d2bc57e feat: add TouchGestureManager for mobile touch input
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>
2026-03-03 22:28:38 +00:00
Mike LiuandClaude Opus 4.6 748b1174e3 refactor: move mobile index.html overrides to rosebud/static/
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>
2026-03-03 22:27:42 +00:00
Mike LiuandClaude Opus 4.6 c1a8ef021d refactor: consolidate fork additions under rosebud/
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>
2026-03-03 22:17:32 +00:00
Mike Liu 556a80ea15 Revert "chore: untrack .vscode/c_cpp_properties.json (already gitignored)"
This reverts commit 6a801d9252.
2026-03-03 22:03:26 +00:00
Mike LiuandClaude Opus 4.6 6a801d9252 chore: untrack .vscode/c_cpp_properties.json (already gitignored)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 22:02:47 +00:00
Mike LiuandClaude Opus 4.6 380db08990 chore: remove unused docker/dev/ native dev container setup
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>
2026-03-03 22:01:55 +00:00
Mike LiuandClaude Opus 4.6 3b0c966f99 refactor: consolidate emscripten files under emscripten/
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>
2026-03-03 21:19:16 +00:00
Mike LiuandClaude Opus 4.6 fcd64611f0 chore: add .claude/specs/ to .gitignore
Working spec documents should not be tracked.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 21:12:02 +00:00
Mike LiuandClaude Opus 4.6 ebae3076f4 feat: track emscripten Docker build infrastructure
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>
2026-03-03 21:09:38 +00:00
Mike LiuandClaude Opus 4.6 9a3c289c3d chore: preserve build-no-music-upload.sh in tools/ and remove tmp/
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>
2026-03-03 21:09:20 +00:00
Mike LiuandClaude Opus 4.6 73dbcbe581 refactor: move reskin pipeline from scripts/ to tools/reskin/
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>
2026-03-03 21:09:06 +00:00
Mike LiuandClaude Opus 4.6 7b480ede61 chore: add tmp/, build-native/, and docker/emscripten/ext/ to .gitignore
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 21:06:05 +00:00
Mike LiuandClaude Opus 4.6 732e16ba13 chore: remove stale ralph files and tracked .DS_Store
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 21:05:24 +00:00
Mike Liu f9c6e394d9 Merge remote-tracking branch 'origin/develop' into develop 2026-02-27 21:01:31 +00:00
Mike LiuandClaude Opus 4.6 65d7018b97 Document FAL.ai scale-up findings and fix cross-platform stat
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>
2026-02-25 05:54:48 +00:00
Mike LiuandClaude Opus 4.6 2c524e8462 Add dark artifact cleanup to parse_restyled post-processing
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>
2026-02-25 01:23:12 +00:00
Mike LiuandClaude Opus 4.6 1fac077da8 Add per-cell descriptions and Playwright sprite verification
- 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>
2026-02-25 00:41:15 +00:00
Mike Liu e90704e437 ralph: story-8 Full test suite verification and CLI smoke test 2026-02-25 00:22:02 +00:00
Mike LiuandClaude Opus 4.6 7729134cb4 ralph: story-8 Full test suite verification and CLI smoke test
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:21:56 +00:00
Mike Liu 03988341ee ralph: story-7 Gemini visual judge script 2026-02-25 00:21:10 +00:00
Mike LiuandClaude Opus 4.6 34b6440e0e ralph: story-7 Gemini visual judge script
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:21:05 +00:00
Mike LiuandClaude Opus 4.6 0b7ae76261 ralph: story-6 Playwright screenshot skill for OpenRCT2 web
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:20:26 +00:00
Mike Liu 5d42bbc51f ralph: story-6 Playwright screenshot skill for OpenRCT2 web 2026-02-25 00:19:36 +00:00
Mike LiuandClaude Opus 4.6 b19fea3209 ralph: story-6 Playwright screenshot skill for OpenRCT2 web
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:19:29 +00:00
Mike Liu a826e2f6f7 ralph: story-5 reskin.py — orchestrator with tests 2026-02-25 00:18:03 +00:00
Mike LiuandClaude Opus 4.6 7a5b6cee70 ralph: story-5 reskin.py — orchestrator with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:17:51 +00:00
Mike Liu 1bcaf9675a ralph: story-4 parse_restyled.py — sprite extraction with tests 2026-02-25 00:16:25 +00:00
Mike LiuandClaude Opus 4.6 436dee559c ralph: story-4 parse_restyled.py — sprite extraction with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:16:09 +00:00
Mike Liu f20afa9e39 ralph: story-3 generate_restyled.py — FAL.ai generation with tests 2026-02-25 00:14:28 +00:00
Mike LiuandClaude Opus 4.6 8f4d4ed8c5 ralph: story-3 generate_restyled.py — FAL.ai generation with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:14:23 +00:00
Mike LiuandClaude Opus 4.6 68b3c403e9 ralph: story-2 batch_sprites.py — grid batching with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:13:30 +00:00
Mike Liu 410ce5dc9f ralph: story-2 batch_sprites.py — grid batching with tests 2026-02-25 00:12:44 +00:00
Mike LiuandClaude Opus 4.6 4f22bd0c47 ralph: story-2 batch_sprites.py — grid batching with tests
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:12:29 +00:00
Mike Liu ec18ace9b4 ralph: story-1 categories.py — style preset definitions 2026-02-25 00:11:09 +00:00
Mike LiuandClaude Opus 4.6 4c3cdc10ea ralph: story-1 categories.py — style preset definitions
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 00:11:04 +00:00
Mike Liu 7b8b0965a5 Switch reskin CLI build dir to build_native 2026-02-20 12:56:27 -08:00
Mike Liu dcec533392 Ignore local build-native artifacts 2026-02-20 12:52:59 -08:00
Mike Liu 93063cc936 Preserve directory entries when repacking nested zips 2026-02-20 12:50:29 -08:00
Mike Liu 6839a236e7 Handle single-threaded wasm job execution paths 2026-02-20 11:39:00 -08:00
Mike Liu bef6799c3a Add web upload asset reskin pipeline scripts and docs 2026-02-20 11:37:30 -08:00
Mike Liu 09c6cdb48b Merge pull request #1 from mliudev/codex/openrct2-wasm-autoload
Add wasm local-dev server and automatic web asset/bootstrap loading
2026-02-17 14:48:09 -08:00
Mike Liu 455186b90f Add wasm local-dev server and automatic web asset/bootstrap loading 2026-02-17 14:21:14 -08:00