把桌面图标变成打砖块的砖块Turn your desktop icons into breakout bricks
游戏运行期间隐藏真实桌面图标,把壁纸原样留作背景;砖块是程序自己绘制的、用真实桌面图标图片做的图块。关闭游戏后图标显示恢复原状,位置在原理上不可能被改变。During play the real desktop icons are hidden and your wallpaper stays as the background. Bricks are drawn by the game using your actual icon bitmaps. Close the game and the icons come back exactly where they were - their positions can never be changed, by design.
先看隐私,再看玩法Privacy first, then gameplay
整个程序对系统唯一的写操作,就是切换桌面图标列表的显示状态。The only write this program ever performs is toggling the desktop icon list view visibility.
这个项目里有什么What's inside
8 个量化特效、道具与多球、两种砖块布局,以及一条常驻的右侧控制栏。Eight quantified effects, power-ups and multiball, two brick layouts, and a persistent right-side control bar.
局部顿帧Local hitstop
命中只冻结那颗球 66ms(连击≥5 时 96ms,按真实时间),挡板、其它球、道具和 sim 时间轴照常推进,不会整屏卡顿。A hit freezes only that ball for 66ms (96ms at combo 5+). The paddle, other balls, power-ups and simulation keep running.
8 个特效Eight effects
顿帧、trauma 震屏、砖块闪白、16 块碎片、挤压拉伸、14 段拖尾、连击升调、终结慢镜。全部按真实时间计,不受倍速影响。Hitstop, trauma shake, brick flash, 16 shards, squash and stretch, 14-sample trails, rising combo pitch and finale slow motion - all in real time.
道具与多球Power-ups & multiball
22% 掉落率:球分裂、宽挡板、加命、减速。全部球掉光才扣 1 命;限时增益按真实时间计。22% drop chance: multiball, wide paddle, extra life, slow ball. You only lose a life when every ball is gone.
两种砖块布局Two layouts
默认网格模式纯程序生成;可切「原样」模式,只通过 UI Automation 读一次位置快照,仍然只读、不写回。Procedural grid by default, or the original desktop distribution read once through UI Automation - read-only, never written back.
常驻控制栏Persistent control bar
右侧 240 DIP:状态、暂停、重开、显示/隐藏桌面图标、0.5×~4× 倍速、退出并还原,告警与兜底提示常驻。240 DIP on the right: status, pause, restart, icon visibility, 0.5x-4x speed, exit and restore, plus warnings and the fallback hint.
四道恢复兜底Four restore fallbacks
finally、两个未处理异常事件、窗口关闭事件与看门狗;启动第一件事先无条件 SHOW 归位。finally, two unhandled-exception hooks, window-closed event and a watchdog; startup always normalizes visibility first.
一键运行Get started
Windows + .NET 8 SDK(或只装 .NET 8 桌面运行时即可玩便携版),无需管理员权限。Windows plus the .NET 8 SDK - or just the .NET 8 Desktop Runtime for the portable build. No admin rights.
git clone https://github.com/ytl1202/desktop-breakout.git
cd desktop-breakout
run.cmd
# 或者从源码or from source
dotnet run --project src/AppHost/AppHost.csproj -c Release
# 跑 36 项 headless 单测run 36 headless tests
dotnet run --project tests/DesktopBreakout.Tests/DesktopBreakout.Tests.csproj -c Release
# 现场自检(M0 验收)on-site probe (M0 acceptance)
dotnet run --project src/AppHost/AppHost.csproj -c Release -- --probe
Space 暂停 / R 重开 / I 显示或隐藏真实桌面图标 / 1 2 3 4 倍速 / Ctrl+Alt+Q 退出并还原。Move the mouse to control the paddle, left-click to launch. Space pause / R restart / I toggle real desktop icons / 1 2 3 4 speed / Ctrl+Alt+Q exit and restore.已知限制Known limits
仅主显示器Primary monitor only
窗口铺主显示器全屏,模式 B 也只读主显示器桌面视图的位置。The window covers the primary monitor; the original layout reads only that desktop view.
依赖 alpha 穿透Layered-window alpha hit testing
部分远程桌面 / 虚拟机合成器下逐像素命中测试可能失效,砖块仍可见但鼠标穿透不生效,控制栏仍可点。Some remote or virtual compositors may break per-pixel hit testing; bricks stay visible and the control bar still works.
帧率与录屏Frame rate & demo
目标 1080p@120fps 依赖高刷屏与 DWM;演示 GIF 是分镜生成的示意动画,不是实机录屏。1080p@120fps depends on a high-refresh display and DWM; the demo GIF is a storyboard animation, not a screen recording.