SOURCE / PINNED RELEASE
Made of little things.
winniegolf
- Release
- 017b791c0f4b…
- Author-recorded commit
- 612845c125fd…
- License
- LICENSE
- Author’s source reference
- nostr://npub18weq5jzw27gkhwcuf6gu57alcptjdvh78nlulgpkz8s7pnlxfnnspc00s9/wss%3A%2F%2Fgit.napplet.soy%2F/n-2d501957e21
Archive hash verified: 713b42364f27a576…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
# Winnie Golf — design brief
## Scope
```
d-tag / deployment name: winniegolf
new build or port: new build from the soyLI boilerplate
single-purpose job: play one round of 10 top-down mini-golf holes, in order, with rising difficulty
must-have flows: title -> putt through 10 holes -> per-hole result -> round result -> replay
optional flows: pause/resume, restart a hole, aim-guide toggle, persisted best round
visual direction: "Sunday broadcast" — see below
form factor: 240x180 minimum (notice below), live resize to full screen, touch portrait + landscape
target runtime: standard NIP-5D shell; no hard NAP requirements
known gaps: no audio (NAP-MEDIA coordination not exercised here), no gamepad support
```
A round is short (ten holes, a few minutes), so one napplet is the right size.
No Nostr reads or publishes are part of this experience, so OUTBOX is not used.
## NAP boundary
| Need | Domain | Status | Fallback |
| --- | --- | --- | --- |
| Persist best round | `storage` | optional | in-session best only, with a visible "scores are not saved in this shell" note |
| Aim guide / effects / HUD size / player name settings | `config` | optional | stylesheet + module defaults (`aimGuide on`, `effects on`) |
| Shared top-3 round board | `cvm` | optional | leaderboard section hidden; round fully playable |
| Player name for the board | `identity` | optional | configured `playerName`, then "Guest" |
| Everything else (physics, rendering, input) | — | napplet-owned | none needed |
`requires` is omitted: the round is fully playable in a shell that injects no
domains at all. There are no relay escape hatches, no external bytes, no direct
network surface and no app-local message domains.
The shared board is the soyLI backend `soy_board_submit` / `soy_board_read`
contract (`round-strokes-v2`, lowest strokes wins, range 5–300). It is not a
hard requirement: `leaderboardAvailable()` gates on the injected `cvm` domain
and the generated backend context, and a failed submit or read only hides the
section. Names are rendered as plain text. A repeat or worse score cannot
inflate a personal best on the board.
## Visual direction
**Character.** *Sunday broadcast* — a mini-golf course seen from directly above
with the crisp overlay graphics of televised golf coverage. The one distinguishing
idea is the **mow-striped fairway**: alternating mowing bands that instantly read
as a real course and give every hole a strong graphic identity at any frame size.
**Main surface.** Top-down course on a bed of darker rough. Fairway carries the
stripes; bunkers are soft rounded sand blobs; the island hole is water with a tan
shoreline where the land meets it. Rails and blocks are pale stone with a shaded
lower edge so they read as raised. The cup is a dark hole with a red pennant on a
thin pole and its own ground shadow. The ball is white with a soft drop shadow and
a short fading trail.
**Interface.** A single translucent ink-navy broadcast bar across the top of the
stage — not a separate chrome row, so the course keeps the whole frame. Cream
type, brass-gold numerals for strokes, red for under par. Labels are uppercase
and tracked; numerals are tabular so counts do not jitter. Buttons are chunky and
rounded with a visible brass focus ring. Motion is short and physical: a dashed
aim line, a power ring around the ball, dust on rail hits, a splash in water, a
pop and a wave of the pennant when the ball drops.
**Why this suits it.** Mini golf is a game of geometry and commitment; the striped
fairway makes orientation obvious at a glance, the broadcast bar keeps score legible
without covering the course, and the red pennant gives a single focal accent that
the whole palette is built around.
**Palette roles.** Scene: `--turf-a` / `--turf-b` (mow bands), `--rough`,
`--shore`, `--sand`, `--water` / `--water-deep`, `--rail` / `--rail-shade`,
`--cup`, `--ball`, `--flag`. Interface: `--hud-bg`, `--hud-fg`, `--brass`,
`--accent`, `--under-par`, `--over-par`. Hazard, score and selection states each
keep their own colour and are never driven by the host theme.
**Theme policy: app-owned** (`FOLLOW_HOST_THEME = false`). The course colours are
semantic — sand, water, fairway and the score states must not shift with the shell.
No surface adopts host colours; host light/dark changes and a missing theme domain
must leave the game looking identical.
**Proof state to inspect.** Hole 3 mid-aim: dashed aim line leaving the tee across
the bunker, power ring at ~70%, strokes and running total in the broadcast bar.
Frames: `240x180` (minimum), `320x560` portrait, `900x600`, full screen. The
listing cover should be hole 5's island green, which reads as golf in one glance.
## Levels
Difficulty rises by *kind* of challenge, not just by length.
| # | Name | New challenge |
| --- | --- | --- |
| 1 | First Light | none — a clean diagonal with two rails to bank off |
| 2 | Dogleg | a divider wall with a gap; the return path is blocked, so a bank or a tight thread is required |
| 3 | Sandbar | a full-height bunker you must carry (the ball dies on contact with the sand) plus a narrow gate |
| 4 | Windmill | a rotating blade you must time, two bumper pegs, and a 54-unit gate onto the cup |
| 5 | Island Green | water on every side of a 45-unit land bridge; only the ball's *centre* in the water costs a stroke and returns to the last dry spot, so the bridge can be threaded |
| 6 | Millrace | full-height sand carry into a timed blade that guards the gate onto the cup |
| 7 | Toll Bridge | two 50-unit water bridges; pegs crowd every landing |
| 8 | Needle | sand-lined lane, a pillar split, pegs on the approach, sand behind the cup |
| 9 | Riptide | S-path over water; the blade sweeps the first narrow bridge from the water |
| 10 | Crucible | three crossings, a sand choke, a peg gauntlet, and a blade on the cup pad |
Par totals 2 / 3 / 3 / 5 / 4 / 5 / 5 / 5 / 5 / 5 = **42**. Windmill is the longer,
more timing-heavy hole and sits fourth; Island Green closes the first five.
Needle and Riptide set up Crucible, which stacks those ideas.
Course geometry is authored in a 560 x 400 logical space and scaled to the frame.
When the frame is portrait the course is rotated 90 degrees so it uses the height
instead of letterboxing into a small strip; input is mapped back through the same
transform, so aiming is unaffected.
## Input
- **Pointer / touch:** aim by pointing (mouse hover) or dragging on the course — direction only. A mouse click on the course putts at the current power. Touch never putts from the course.
- **Power:** the dock slider (tap or drag), or hold Up / W and Down / S. Left / Right or A / D fine-tune the aim.
- **Putt:** the dock button, Space, or Enter. A slider putt is always a real stroke; the floor is 6%.
- **Keyboard:** the scheme above, Esc or P pauses, R restarts the hole, N advances after a hole. Confirmation keys ignore auto-repeat.
- **Gamepad:** not implemented, and not claimed.
Input state is cleared on blur and on visibility change so nothing sticks when the
frame loses focus.
## Density and tiers
- **tiny (below 240x180):** a useful minimum notice, game hidden, resumes intact above the threshold.
- **compact (240–359 wide or short height):** broadcast bar drops the hole name and label text, keeping hole badge, strokes, running total and a 44 px pause button.
- **regular (360+):** full bar with hole name and labels.
- **wide (900+):** larger HUD type and a roomier course; the course scales up rather than stretching.
- Touch targets stay at or above 44 px on coarse pointers.
