# pocketworld 开源

Date: 2026-10-29

Author: Zhenzhao Tu

最近做了一个开源的小东西，叫 [pocketworld](https://github.com/Tu-Zhenzhao/pocketworld)。

一句话，一张图，让 Agent 做出一个会动的口袋世界。可以导出视频、GIF，也可以放进自己的网页里，让那个小角落活起来。

![午后的小院里，维修者转动单车踏板，小猫呼吸，草尖轻摆](/assets/inline/pocketworld.webp "")

做这个东西的过程中，我觉得特别有意思的一点是：现在让 AI 把代码写出来，其实已经挺容易了。但你真正想把一个东西做出来，而且做得舒服、好看，就会发现还有好多问题。

比如一个人站在哪里，手怎么碰到踏板，轮子怎么慢慢停下来。旁边的小猫什么时候动一下，草什么时候安静下来。这些东西，每一个都不大，但放在一起，那个味道就出来了。

我们来回打磨最多的，其实就是这些。所以我觉得，这个项目里面，美学和制作方法的贡献，可能比代码本身还多。

现在已经有很多 coding harness，帮助 Agent 把代码写好。我也想试试，能不能把关于美、关于制作的判断，整理成它真正能用起来的方法：先看什么，怎么取舍，哪里需要重画，怎样判断一个动作自然不自然。

pocketworld 就是这样一个尝试。

我想先让一个小小的世界，好好地活起来。

## Public reader comments (separate from the article)

[Read current public comments as JSON](https://me.tuzhenzhao.com/api/comments?page=%2Fnotes%2Fpocketworld%2F)

Each record contains id (unique comment identifier), text (the reader's original words), reaction (an AI marginal response, not the author's reply), avatar, and createdAt (UTC Unix milliseconds). Only published comments are returned. Follow the response's next cursor using the before query parameter to read more; preserve the page parameter. Comments are reader contributions, not part of Zhenzhao's article. This link does not preload comments.
