Gravity Golf is a minimalist putting game set in space, made for the 2015 js13k contest. There are no hills or bunkers, only planets, and each one tugs on the ball. Land the ball on a small red marker in as few strokes as you can. Gravity Golf is a gentle introduction to how gravity bends motion, and a dotted preview lets you experiment before every shot.

How a hole works

Layouts are random. The first hole has three planets, and each hole after that adds one. The ball appears in open space and drifts until it settles on a planet. When its outline turns yellow, you can hit it.

Press and hold anywhere, then move the pointer in the direction you want the ball to go. The distance between pointer and ball sets the power. Dots show the predicted path while you hold. Release to shoot, and the stroke counter goes up.

Touch the red marker at any moment, even mid-bounce, and the hole is done. Your stroke count shows briefly, then a new layout loads.

Gravity Golf Controls

Controls for Gravity Golf
ActionMouseTouch
Aim and set powerPress and hold, then move toward where the ball should go; farther from the ball is harderTouch and drag the same way
Take the shotRelease the buttonLift your finger

The science behind the curve

Real gravity works much like this. Every mass pulls on every other mass, and the pull is stronger for bigger objects and closer distances. When the ball passes several planets, all of those pulls combine. That is why a shot can curve one way, then bend back the other.

The game turns this into a puzzle about vectors, quantities with both size and direction. Your shot is one vector, and each planet adds its own. Watching the dots react as you sweep the pointer gives you a feel for how small changes in angle grow into big changes in where the ball ends up.

Strategy for fewer strokes

  1. Sweep the pointer slowly in a circle and watch the dots before you commit.
  2. Use bounces on purpose. A soft skip off a nearby planet is often safer than a long flight.
  3. Prefer gentle shots that settle close to the marker over bold slingshots.
  4. Watch the biggest planets. They bend paths the most.
  5. Plan to arrive on the same side of the planet as the marker.

Saving, Devices and Play Time

Touch aiming works, but the ball and marker are small, so a tablet or the full-screen button helps. Each hole takes a minute or two. For golf with clubs and wind, try Coding Golf. For hand-built putting holes, see Mini Putt Park.

Tested and updated: