# PolySnake XR
Standalone WebXR AR and VR tabletop edition of PolySnake rendered onto a circular miniature valley table right in front of you, with VR thumbstick steering and 3D spatial sound effects.

![PolySnake XR icon](pwa-192x192.png)

**PolySnake XR** brings the entire low-poly world of **Sunny Poly Valley** onto a handcrafted circular wooden gaming table directly in front of you! On mixed-reality headsets such as **Meta Quest 3**, the game automatically uses **WebXR AR passthrough** so the circular miniature landscape—complete with its winding turquoise river, wooden bridges, orchard vegetable patch, fenced chicken pen, village cottages, spinning windmills, and mountain ring—sits right in your real room.

![PolySnake XR circular tabletop valley](screenshot.png)

## Features

- **Circular Tabletop AR & VR Experience:** Prefers **immersive-ar** passthrough whenever supported so you see the circular PolySnake table standing in your own physical environment, and automatically falls back to a sunlit **immersive-vr** studio room on VR-only headsets.
- **No Separate Control App Needed:** Everything runs directly inside the headset (or desktop preview) with responsive VR thumbstick steering, Chomp Dash, haptic feedback, and a floating status scoreboard and menu centered high above the table.
- **3D Spatialized Sound Effects:** Every sound originates from its live 3D location on the circular table in HRTF spatial audio—hear your snake slithering across grass or splashing through the river, chickens clucking inside the southern pen, cows mooing and sheep bleating as they flee, villagers yelling in the plaza, timber snapping, buildings crumbling, tank cannons firing, and supersonic fighter jets swooping right across your tabletop!
- **All 6 PolySnake Growth Tiers & Escalating Army:** Grow from a tiny Hatchling eating orchard fruits through Big Fruits, Farm Animals, Villagers, Whole Trees, and Village Buildings—then dodge escalating Army tanks, heavy rockets, and fighter jet airstrikes while celebrating new High Scores with 3D tabletop confetti!
- **Easy Grab-and-Move Table Placement:** Hold the **Grab (Grip)** button on either controller to grab the circular table and move it directly in 3D space (or grab with both hands to rotate it like a tray), cycle between **Compact (0.9 m)**, **Standard (1.2 m)**, and **Grand (1.8 m)** sizes, or toggle the **Floor Pedestal** off for **Tray Only** placement on a real desk or dining table.

## VR & AR Controls

- **Left or Right Thumbstick:** Steer your snake 360 degrees relative to whichever side of the circular table you are viewing from.
- **Trigger or A / X:** Chomp Dash burst (or click buttons when aiming a controller ray at the floating menu above the center of the table).
- **Hold Grab (Grip) & Move Hand:** Grab the circular table directly and place it anywhere in front of you (left, right, closer, farther, higher, or lower). Hold Grab with **both hands** to move and twist-rotate the circular table naturally.
- **Hold Grab (Grip) + Thumbsticks:** Optional fine-tuning—Right Stick spins the table or adjusts height, Left Stick slides horizontally.
- **Thumbstick Click (L3 / R3):** Recenter the circular table directly in front of you.
- **B / Y Button:** Show or hide the tabletop controls row (Table Size, Recenter, Pedestal/Tray, Music, Sound, Restart, Exit AR/VR).

## Desktop Preview Controls

- **Play on Screen:** Click **Play on Screen** (or press **WASD** / **Arrow Keys** / left-drag) to steer the snake around the circular table directly in a desktop or mobile browser.
- **Space:** Chomp Dash burst.
- **Right-Drag / Q / E / Mouse Wheel:** Orbit 360 degrees around the circular table and zoom in or out.
- **G / R / M / I:** Cycle table size / Reset orbit camera / Mute sound / Open Controls & Info.
