Grid Serpent: A 3D Snake Game With Three Landscapes
- Lab Skill
- v0.1.1
- Game creation
Steer a cartoon serpent round a 20×20 board in 3D, in one offline HTML file: three landscapes, two render styles, chase, eye-level and top-down cameras, a speed-up with every fruit and a win for a full board. Models, textures and sounds are all generated in code.
उदाहरण
Grid Serpent 3D snake game
यह उदाहरण एक sandboxed frame में चलता है और इस page तक इसकी पहुँच नहीं है।
ऑनलाइन चलाएँ
SandBase sandbox में चलाएँ और अपने परिणाम Lab में देखें।
Lab में खोलें ↗आपको क्या मिलेगा
Bring a landscape, its fruit and the serpent’s look, and optionally the speed, rules and sounds. The Skill returns a downloadable Skill (the reference game project, a customize guide, headless verification) and one playable example run.
यह कैसे काम करता है
- 01
Copy the reference serpent
Grid Serpent starts with node scripts/new-project.mjs --out my-serpent and npm ci. The project is complete: rules, pace, turn buffer, autopilot, landscapes, styles, cameras, sound, HUD, touch controls and the window.__scene test API. A prompt such as "Use grid-serpent to make a 3D snake game set in a coral reef, with sea grapes and a snorkel" sets the re-skin.
- 02
Re-skin the landscape
Most looks are data in src/config/themes.js, and references/customize.md names the file and symbol for sky, board, serpent, wearables, scenery, a new landscape or fruit, speed, controls and sound. The default is a 20 by 20 board with Meadow and cherries, Dunes and dates, or Frostfield and lingonberries, in faceted low-poly or banded plush shading. Meshes, textures and sound are all generated in code.
- 03
Build and shoot the run
npm run build:single writes dist-single/index.html, about 0.6 MiB and at most 8 MiB, with no network, storage, workers or WebAssembly. npm run shoot needs Node 22.4 or newer and local Chrome, falling back to SwiftShader without a GPU. It covers start, eating, turns, pause, cameras, a crash, each landscape and style, a cleared board and a 390 by 844 phone. Read shots/report.json.
FAQ
How does Grid Serpent handle quick turns?
Grid Serpent queues turns two deep and checks each against the newest queued heading, so two quick taps never reverse the serpent into its body. Turns are relative to the heading in the chase or eye-level view, and the top-down view uses compass arrows. The game speeds up slightly per fruit, down to a floor.
Can Grid Serpent use imported 3D models?
Yes. Grid Serpent accepts models as bundled imports parsed in place, and requires every added model, texture, font or sound to be listed in assets/grid-serpent/CREDITS.json with source and licence. Use models the user made or owns, or CC0 ones, never models taken from another game or a product site. Today the list is empty.
Does Grid Serpent keep high scores?
No. Grid Serpent keeps the best score and your choices for the visit only, because the sandbox frame has no storage. Landscape and style change only between runs, so a menu click never throws a run away.
Does Grid Serpent need an API key?
No. Grid Serpent calls no model or paid service, and its meshes, canvas textures and Web Audio sounds are all made in code, so nothing is billed. npm ci downloads pinned packages from the public npm registry.
Is the Grid Serpent autopilot a perfect player?
No. Grid Serpent's autopilot, used for the cover and act('autoplay'), is a short-sighted path finder. It can crash before filling the board. Filling the whole board yourself counts as a win.
Can I change the Grid Serpent board size?
Yes. Grid Serpent reads the size from BOARD_SIZE, but the meadow's paths, benches and lamps sit at fixed coordinates, so check them after a change. Update verify.json when you change the board size, the pace, or rename landscapes, fruits or wearables.
और Skills
सभी Game creation Skills →
Seagull Swoop
Build a 3D flight-and-delivery game with light fries, heavy fish, crosswinds and optional ring routes. The gull must bring lunch home; cargo weight changes which openings it can safely reach.

Wedding Cake Wobble
Build a 3D fragile-cargo delivery game around a wobbling wedding cake. Brake before turns, avoid crossing guests and steer around tables. Lost tiers change the score, while a partial delivery can still succeed.

Hermit Tide
Build a 3D route-and-timing game where a hermit crab changes shells to cross a tidal shore. Narrow gaps favour the cap, stronger shells resist waves, and dry stones provide shelter and checkpoints.

Clover Circuit: Estate Cut
Drive a coral ride-on mower through a fenced estate garden. Steering, braking and the moving blade cut actual grass tufts; Overview reveals the genuine trail. Edit three gardens and three scene palettes offline. Coverage counts trimmed tuft centers rather than continuous ground area.

Glide Gates: Lagoon Run
Flap a golden bird through emerald pipe pairs above a turquoise lagoon. Actual fixed-step gravity, swept circle contacts and full-gate scoring power both manual flight and clearly labeled practice. Edit three courses and three scene palettes offline.

3D Interactive Garden Islands
Walk a curved garden, harvest fruit, share gifts, catch butterflies, fish, grow flowers and craft furniture. Four lighting states and one offline HTML with bilingual keyboard and touch controls.

