a61ef772dbca4fd55440b774deeebacb64bcb7c1
New templateType "snake" alongside quiz/clicker/maze — additive, not a redesign, so it's wired through every existing per-template enumeration point (schema, types unions, scene factory, builder dispatch on create/edit/AI-review pages, template icon maps) following the pattern each already established. games.templateType is a plain SQLite text column with a TypeScript- only enum (no SQL DDL behind it) — confirmed via drizzle-kit generate that adding "snake" produces zero migration, same as every in-place template redesign this session. Bounded arena (no maze-style wall authoring — keeps the builder trivial: width/height/startLength/targetLength/wrapAround, nothing else). Movement is a self-rescheduling delayedCall loop rather than a fixed interval, since the step interval itself shrinks as the snake grows; speed curve sanity-checked standalone before wiring it in. Discrete per-cell snapping (not tweened, unlike the maze's glide) — that's the authentic blocky Snake feel, not a shortcut. Standard collision rule: the tail cell is excluded from the self-collision check unless this step eats food, since the tail is vacating that cell. Progress resumes the exact live state (body/direction/food/score) — Snake has no natural level-boundary checkpoint the way the other three templates do, so unlike their coarse-grained resume this restores precisely. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QcXH24ky6zjk2UyK5oZUPH
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Languages
TypeScript
98%
CSS
1.6%
Dockerfile
0.2%
JavaScript
0.2%