Skip to content
 
 

Repository files navigation

☀️⛳ Sunshine Golf Classic

Cover Image

An 18 hole golf course in real 3D! Every hole is built from a seed the moment you tee off. Inspired by classic golf games.

Shoot par or better on the classic to unlock remix mode, and get a brand new course every time you play. Your game is auto saved if you want to come back later.

Sunshine is where rainbows and unicorns meet, so I made a game celebrating the sun and natural beauty. The rainbows are everywhere once you look for them: swing meter, aim ring, ball trail, water, lens flare, and flowers.

Created by Frank Force for JS13k 2026

🕹️ Controls

Play with mouse or touch devices.

  • Use buttons above the meter to set club, spin and distance, and the side arrows turn.
  • Or use the arrow keys: left and right turn, up and down change club.
  • Click the view to toggle placement camera.
  • Mouse wheel sets distance.
  • Click the meter or press space to swing.

⛳ How to Play

  1. Aim with the arrows. A line draws the shot trajectory and the ring marks where it will land.
  2. Click once on the swing meter to start a swing.
  3. Click again to set the power.
  4. Click a third time to set accuracy. Click in the white band to strike it clean. Too early is a slice, too late is a hook.

Tips...

  • The preview trajectory does not take wind into account, so the wind is yours to read.
  • Backspin angles higher and stops faster, topspin angles lower and rolls farther.
  • Greens follow the land they sit on, so read the slope before you putt.
  • Water and out of bounds cost a stroke. At 5 over par you pick up and move on.

🌈 Features

  • 18 hole course, plus endless remix courses.
  • WebGL 3d rendering system included.
  • Procedural 3D terrain with hills, lakes, islands, and contoured greens that break your putts.
  • Wind you can see: it bends shots, rolls waves, sways trees and blows clouds.
  • Real flight physics with drag, lift, backspin and topspin.
  • An 11 club bag, starring the mighty 13 iron.
  • Sun rays, lens flare, rainbow trails and confetti.
  • Procedural music and sound effects.

All rights reserved — this code is here to be played and judged, not reused. See LICENSE. The LittleJS engine itself remains MIT licensed in its own repository.