{"id":51502308,"url":"https://github.com/yeahdongcn/night-city-pixel","last_synced_at":"2026-07-07T20:31:01.238Z","repository":{"id":364279462,"uuid":"1266958616","full_name":"yeahdongcn/night-city-pixel","owner":"yeahdongcn","description":"Pixel-art cyberpunk action RPG in pure vanilla JS — collect iron, buy chrome, own the streets. Zero deps, all art \u0026 music procedural, moddable, AI-agent-friendly. Unofficial fan tribute.","archived":false,"fork":false,"pushed_at":"2026-07-07T02:34:35.000Z","size":931,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-07T03:07:43.543Z","etag":null,"topics":["cyberpunk","fable","game","html5-canvas","moddable","pixel-art","vanilla-js"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yeahdongcn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-06-12T05:21:05.000Z","updated_at":"2026-07-05T05:38:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/yeahdongcn/night-city-pixel","commit_stats":null,"previous_names":["yeahdongcn/night-city-pixel"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yeahdongcn/night-city-pixel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2Fnight-city-pixel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2Fnight-city-pixel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2Fnight-city-pixel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2Fnight-city-pixel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yeahdongcn","download_url":"https://codeload.github.com/yeahdongcn/night-city-pixel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yeahdongcn%2Fnight-city-pixel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35242497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cyberpunk","fable","game","html5-canvas","moddable","pixel-art","vanilla-js"],"created_at":"2026-07-07T20:31:00.587Z","updated_at":"2026-07-07T20:31:01.232Z","avatar_url":"https://github.com/yeahdongcn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003e🌃 NIGHT CITY — Pixel Edition\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003cb\u003eCollect iron. Buy chrome. Own the streets.\u003c/b\u003e\u003cbr\u003e\nA pixel-art cyberpunk action RPG that runs entirely in your browser —\u003cbr\u003e\nzero dependencies, zero asset files, one neon-soaked city generated from code.\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"license: MIT\" src=\"https://img.shields.io/badge/license-MIT-f9f002\"\u003e\n  \u003cimg alt=\"vanilla JS\" src=\"https://img.shields.io/badge/vanilla_JS-zero_deps-05d9e8\"\u003e\n  \u003cimg alt=\"procedural\" src=\"https://img.shields.io/badge/art_%26_music-100%25_procedural-ff2a6d\"\u003e\n  \u003cimg alt=\"moddable\" src=\"https://img.shields.io/badge/mods-NCPX_API-bd00ff\"\u003e\n  \u003cimg alt=\"AI contributions welcome\" src=\"https://img.shields.io/badge/AI_agents-welcome-00ff9f\"\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e🎮 \u003ca href=\"https://yeahdongcn.github.io/\"\u003e\u003cb\u003ePLAY NOW — yeahdongcn.github.io\u003c/b\u003e\u003c/a\u003e — desktop \u003ci\u003eor\u003c/i\u003e phone (twin-stick touch controls appear automatically)\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"screenshots/action.png\" width=\"800\" alt=\"Vehicular combat: blood tire-tracks across an intersection, loot drops glowing in the rain\"\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003ci\u003eRun a Scav pack over at full speed — the blood stays on the asphalt, the loot is yours.\u003c/i\u003e\u003c/p\u003e\n\n## What you do\n\nPick your V, roll a random starter kit, and work Night City: hunt **bounties**, take down\n**cyberpsychos** for one-of-a-kind iconic weapons, crack **gang hideouts** and **loot crates**,\nrace the Barghest to **Militech airdrops** over Dogtown — then spend every eddie at the\ngun store, the autofixer, and the ripperdoc.\n\n- 🔫 **39-weapon database** — power / tech (piercing) / smart (homing) classes, 8 cyberpsycho-only\n  iconics, a hidden talking pistol, and 4 cyber-arm weapons (Mantis Blades, Gorilla Arms, Monowire, launcher)\n- 🚗 **12 vehicles** with drift physics, full-body run-over combat, blood decals, and street delivery on **V**\n- 🦾 **17 cyberware implants** — Sandevistan bullet-time, Berserk, Kerenzikov, Optical Camo,\n  Second Heart, Smart Link, and more, most with 3 upgrade marks\n- 👁 **Real stealth** — enemies have view cones, wall occlusion, suspicion meters, and last-known-position\n  searches; melee takedowns hit 2.5×; dive into district flora to vanish from sight\n- 🏢 **Enterable buildings** — GTA-style roof reveal, walk-in shops with vendors, furnished interiors, gang dens\n- 🌧 **Random weather** — clear nights, storms, fog, acid drizzle, smog; fog genuinely shortens enemy vision\n- 📻 **5-station MIDI radio**, joytoys \u0026 the CLOUDS dollhouse, six districts with their own gangs and danger ★ ratings\n- 💾 Autosaves to localStorage · 🧩 **mod API** so players become creators\n\n## Gallery\n\n| | |\n|:---:|:---:|\n| \u003cimg src=\"screenshots/title.png\" width=\"400\"\u003e\u003cbr\u003e\u003ci\u003eJack in\u003c/i\u003e | \u003cimg src=\"screenshots/charsel.png\" width=\"400\"\u003e\u003cbr\u003e\u003ci\u003eChoose your V\u003c/i\u003e |\n| \u003cimg src=\"screenshots/interior.png\" width=\"400\"\u003e\u003cbr\u003e\u003ci\u003eWalk-in shops: Wilson's gun racks\u003c/i\u003e | \u003cimg src=\"screenshots/jigjig.png\" width=\"400\"\u003e\u003cbr\u003e\u003ci\u003eJig-Jig Street \u0026 the CLOUDS dollhouse\u003c/i\u003e |\n| \u003cimg src=\"screenshots/airdrop.png\" width=\"400\"\u003e\u003cbr\u003e\u003ci\u003eMilitech airdrop inbound over Dogtown\u003c/i\u003e | \u003cimg src=\"screenshots/storm.png\" width=\"400\"\u003e\u003cbr\u003e\u003ci\u003eStorm over the City Center\u003c/i\u003e |\n\n## Run it\n\n```bash\ngit clone https://github.com/yeahdongcn/night-city-pixel \u0026\u0026 cd night-city-pixel\n./run.sh                      # serves on http://localhost:8080\n# or: python3 -m http.server 8080   ·   or: npx serve .   ·   or just open index.html\n```\n\nDesktop: keyboard + mouse (click once to enable audio).\n**Mobile (iPhone/Android):** touch is auto-detected — left stick moves/drives, right stick\naims (push past 55% to fire), on-screen buttons handle dash/interact/heal/abilities, and\nmenus are tap + drag-to-scroll. Landscape recommended; add to home screen for fullscreen.\n\n## Controls\n\n| Key | Action | Key | Action |\n|---|---|---|---|\n| WASD | Move / drive | Q | OS ability (Sandevistan / Berserk) |\n| Mouse + LMB | Aim / fire / swing | F | Optical camo |\n| Space | Dash (handbrake in car) | C | MaxDoc heal |\n| R | Reload | E | Interact |\n| 1/2/3 · wheel | Weapon slots | V | Summon / enter / exit vehicle |\n| N | Radio dial | TAB | Inventory · collections · stats |\n| M | Mute | ESC | Pause |\n\n## Mods — players become creators\n\nThe game ships with a mod loader: edit **`mods/mods.js`**, refresh, done. Add weapons,\nvehicles, cyberware, radio stations, and event hooks — they appear in the shops, the\ncollection database, the garage, and on the radio dial. No build step.\nFull API + a working sample mod: **[MODDING.md](MODDING.md)**.\n\n## Contributing — humans *and* AI agents welcome\n\nThis game was built almost entirely by an AI coding agent (Claude) pair-programming with a\nhuman director — so AI-assisted and fully agentic PRs aren't just tolerated here, they're\nthe house style. Bring your own agent.\n\n- **Agents:** read **[AGENTS.md](AGENTS.md)** first — project map, invariants, and the rules\n  that keep saves and determinism intact.\n- **Everyone:** `node test/smoke.js` must stay green, keep the zero-dependency /\n  zero-binary-asset rule (all art and audio are procedural), and bump the `?v=` cache\n  version in `index.html` when you ship.\n- Content additions (weapons/cars/stations) are usually better as **mods**; engine PRs\n  should come with smoke-test coverage.\n\n## Tech notes\n\n- 640×360 internal canvas, HiDPI-aware integer scaling (`image-rendering: pixelated`), custom 3×5 bitmap font.\n- 128×128-tile city pre-rendered to offscreen canvases (deterministic seed so saves stay valid);\n  per-building fading roof layers for interiors; two-pass entity rendering for correct facade depth.\n- WebAudio: every sound synthesized; the radio is one 64-step sequencer driven by station data.\n- `node test/smoke.js` — headless simulation of every system (combat, stealth, shops, driving,\n  psychos, airdrops, weather, save/load) against stubbed DOM/canvas.\n- Debug URLs: `?autostart`, `?demo`, `?charsel`, `?indoor`, `?jigjig`, `?airdrop`, `\u0026wx=storm|fog|acid|…`, `\u0026v=f`.\n\n## License\n\nMIT (see [LICENSE](LICENSE)). **Unofficial fan tribute** inspired by Cyberpunk 2077 — not\naffiliated with or endorsed by CD PROJEKT RED. All code, pixel art, and audio are original;\nin-universe names appear in a non-commercial fan context.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeahdongcn%2Fnight-city-pixel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyeahdongcn%2Fnight-city-pixel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyeahdongcn%2Fnight-city-pixel/lists"}