How theacidjaguar/purrgram works
Purrgram is a native macOS desktop pet. The main workflow is a running menu-bar app that advances a simulated cat among the user’s windows and draws it on screen; users can interact with the cat and manage its needs and appearance. Cat behavior is separated into decision-making, interactions, and pose generation, while views and a pixel painter handle presentation. The README documents local saves and offline operation; sampled excerpts do not show the save implementation or all UI wiring, so those connections are omitted.
Main entry points: Cat.swift Cat simulation · App.swift App runtime · World.swift Desktop world · Render.swift Offline rendering
Components 17
App runtime
- App runtime
Sources/App.swift - Desktop world
Sources/World.swift - App bootstrap
Sources/main.swift
Cat behavior
- Cat simulation
Sources/Cat.swift - Behavior planning
Sources/CatBrain.swift - Cat interactions
Sources/CatInteractions.swift - Pose generation
Sources/CatPoses.swift - Toys and props
Sources/Props.swift
Pixel presentation
- Cat and bowl views
Sources/Views.swift - Pixel painter
Sources/Painter.swift - Offline rendering
Sources/Render.swift
State and settings
- Preferences UI
Sources/Settings.swift - Saved state
Sources/State.swift - Coat definitions
Sources/Coats.swift - Sound effects
Sources/Sound.swift - Shared helpers
Sources/Helpers.swift
Other components
- Mac user
Connections 15
- Mac user → App runtime: uses
README.md - App runtime → Cat simulation: manages
Sources/App.swift - App runtime → Desktop world: uses
Sources/App.swift - App runtime → Preferences UI: opens
Sources/App.swift - Cat simulation → Desktop world: queries
Sources/Cat.swift - Behavior planning → Cat simulation: extends
Sources/CatBrain.swift - Cat interactions → Cat simulation: extends
Sources/CatInteractions.swift - Pose generation → Cat simulation: extends
Sources/CatPoses.swift - Toys and props → Desktop world: uses
Sources/Props.swift - Toys and props → Cat simulation: uses
Sources/Props.swift - Cat and bowl views → Cat simulation: uses
Sources/Views.swift - Cat and bowl views → Pixel painter: uses
Sources/Views.swift - Offline rendering → Desktop world: uses
Sources/Render.swift - Offline rendering → Cat simulation: uses
Sources/Render.swift - Offline rendering → Pixel painter: uses
Sources/Render.swift