mirror of
https://github.com/ewanc26/atproto-snake.git
synced 2026-07-21 15:33:18 +00:00
Mirror of github.com/ewanc26/atproto-snake
- TypeScript 50.8%
- Svelte 46.8%
- Nix 1.1%
- HTML 0.6%
- JavaScript 0.4%
- Other 0.3%
| src | ||
| static | ||
| .cspell.json | ||
| .gitignore | ||
| .npmrc | ||
| .pre-commit-config.yaml | ||
| .prettierignore | ||
| .prettierrc | ||
| AGENTS.md | ||
| flake.nix | ||
| package-lock.json | ||
| package.json | ||
| pnpm-lock.yaml | ||
| README.md | ||
| svelte.config.js | ||
| TRADEMARKS.md | ||
| tsconfig.json | ||
| vite.config.ts | ||
Snake for AT Protocol
Snake game built with SvelteKit, auth via AT Protocol.
Independent project; see the trademark notice.
Also available on Tangled
Features
- Log in with your AT Protocol handle (e.g.,
ewancroft.uk) - High scores saved to the AT Protocol
- Arrow keys on desktop, swipe on mobile
Getting started
git clone https://github.com/ewanc26/atproto-snake.git
cd atproto-snake
npm install
npm run dev
Build
npm run build
How to play
- Log in with your AT Protocol handle, app password, and optional PDS URL
- Arrow keys to steer the snake
- Eat the food (green squares), grow longer, don't hit walls or yourself
- Score auto-submits if it's greater than zero
Project layout
src/lib/auth/— AT Protocol authsrc/lib/snake/— Game logicsrc/routes/— Login and game pagessrc/lib/components/— Reusable componentsstatic/client-metadata.json— OAuth client metadata
Licence
MIT