{"id":25902759,"url":"https://github.com/scriptraccoon/pool-game","last_synced_at":"2026-06-05T06:31:10.103Z","repository":{"id":128642355,"uuid":"482512781","full_name":"ScriptRaccoon/pool-game","owner":"ScriptRaccoon","description":"pool game written in Vanilla JavaScript","archived":false,"fork":false,"pushed_at":"2024-01-26T00:04:51.000Z","size":324,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-30T16:49:58.380Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pool-game.netlify.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScriptRaccoon.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}},"created_at":"2022-04-17T12:08:20.000Z","updated_at":"2023-04-03T12:44:16.000Z","dependencies_parsed_at":"2024-01-26T01:25:32.370Z","dependency_job_id":null,"html_url":"https://github.com/ScriptRaccoon/pool-game","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2Fpool-game","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2Fpool-game/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2Fpool-game/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptRaccoon%2Fpool-game/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptRaccoon","download_url":"https://codeload.github.com/ScriptRaccoon/pool-game/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241600473,"owners_count":19988715,"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","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":[],"created_at":"2025-03-03T03:17:19.455Z","updated_at":"2026-06-05T06:31:09.993Z","avatar_url":"https://github.com/ScriptRaccoon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pool game\n\nThis is a pool game written in Vanilla JavaScript. All drawing operations are done on an HTML canvas. No images are used.\n\nhttps://pool-game.netlify.app\n\n\u003cimg src=\"./screenshots/screenshot1.png\" /\u003e\n\nUse the mouse to determine the orientation and energy of the next shot.\n\nThe collision between the balls uses 2-dimensional elastic collision. Of course the balls also bounce off the borders, but also the polygon-shaped bumpers.\n\nThere are popups when the game is won (all balls are pocketed, the black one last) or lost (the black ball is pocketed too early, or the black and the white ball are both pocketed). There are sound effects as well.\n\nIdeas for further improvement:\n\n-   mobile version\n-   two-player mode\n-   striped balls\n-   numbers on balls\n-   rotation of balls\n\n## Local development\n\n1. Install the dependencies\n\n```bash\nnpm install\n```\n\n2. Build the JS and CSS files\n\n```bash\nnpm run dev\n```\n\nduring development or\n\n```bash\nnpm run build\n```\n\nfor the production build.\n\n3. Open `dist/index.html`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptraccoon%2Fpool-game","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptraccoon%2Fpool-game","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptraccoon%2Fpool-game/lists"}