eSheep 作者: Pablushka
Back to life to roam your desktop.A tiny pixel-art sheep that lives in your browser. It wanders around the page, hops onto headings and cards, naps in the corner, munches on things, and generally brightens up whatever you're browsing.
2 个用户2 个用户
扩展元数据
关于此扩展
This is a modern TypeScript port of the web version of DesktopPet.js. The public API is unchanged — new ESheep() followed by pet.Start(url) — while the internals have been modernized:
- Typed XML model parsed once into a Map (no per-frame DOM queries).
- Expressions compiled once and cached instead of eval() on every frame.
transform: translate3d(...) positioning (GPU-composited, no layout thrash). - Pointer events with drag support, plus a small drag threshold.
- Collision detection that follows the real page layout (borders and backgrounds).
- Destroy() cleans up the DOM, listeners and observers.
评分 0(1 位用户)
权限与数据
更多信息