{"id":46550707,"url":"https://github.com/brianruggieri/dog-playground","last_synced_at":"2026-03-07T03:13:22.612Z","repository":{"id":340174821,"uuid":"1164894305","full_name":"brianruggieri/dog-playground","owner":"brianruggieri","description":"Interactive dog playground with pan/zoom canvas, throw-toy physics, and autonomous dog behavior.","archived":false,"fork":false,"pushed_at":"2026-03-05T20:30:36.000Z","size":22187,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-05T21:46:28.759Z","etag":null,"topics":["browser-game","casual-game","css","dog","dog-playground","game-development","html5","html5-canvas","javascript","physics","playground","simulation","vanilla-javascript","web-game"],"latest_commit_sha":null,"homepage":"https://brianruggieri.github.io/dog-playground/","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/brianruggieri.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":null,"dco":null,"cla":null}},"created_at":"2026-02-23T15:49:40.000Z","updated_at":"2026-03-05T20:30:49.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/brianruggieri/dog-playground","commit_stats":null,"previous_names":["brianruggieri/dog-playground"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/brianruggieri/dog-playground","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianruggieri%2Fdog-playground","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianruggieri%2Fdog-playground/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianruggieri%2Fdog-playground/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianruggieri%2Fdog-playground/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianruggieri","download_url":"https://codeload.github.com/brianruggieri/dog-playground/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianruggieri%2Fdog-playground/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30206356,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T19:07:06.838Z","status":"online","status_checked_at":"2026-03-07T02:00:06.765Z","response_time":53,"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":["browser-game","casual-game","css","dog","dog-playground","game-development","html5","html5-canvas","javascript","physics","playground","simulation","vanilla-javascript","web-game"],"created_at":"2026-03-07T03:13:22.185Z","updated_at":"2026-03-07T03:13:22.597Z","avatar_url":"https://github.com/brianruggieri.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dog Playground\n\n![Dog Playground hero](public/readme/hero.png)\n\nA standalone extraction of the GardenCraft dog wander + throw-toy interaction.\n\n## Scope\n\nThis project intentionally keeps only:\n\n- Large pan/zoom canvas using the original world dimensions.\n- Background texture selector and textured grid rendering.\n- Dog wandering/chasing behavior.\n- Drag-to-throw toy physics (ball, frisbee, bone).\n- Small control panel.\n\nEverything unrelated to this interaction (garden beds, plants, AI providers, layout generation) is removed.\n\n## Screenshots\n\nDesktop drag line (sand + frisbee):\n![Throwing a frisbee with the drag line visible](public/readme/drag-frisbee.png)\n\nBone chase (tile + bone):\n![Bone throw in motion](public/readme/throw-bone.png)\n\n### Mobile\n\nTouch drag (dirt + ball):\n![Mobile drag-to-throw](public/readme/mobile-drag.png)\n\n## Architecture\n\nThe code is organized so dogs and toys are easy to extend:\n\n- `src/catalog/dogs.js`: dog registry with `registerDog`.\n- `src/catalog/toys.js`: toy registry with `registerToy`.\n- `src/engine/physics.js`: pure toy launch and toy motion physics.\n- `src/engine/dogBehavior.js`: dog target selection and frame/orientation logic.\n- `src/main.js`: UI wiring, render loop, and controls.\n\n## Run\n\n```bash\nsource ~/.nvm/nvm.sh \u0026\u0026 nvm use\nnpm test\nnpm run dev\n# fallback when portless is unavailable\nnpm run dev:plain\n```\n\n## Controls\n\n- Drag (left mouse / one-finger touch): throw toy.\n- Space or middle-mouse drag: pan canvas.\n- Wheel: scroll-pan.\n- Ctrl/Cmd + wheel: zoom.\n- Escape: cancel active throw drag.\n\n## Extending Dogs\n\nAdd or register new entries with frame assets and movement settings in `src/catalog/dogs.js`.\n\n## Extending Toys\n\nAdd or register new entries with image + launch/physics profiles in `src/catalog/toys.js`.\n\n## Asset Workflow\n\n- Default source policy: assets are AI-generated with ChatGPT image generation tools.\n- When adding/updating images in `public/backgrounds`, `public/dogs`, or `public/toys`:\n\t1. Add/update WebP primary files and PNG backup files with matching filenames.\n\t2. Run `npm run assets:manifest`.\n\t3. Run `npm run assets:check`.\n- CI enforces this via the `Asset Compliance` workflow.\n\n## Hero Image\n\nThe README hero is generated from `public/readme/hero.template.html` + `public/readme/hero.config.json`.\n\nRegenerate:\n\n```bash\nsource ~/.nvm/nvm.sh \u0026\u0026 nvm use\nnpm run hero:render\n```\n\n## Future Expansion Notes\n\n- AI-driven dog generation can write new dog definitions + generated sprite references.\n- New toy types can be added without changing core physics loop.\n- Interactions like petting/commands can attach to the dog behavior module without changing rendering or toy physics.\n\n## Deployment (GitHub Pages)\n\n- `Deploy GitHub Pages` workflow publishes `dist/` on pushes to `main`.\n- In repo settings, set **Pages -\u003e Source** to **GitHub Actions**.\n\n## Versioning\n\n- This repo uses Semantic Versioning with tags (`vX.Y.Z`).\n- Use the `Release Version` workflow to bump `patch`, `minor`, or `major`.\n- Full guide: `VERSIONING.md`.\n\n## Licensing\n\n- Code license: `LICENSE` (MIT).\n- Visual asset license: `LICENSE-ASSETS` (CC BY 4.0).\n- AI-generated visual asset provenance and per-file manifest:\n\t- `ASSET_PROVENANCE.md`\n\t- `ASSET_MANIFEST.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianruggieri%2Fdog-playground","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianruggieri%2Fdog-playground","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianruggieri%2Fdog-playground/lists"}