Single puzzle mode in one Three.js web app:
- Image Chunk Swap (row/column strip swapping over an image)
Features:
- Row and column handle swaps
- Click-to-select swapping (tap one heading, then another of same type)
- Drag-release swapping (press one heading, release on another heading)
- Undo (
Ctrl/Cmd+Z) - Move counter + correct/mismatch progress metrics
- Win overlay
- Image upload (
Imagefile picker +Use Demo)
npm install
npm run devThen open the local Vite URL.
npm run build
npm run previewThis repo includes a Pages deploy workflow:
To publish:
- Push this project to a GitHub repo.
- In GitHub:
Settings -> Pages -> Build and deployment -> Source, chooseGitHub Actions. - Push to
main(ormaster) to trigger deploy. - Your site URL will be:
https://<username>.github.io/<repo>/for project repos, orhttps://<username>.github.io/if the repo is named<username>.github.io.
The workflow auto-detects the repo type and sets the correct Vite --base path.
Each new image generates a fresh strong scramble for row and column strips.