{"_id":"@aeon-games/gravity-golf","_rev":"2-88af9638c0ac88ec806ffa36764bff03","name":"@aeon-games/gravity-golf","dist-tags":{"latest":"5.0.0"},"versions":{"5.0.0":{"name":"@aeon-games/gravity-golf","version":"5.0.0","_id":"@aeon-games/gravity-golf@5.0.0","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"dist":{"shasum":"05812c42322435d6e4e0b950143c610b2ea665b7","tarball":"https://registry.npmjs.org/@aeon-games/gravity-golf/-/gravity-golf-5.0.0.tgz","fileCount":9,"integrity":"sha512-Kf1TVTwiicskaOUVNbZKumT1ILPUCft8WvVsxAscxVYHJACsq6DOAKqxDDHRiwZ1U5bU/uFO04pIeZRgA+VCkw==","signatures":[{"sig":"MEQCIArNj/lzm4py0A9IX30OWlFTlEPueVRm5n835topGfnFAiA9OYsx1N8XdwzLxZ5hDfWd50fygUsK/tc0B/TQAuDhHw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":72594},"main":"src/index.tsx","gitHead":"ae54b0df6ac98ed86b037accafa16cf218dda541","scripts":{"forge:deploy":"bun ../../../apps/aeon-forge/src/cli/cli.tsx deploy . --oneshot"},"_npmUser":{"name":"buley","email":"buley@outlook.com"},"_npmVersion":"11.8.0","description":"Gravity Golf","directories":{},"_nodeVersion":"25.5.0","dependencies":{"react":"^19.0.0","@aeon-games/engine":"workspace:*"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/gravity-golf_5.0.0_1773156582986_0.11638107048736579","host":"s3://npm-registry-packages-npm-production"},"deprecated":"This package is deprecated and no longer supported. Do not use."}},"time":{"created":"2026-03-10T15:29:42.441Z","modified":"2026-03-27T20:31:18.545Z","5.0.0":"2026-03-10T15:29:43.130Z"},"description":"Gravity Golf","maintainers":[{"name":"buley","email":"buley@outlook.com"}],"readme":"# Gravity Golf\n\n## Purpose\n**Gravity Golf** is a physics-based puzzle game within the Aeon Games ecosystem. It reimagines traditional golf on a hexagonal grid, introducing \"gravity wells\" that dynamically alter the ball's trajectory. Players (and agents) must account for gravitational pull, friction, and environmental obstacles to sink the ball in the fewest strokes possible.\n\n## Key Features\n- **Hexagonal Physics**: Ball movement and collision detection optimized for a radius-7 hexagonal board.\n- **Gravity Wells**: Strategic points on the map that exert a pull on the ball, requiring players to \"slingshot\" or compensate for curved paths.\n- **Dynamic Course Layouts**: Multiple holes with varying par values, obstacle configurations, and gravity well placements.\n- **Strokes & Scoring**: Traditional golf scoring (Birdie, Par, Bogey) adapted to the hexagonal simulation.\n\n## Key Files\n- `src/index.tsx`: Core game implementation, including the physics engine, gravity simulation, and course generation.\n- `package.json`: Package metadata and dependencies.\n- `tsconfig.json`: TypeScript configuration.\n\n## Usage\nThe `GravityGolf` component is used within the Aeon Games platform:\n\n```tsx\nimport GravityGolf from '@aeon-games/gravity-golf';\n\n<GravityGolf \n  gameId=\"galactic-open-2026\"\n  onComplete={...}\n/>\n```\n\n## Mechanics\n- **Phases**:\n    - `aiming`: Click a hex to set the initial shot direction and power.\n    - `rolling`: The physics engine simulates movement, applying gravity and friction.\n    - `scored`: The ball has reached the hole or come to a stop.\n- **Physics**:\n    - **Gravity**: Inverse-square law simulation for gravity wells.\n    - **Friction**: Velocity decay over time (0.85 coefficient).\n    - **Collision**: Bouncing mechanics for board boundaries and walls.\n","readmeFilename":"README.md"}