From f78bfa5000faeb34b6ab9568a31c74391de4ec7d Mon Sep 17 00:00:00 2001 From: kevin rajan Date: Wed, 19 Nov 2025 23:17:44 -0600 Subject: [PATCH 1/3] Flip water flow direction in Beam B and Waterfall MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Beam B: Changed flow from negative X to positive X ([1, 0]) - Waterfall: Reversed vertical flow (now flows upward) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../components/Scene/BuildingBlocks.tsx | 2 +- monument-valley-demo/components/Scene/LevelOne.tsx | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/monument-valley-demo/components/Scene/BuildingBlocks.tsx b/monument-valley-demo/components/Scene/BuildingBlocks.tsx index d768bb6..d5991ca 100644 --- a/monument-valley-demo/components/Scene/BuildingBlocks.tsx +++ b/monument-valley-demo/components/Scene/BuildingBlocks.tsx @@ -363,7 +363,7 @@ export const WaterfallBlock: React.FC = ({ }, [waterTexture, height]); useFrame((state, delta) => { - textureInstance.offset.y -= 1.5 * delta; + textureInstance.offset.y += 1.5 * delta; }); return ( diff --git a/monument-valley-demo/components/Scene/LevelOne.tsx b/monument-valley-demo/components/Scene/LevelOne.tsx index 0f42dd8..e953970 100644 --- a/monument-valley-demo/components/Scene/LevelOne.tsx +++ b/monument-valley-demo/components/Scene/LevelOne.tsx @@ -340,9 +340,8 @@ export const LevelOne: React.FC = () => { - {/* Beam B: The Short Corner (X Axis) -> Flows to Negative X */} - {/* Previous was [1, 0]. Reversed to [-1, 0]. */} - Flows to Positive X */} + { > Date: Wed, 19 Nov 2025 23:20:14 -0600 Subject: [PATCH 2/3] Deploy both main and dev branches to GitHub Pages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated workflow to build and deploy both branches: - Production (main): https://kvnloo.github.io/monument/ - Development (dev): https://kvnloo.github.io/monument/dev/ The workflow now: 1. Checks out both main and dev branches 2. Builds each with appropriate base paths 3. Combines them into a single deployment (main at root, dev at /dev/) 4. Deploys whenever either branch is pushed 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .github/workflows/deploy.yml | 42 +++++++++++++++++++++++++++++------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index be74efb..89696d4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - dev workflow_dispatch: permissions: @@ -19,33 +20,58 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout current branch uses: actions/checkout@v4 + with: + path: current + + - name: Checkout main branch + uses: actions/checkout@v4 + with: + ref: main + path: main-branch + + - name: Checkout dev branch + uses: actions/checkout@v4 + with: + ref: dev + path: dev-branch - name: Setup Node uses: actions/setup-node@v4 with: node-version: '20' - cache: 'npm' - cache-dependency-path: monument-valley-demo/package-lock.json - - name: Install dependencies + - name: Build main branch run: | - cd monument-valley-demo + cd main-branch/monument-valley-demo npm ci + npm run build - - name: Build + - name: Build dev branch run: | - cd monument-valley-demo + cd dev-branch/monument-valley-demo + npm ci + # Update base path for dev subdirectory + sed -i "s|base: '/monument/'|base: '/monument/dev/'|g" vite.config.ts npm run build + - name: Prepare combined deployment + run: | + mkdir -p deployment + # Copy main build to root + cp -r main-branch/monument-valley-demo/dist/* deployment/ + # Copy dev build to /dev subdirectory + mkdir -p deployment/dev + cp -r dev-branch/monument-valley-demo/dist/* deployment/dev/ + - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: - path: monument-valley-demo/dist + path: deployment deploy: environment: From 8abdffcc2c72373320514f85765d5c3e5b5fbf3b Mon Sep 17 00:00:00 2001 From: kevin rajan Date: Wed, 19 Nov 2025 23:20:36 -0600 Subject: [PATCH 3/3] Fix npm cache path in workflow --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 89696d4..2dcd5ed 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -41,6 +41,8 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20' + cache: 'npm' + cache-dependency-path: main-branch/monument-valley-demo/package-lock.json - name: Build main branch run: |