{"id":41873927,"url":"https://github.com/mguttmann/minigolf-2000","last_synced_at":"2026-01-25T12:16:13.633Z","repository":{"id":333785377,"uuid":"1138681806","full_name":"mguttmann/minigolf-2000","owner":"mguttmann","description":"Retro-style 18-hole browser minigolf game - React + TypeScript","archived":false,"fork":false,"pushed_at":"2026-01-21T08:53:23.000Z","size":228,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-01-21T12:51:38.136Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/mguttmann.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-01-21T01:35:34.000Z","updated_at":"2026-01-21T08:53:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/mguttmann/minigolf-2000","commit_stats":null,"previous_names":["mguttmann/minigolf-2000"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/mguttmann/minigolf-2000","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mguttmann%2Fminigolf-2000","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mguttmann%2Fminigolf-2000/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mguttmann%2Fminigolf-2000/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mguttmann%2Fminigolf-2000/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mguttmann","download_url":"https://codeload.github.com/mguttmann/minigolf-2000/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mguttmann%2Fminigolf-2000/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28752805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T10:25:12.305Z","status":"ssl_error","status_checked_at":"2026-01-25T10:25:11.933Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-25T12:16:12.826Z","updated_at":"2026-01-25T12:16:13.624Z","avatar_url":"https://github.com/mguttmann.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minigolf 2000\n\nA retro-style 18-hole browser minigolf game built with React and TypeScript.\n\n**Play now:** https://mguttmann.github.io/minigolf-2000/\n\n![Minigolf 2000](https://img.shields.io/badge/Holes-18-green) ![License](https://img.shields.io/badge/License-MIT-blue)\n\n---\n\n## Features\n\n- **18 unique holes** with progressive difficulty\n  - Easy (Holes 1-6): Simple layouts for beginners\n  - Medium (Holes 7-12): More complex with obstacles\n  - Hard (Holes 13-18): Challenging precision courses\n- **Realistic physics** - velocity, friction, bouncing\n- **Obstacles** - walls, sand traps, water hazards, bumpers\n- **Touch \u0026 mouse controls** - drag to aim, release to shoot\n- **Score tracking** - par comparison, hole-in-one detection\n- **Sound effects** - synthesized audio, no external files\n- **Fully responsive** - works on desktop and mobile\n\n---\n\n## How to Play\n\n1. **Click/tap near the ball** to start aiming\n2. **Drag away** from the ball to set direction and power\n3. **Release** to shoot\n4. Get the ball in the hole in as few strokes as possible!\n\n### Scoring\n\n| Score | Meaning |\n|-------|---------|\n| Hole in One | 1 stroke on any hole |\n| Albatross | 3 under par |\n| Eagle | 2 under par |\n| Birdie | 1 under par |\n| Par | Expected strokes |\n| Bogey | 1 over par |\n| Double Bogey | 2 over par |\n\n---\n\n## Tech Stack\n\n- **React 18** - UI framework\n- **TypeScript** - Type safety\n- **Vite** - Build tool\n- **Tailwind CSS** - Styling\n- **HTML5 Canvas** - Game rendering\n- **Web Audio API** - Sound effects\n\n---\n\n## Development\n\n### Prerequisites\n\n- [Bun](https://bun.sh/) (or Node.js 18+)\n\n### Setup\n\n```bash\n# Clone the repository\ngit clone https://github.com/mguttmann/minigolf-2000.git\ncd minigolf-2000\n\n# Install dependencies\nbun install\n\n# Start development server\nbun run dev\n```\n\n### Scripts\n\n| Command | Description |\n|---------|-------------|\n| `bun run dev` | Start dev server at localhost:5173 |\n| `bun run build` | Build for production |\n| `bun run preview` | Preview production build |\n| `bun run lint` | Run ESLint |\n\n---\n\n## Project Structure\n\n```\nsrc/\n├── components/\n│   ├── GameCanvas.tsx    # Main game canvas with rendering\n│   └── HUD.tsx           # UI overlays (score, menus)\n├── game/\n│   ├── GameContext.tsx   # React context for game state\n│   ├── physics.ts        # Physics engine (collision, movement)\n│   ├── courses.ts        # 18 hole definitions\n│   └── sounds.ts         # Web Audio synthesizer\n├── types/\n│   └── game.ts           # TypeScript interfaces\n├── App.tsx               # Main app component\n└── main.tsx              # Entry point\n```\n\n---\n\n## Course Data\n\nCourses are defined in `src/game/courses.ts`. Each course has:\n\n```typescript\ninterface Course {\n  id: number\n  name: string\n  par: number\n  ballStart: Vector2D\n  hole: Hole\n  walls: Wall[]\n  obstacles: Obstacle[]  // sand, water, bumper\n  bounds: { width: number, height: number }\n}\n```\n\nAdd or modify courses by editing this file.\n\n---\n\n## Physics Constants\n\nTweak gameplay in `src/types/game.ts`:\n\n```typescript\nexport const PHYSICS = {\n  FRICTION: 0.985,        // Ball slowdown per frame\n  MIN_VELOCITY: 0.1,      // Speed to stop\n  MAX_POWER: 15,          // Maximum shot power\n  POWER_MULTIPLIER: 0.30, // Shot strength\n  BOUNCE_DAMPING: 0.7,    // Energy loss on bounce\n  SAND_FRICTION: 0.95,    // Extra friction in sand\n}\n```\n\n---\n\n## Deployment\n\nThe game auto-deploys to GitHub Pages on every push to `master`.\n\nWorkflow: `.github/workflows/deploy.yml`\n\n---\n\n## License\n\nMIT License - feel free to use, modify, and distribute.\n\n---\n\n## Credits\n\nBuilt with React, TypeScript, and retro vibes.\n\n**Play the game:** https://mguttmann.github.io/minigolf-2000/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmguttmann%2Fminigolf-2000","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmguttmann%2Fminigolf-2000","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmguttmann%2Fminigolf-2000/lists"}