{"id":20589724,"url":"https://github.com/patrick-s-young/pinball-xr","last_synced_at":"2025-08-12T00:07:05.342Z","repository":{"id":37185725,"uuid":"467799653","full_name":"patrick-s-young/pinball-xr","owner":"patrick-s-young","description":"three.js and cannon-es webxr pinball web app","archived":false,"fork":false,"pushed_at":"2024-01-17T16:17:13.000Z","size":6095,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T00:03:11.998Z","etag":null,"topics":["3d-game-development","arcore","augmented-reality","cannon-es","threejs","webxr"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/patrick-s-young.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2022-03-09T06:08:32.000Z","updated_at":"2025-05-25T03:31:46.000Z","dependencies_parsed_at":"2024-01-12T16:51:24.938Z","dependency_job_id":"7bb0d6f6-5631-43a5-92aa-1629888bc3f8","html_url":"https://github.com/patrick-s-young/pinball-xr","commit_stats":null,"previous_names":["patrick-s-young/pinball-ar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/patrick-s-young/pinball-xr","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Fpinball-xr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Fpinball-xr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Fpinball-xr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Fpinball-xr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/patrick-s-young","download_url":"https://codeload.github.com/patrick-s-young/pinball-xr/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/patrick-s-young%2Fpinball-xr/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269976794,"owners_count":24506467,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-11T02:00:10.019Z","response_time":75,"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":["3d-game-development","arcore","augmented-reality","cannon-es","threejs","webxr"],"created_at":"2024-11-16T07:31:03.458Z","updated_at":"2025-08-12T00:07:05.322Z","avatar_url":"https://github.com/patrick-s-young.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pinball-xr\n## A three.js and cannon-es webxr pinball web app.\n\nReal-world pinball differs from a video game in that the player is continuously moving their gaze over a physical playfield (like a spectator watching a tennis game).\n\nGiven the current strengths and weaknesses of mobile-based AR, standing in front of a virtual pinball machine could be a compelling mixed-reality experience.\n\n### Approach\nThis project will be in three phases:\n1. A [cannon-es](https://github.com/pmndrs/cannon-es) wireframe that establishes the physics of gameplay.\n2. ARCore implementation. \n3. A Three.js 'skin' on top of the cannon-es physics bodies (plus sound design).\n\n### Tools\nI am initially developing in vanilla Javascript - along with [cannon-es](https://github.com/pmndrs/cannon-es) - with an eye on refactoring to incorporate [react-three-fiber](https://github.com/pmndrs/react-three-fiber) and [zustand](https://github.com/pmndrs/zustand).\n\n\n### Progress\nI am establishing a baseline for the pinball game's physics behavior in WebXR. The videos below depict cannon-es in debugger mode. In addition to the WebXR mode, there is a desktop browser 'emulation' mode that enables faster iteration when developing non-WebXR functionality.\n\nWebXR mode 'yarn start'\n\nhttps://github.com/patrick-s-young/pinball-xr/assets/42591798/183ca26b-f026-4679-96cc-62b63bbda7bf\n\nEmulation mode 'yarn dev'\n\nhttps://github.com/patrick-s-young/pinball-xr/assets/42591798/b6b28d8c-4b32-42d3-8488-d6a1503cda5b\n\n\n## Running Locally\n\nMake sure you have [Node.js](http://nodejs.org/) installed.\n\n```sh\ngit clone https://github.com/patrick-s-young/pinball-xr.git # or clone your own fork\ncd pinball-xr\nyarn (to install)\nyarn start (for WebXR mode)\nyarn dev (for AR emulation mode)\n```\n- Left Flipper: A Key\n- Right Fipper: L Key\n- Refresh browser for new ball (or let ball fall down drain).\n\n## Built With\n\n* [cannon-es](https://www.npmjs.com/package/cannon-es) - rigid body physics engine.\n* [three.js](https://www.npmjs.com/package/three) - lightweight, cross-browser, general purpose 3D library.\n* [cannon-es-debugger](https://www.npmjs.com/package/cannon-es-debugger) - debugger for use with cannon-es.\n* [stats.js](https://www.npmjs.com/package/stats-js) - JavaScript performance monitor.\n* [webpack](https://webpack.js.org/) - static module builder.\n\n## Authors\n\n* **Patrick Young** - [Patrick Young](https://github.com/patrick-s-young)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick-s-young%2Fpinball-xr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpatrick-s-young%2Fpinball-xr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpatrick-s-young%2Fpinball-xr/lists"}