Open History to see the last commit
1# Jerry
2
3A tiny desktop expedition: one hopelessly committed explorer climbs your windows, abseils down their sides, and parachutes across your screen in search of a missing sock.
4
5Build for macOS first, then bring it to Windows once the movement and comedy work.
6
7## 1. Prove the desktop interaction
8
9Build a minimal Mac app with a transparent overlay, a menu bar control, and one placeholder explorer.
10
11- Detect the position and stacking order of open windows.
12- Turn visible window tops and sides into platforms and climbing routes.
13- Let the explorer walk, climb, fall, and land.
14- Keep normal desktop clicks, typing, scrolling, and window dragging working. Pass mouse events through everywhere except directly on an explorer, and do not take keyboard focus.
15- Let the user grab and drag the explorer out of the way. Suspend its autonomous movement while held; on release, let it settle on a platform or parachute safely down, then resume exploring. Give it a short settling period so it does not immediately walk back into the way.
16- Add pause and quit controls in the menu bar.
17
18Done when: the explorer can climb a real window, be dragged aside, and respond sensibly when you move, resize, or close a window, while you continue using the computer normally. Verify that dragging works without activating the app and that clicks outside the character reach the underlying windows. This is the main technical risk, so tackle it first.
19
20## 2. Build one complete adventure
21
22Give the explorer a destination and a short sequence:
23
241. Spot a possible sock on another window.
252. Climb to a launch point.
263. Jump and deploy a parachute.
274. Land and investigate.
285. Discover a patterned sock.
296. Mark the map with unjustified confidence.
30
31Add abseiling as another way down, plus recovery behaviours for missed landings and disappearing platforms.
32
33Done when: this sequence is entertaining to watch and survives ordinary desktop use.
34
35## 3. Refine the explorer’s personality
36
37Keep one character: fearless, confidently wrong, and prone to misreading maps. Vary his moods, hesitations, equipment mishaps and moments of competence. Refine his shared rig and animation until the personality reads clearly at desktop size.
38
39Done when: his movement and reactions feel expressive without needing dialogue or extra characters.
40
41## 4. Give him an ongoing mission
42
43Build a small collection of expedition scenes:
44
45- Investigating fluff and other false leads.
46- Hauling oversized equipment up a window.
47- Establishing a camp in an inconvenient place.
48- Recovering his kettle from an inconvenient ledge.
49- Spotting the sock just before it escapes.
50
51A simple expedition director picks scenes according to the available terrain, avoids frequent repetition, and leaves quiet stretches between events. Save progress between launches so his journey feels continuous.
52
53Done when: he can entertain you over several sessions without constantly demanding attention.
54
55## 5. Make it comfortable to live with
56
57- Support multiple displays and changing display arrangements.
58- Handle sleep, wake, full-screen apps, and desktop switching.
59- Keep CPU and battery use low.
60- Offer a few controls: activity level, sound, pause, and launch at login.
61- Package a signed Mac app for testing and distribution.
62
63Done when: you can leave it running during a normal working day without it getting in your way.
64
65## 6. Bring it to Windows
66
67Keep terrain, movement, mission rules, and animation definitions separate from Mac-specific window handling. Build the Windows overlay and window detection around those same behaviours and assets.
68
69Prioritise getting the Mac version right; the first prototype should help decide how much code is worth sharing.
70
71## Technical direction
72
73- macOS: Swift, AppKit, and SpriteKit.
74- Transparent, non-activating desktop overlay with mouse events passed through to underlying apps except within tightly fitted explorer hit areas. Use a separate input layer or small non-activating character panels for dragging; verify the AppKit approach in the first prototype rather than making the entire overlay intercept input.
75- Window geometry and stacking order provide terrain; window contents are not needed for the expedition.
76- Behaviour rules and a lightweight scene director provide personality without an AI service.
77- Keep platform-specific window discovery and overlay handling separate from expedition behaviour and asset definitions.
78
79## First milestone
80
81One draggable explorer, one display, real window climbing, one parachute jump, and one patterned sock. This should establish whether the central idea feels alive before building the whole expedition.
82
83## Later ideas
84
85Optional ideas to explore after the core expedition works, outside the first milestone:
86
87- **The user is his mysterious benefactor.** Dragging an explorer across a gap earns an awestruck salute. He records it as excellent leadership.
88- **Equipment has consequences.** A parachute occasionally opens into a picnic blanket. They land safely, then reluctantly have lunch.
89- **Monitors become continents.** They establish a departure camp at the boundary between displays. The first crossing gets an unnecessarily elaborate ceremony.
90- **The sock is nesting.** It steals flags, ropes, and unattended sandwiches to furnish its hiding place.
91- **Their map remembers the desktop.** Landmarks acquire names based on actual expedition events: "The Great Browser Cliffs" and "The Valley Where Brian Fell." Generate these from geometry and expedition history without reading window contents.
92- **Rare moments of competence.** After dozens of mishaps, he executes a perfect crossing, gives himself a tiny salute, and immediately walks the wrong way.
93- **An expedition journal.** Open a little journal from the menu bar, with entries inspired by events: "Day 12. The giant moved the mountain again. Morale adequate. Biscuits low."