Repository navigation
v4.3.0 — Single-Image Pet Fallback, Procedural Animation & Boredom AI
What's Changed in v4.3.0
Added
- Minimal Single-Image Pet Fallback & On-Demand Memory Management (
app/AntigravityPet.cs,sidecars/panel/server.mjs,CUSTOM_PET_SPEC.md):- Pets now require as few as 1 base idle image (
idle.png/pet.png/avatar.pngorpet.jsonidleImage/image), automatically falling back from spritesheets and action folders while preserving full v1–v3 backwards compatibility. - Added on-demand decoding (
EnsurePackLoaded) and automatic asset release (UnloadAssets) on skin switches to avoid holding unused spritesheets in memory.
- Pets now require as few as 1 base idle image (
- Procedural Animation Engine (
app/AntigravityPet.cs):- Switched
_spriteImage.RenderTransformOriginto bottom-center(0.5, 1.0)with a 6-layerTransformGroup(_facingScale,_animScale,_dragScale,_animRotate,_dragRotate,_animTranslate) compatible with DPI scaling. - Added smooth procedural breathing (Idle), parabolic hopping + sway +
ScaleX = -1flipping (Walk), damped Squash & Stretch bounce (Click/Interact), gentle nodding/hopping (Running), and hardware-acceleratedBitmapScalingMode.HighQualityanti-aliasing.
- Switched
- Tiered Boredom State Machine & Privacy-First Keyboard/Mouse Interaction (
app/AntigravityPet.cs,sidecars/panel/,ui/settings.html,scripts/pet-mcp-server.mjs):- Added 3-tier idle progression (
0–2mbreathing →2–10mrandom hops/look-around/roam & overhead pixel cues.../?/♪→10m+squashed slow-breathing sleep with floatingZzz), with ~0.3s wake-up hop on task arrival, drag/click, or typing. - Added Windows Raw Input (
RIDEV_INPUTSINK) typing rhythm interaction using a 1.5s sliding key-count window (zero key-code/content logging), frequency-scaled squash/bounce impact, and a dedicated orbiting 3-star dizzy canvas (_dizzyCanvas) at >5 keys/s, plus 100ms cursor facing with dead-zone and 0.5s flip cooldown. - Added independent
boredomIdleandkeyMouseInteracttoggles in both Settings UIs (unregisters Raw Input when disabled).
- Added 3-tier idle progression (
Fixed
- Docked Edge Behavior & Status Block Visibility (
app/AntigravityPet.cs):- Paused procedural idle/boredom wobble while docked compact, compensated
GetDockedTargetLefthalf-peek offset (dockInset = 0.03 * StageWidth), pulled out the docked compact status block (Margin = 58 * Scale) so it is never clipped off-screen, and fixed/enhanced_statusHalovisibility.
- Paused procedural idle/boredom wobble while docked compact, compensated
Full Changelog: v4.2.0...v4.3.0