3031 source-verified AI-built games from 2724 repos, attributed to GPT-6 Astra, GPT-6.1 Sol, Gemini 4 Argon, Claude Opus, Claude Sonnet and Claude Fable
Python ai-gamesai-generatedawesome-listbrowser-gamesclaudeclaude-opusclaude-opus-5-5game-developmentgeminigemini-4gemini-4-argongpt-6-astrallmopen-source-gamesopus-5-5threejsvibe-coding
{
"repo": "7324136828/3d-pinball-rebuild",
"created_at": "2026-10-03T16:06:29Z",
"pushed_at": "2026-10-03T17:55:38Z",
"description": "An NPM Version of 3D PinBall with customized map creator (build with Space Bunny Alpha and GPT-6.1 Sol)",
"homepage": "",
"default_branch": "main",
"language": "JavaScript",
"readme": "# Modern 3D Pinball\n\nA playable React application using the preserved Space Cadet JavaScript engine,\nwith a Python FastAPI service and persistent SQLite rankings. The frontend owns\nthe simulation, Three.js table, keyboard/touch input, sound, and game lifecycle.\nPython serves the original readable table data, creates game sessions, and saves\nthe final scores when all players finish their game.\n\n`original-project/` is preserved as the reference implementation. It contains\nJavaScript rather than Python; the new Python backend adapts its table data and\nadds the ranking service rather than duplicating the physics in another language.\n\nRuntime table data lives in `assets/table.json` at the repository root. The backend\nserves this standalone copy through `/api/table`; running the app does not require\nreading assets from `original-project/`.\n\n## Screenshots\n\nDesktop gameplay:\n\n\n\nPersistent score rankings:\n\n\n\nMobile gameplay with touch controls:\n\n<img src=\"screenshot/mobile-gameplay.png\" alt=\"Modern 3D Pinball mobile gameplay\" width=\"320\" />\n\nThese screenshots show the running application. Ranking entries are sample\nscores created in an isolated temporary database for the captures.\nAfter setup, regenerate the images with `python tools/capture_screenshots.py`.\n\n## Quick start\n\nWindows:\n\n```powershell\n.\\setup.bat\n.\\run.bat\n```\n\nLinux/macOS:\n\n```bash\nbash setup.sh\nbash run.sh\n```\n\nInstall Python 3.10+, Node.js 20.19+, and npm 10+ (Node.js 24 is used in CI). Setup creates\nand reuses this repository's `.venv`, installs the Python dependencies, and uses\nthe npm lockfiles to install frontend and browser-test dependencies. It creates\n`.env` from `.env.example` only if `.env` does not already exist. No activation\ncommand is needed, even if another Python environment is active.\n\nOpen the frontend URL printed by the runner, enter player names, and start a\ngame. The table supports one to four players taking turns. Finish all balls to\nsave the scores and receive your leaderboard positions. Closing the browser or\nrestarting a game abandons that game without publishing a partial score.\n\nThe default backend and frontend ports are `8000` and `5173`. The runner checks\nboth ports before launch and advances to the next available port when needed.\nIt prints the actual URLs selected for the session. Press Ctrl+C in the runner\nterminal to stop both services and their child processes.\n\n| Action | Keyboard |\n| --- | --- |\n| Left flipper | Z or Left arrow |\n| Right flipper | Slash or Right arrow |\n| Launch | Hold Space, then release |\n| Nudge | X, period, or Up arrow |\n| Pause/resume | P or Escape |\n| New game | N or F2 |\n\nOn-screen hold/release buttons work on touch devices. Sound and camera controls\nare available beside the table. Leaving the window pauses the game.\n\n## Built application\n\n```powershell\n.\\run.bat --production\n```\n\n```bash\nbash run.sh --production\n```\n\nThis builds `frontend/dist/` and starts one FastAPI service that serves both the\nbuilt React app and `/api` on the backend port, with reload disabled. Vite's\ndevelopment server is used only by the development runner. See the official\n[Vite deployment guide](https://vite.dev/guide/static-deploy.html) for the build\noutput and [FastAPI static files guide](https://fastapi.tiangolo.com/tutorial/static-files/)\nfor serving static assets.\n\nFor a server with an existing build, set `PINBALL_STATIC_DIR=frontend/dist` and\nrun the virtual environment's Python with:\n\n```bash\npython -m uvicorn backend.app.main:app --host 127.0.0.1 --port 8000\n```\n\nPlace a public deployment behind your HTTPS reverse proxy, and keep the database\non persistent local storage. Back up SQLite using its backup API or stop the\nservice before copying its database and WAL files. There is no login system:\nnames identify entries rather than verified accounts. Scores are reported by\nthe browser; validation and idempotent submissions prevent malformed or duplicate\nrecords, but this is a casual leaderboard, not an authoritative anti-cheat service.\n\n## Configuration\n\nCopy `.env.example` to `.env` to customize the preferred ports, bind address,\nor database path. Environment variables already defined in the terminal take\nprecedence over values in `.env`.\n\n| Variable | Default | Purpose |\n| --- | --- | --- |\n| `BACKEND_PORT` | `8000` | First backend port to try |\n| `FRONTEND_PORT` | `5173` | First frontend port to try |\n| `BACKEND_HOST` | `127.0.0.1` | Backend bind address |\n| `PINBALL_DB_PATH` | `data/pinball.db` | Persistent SQLite database; relative to repository root |\n| `CORS_ORIGINS` | Local frontend origins | Comma-separated permitted browser origins |\n| `PINBALL_STATIC_DIR` | Unset | Serve a prebuilt frontend directory; set by production runner |\n| `PINBALL_SESSION_TTL_SECONDS` | `86400` | Active-session lifetime; configurable from 60 seconds to seven days |\n\nThe development runner sets the Vite API proxy to the actual selected backend\nport. To launch Vite separately, set `BACKEND_URL` to the Python service URL.\nLocal `.env` files, `.venv`, npm dependencies, build artifacts, and runtime\ndatabases are ignored by Git. No external API keys are required.\n\n## API\n\n| Method | Path | Behavior |\n| --- | --- | --- |\n| `GET` | `/api/health` | Backend health check |\n| `GET` | `/api/table` | Read the original table geometry and gameplay attributes |\n| `POST` | `/api/games` | Start a session with `{\"player_names\":[\"Cadet\"]}` |\n| `POST` | `/api/games/{id}/complete` | Save `{\"scores\":[12000],\"duration_ms\":60000}` |\n| `GET` | `/api/leaderboard?limit=10&offset=0` | Read scores, competition ranks, and total entry count |\n\nTied scores share a rank (for example 1, 1, 3), with deterministic ordering inside\na tie. SQLite transactions atomically save every player in a game. Retrying an\nidentical completed submission returns the existing result; changing its scores\nreturns a conflict. Rankings survive application restarts. Active sessions expire\nafter 24 hours by default; completed results remain available.\n\nInteractive API documentation is available at the backend `/docs` URL.\n\n## Tests and build\n\n```powershell\n.venv\\Scripts\\python.exe -m unittest discover -s backend\\tests -v\n.venv\\Scripts\\python.exe -m unittest discover -s tests -v\nnode --test original-project/tests/*.test.mjs\npython tools/check_secrets.py\ncd frontend\nnpm run typecheck\nnpm test\nnpm run build\ncd ..\\e2e\nnpm run typecheck\nnpm test\n```\n\nOn Unix, use `.venv/bin/python` for the Python checks. The Playwright suite starts\nFastAPI and Vite automatically and uses an isolated system-temp SQLite database,\nthen deletes it. It exercises gameplay controls, game-over submission, persistence,\nretries, multiplayer, and mobile layout. Tests use Microsoft Edge locally on\nWindows/Linux when available, and WebKit on macOS. For bundled Chromium instead,\nrun `npm run install:chromium` in `e2e` and set `PLAYWRIGHT_BROWSER=chromium`.\n\nOn a fresh macOS checkout, install the WebKit browser once before running the\ntests:\n\n```bash\ncd e2e\nnpm run install:webkit\n```\n\n## Project layout\n\n```text\noriginal-project/ Preserved JavaScript engine, table data, and regression tests\nassets/ Standalone runtime table data served by the backend\nbackend/app/ FastAPI routes, configuration, schemas, table adapter, SQLite store\nbackend/tests/ API, ranking, concurrency, and persistence checks\nfrontend/src/ React shell, API client, game lifecycle and controls\nfrontend/src/pinball/ Adapted engine, Three.js renderer, and synthesized sound\ne2e/ Playwright checks with an isolated temporary database\ntests/ Cross-platform setup and process orchestration checks\ndata/ Default persistent ranking database location (database ignored)\ntools/check_secrets.py Credential pattern audit that prints locations only\nsetup.py / setup.* Project virtual environment and dependency installation\nrun.py / run.* Development and built-application runners\n```\n\nThe frontend adapter tests also exercise real multiplayer ball drains through\nthe original engine's game-over timers. Browser control hooks are enabled only\nin development with `VITE_ENABLE_TEST_HOOKS=1`; production builds omit them.\n\nThe local productionization standard's PDF uploads, conversion ZIPs, and scratch\njob directories are specific to converters. This game has no upload/conversion\npipeline. Durable ranking data belongs in SQLite; temporary test databases use\nthe operating system temp folder. A repeatable source credential audit is in\n`secrets.md`. The CI workflow runs on Ubuntu.\n\nSee [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md) and the preserved source's\n[provenance](original-project/PROVENANCE.md) for engine and table attribution.",
"commits": []
}