Game

I started developing games when I was 9 years old. Below are the games I developed during my undergraduate years.

I am fortunate to have been an exec of UIUC GameBuilders for years, leading teams to develop 4 games across 2 years. All those memories at UIUC GameBuilders and Stu/dio are valuable to me.

Game Archive

我与游戏

从九岁的 Scratch,到大学里的游戏社团

一

我第一次做游戏,是九岁,小学四年级。

那时候用的是 Scratch,一个拿积木拼程序的平台。“移动 10 步”,“碰到边缘就反弹”,“说‘你好!’2 秒”。我把这些积木一块一块拖出来,拼在一起,屏幕上那只小猫就真的动了起来。那是我头一回知道,一个东西可以因为我而动。

我建了一个 QQ 群,做好一个游戏,就发到群里去。回合制的,横版跳跃的,格斗的,前前后后做了二十来款,大多奇奇怪怪。现在想来,那个群算是我的第一个发行平台。

《成绩大作战》画面:A 方和 B 方的生命、攻击、防御数值,两个火柴人对打,两边各站着一只 Scratch 小猫
《成绩大作战》(2017),一款回合制的 Scratch 游戏。输入双方的名字和三科成绩,算出属性和技能,然后自动开打。

初二那年,我做了一个有点像《元气骑士》的游戏,拿去参加全国的 Scratch 游戏大赛,得了第一名,奖金一千块。这是我这辈子头一回靠比赛挣到钱。我高兴得很,高兴里还带着点不敢信:做游戏这件事,原来也能拿冠军。回头看,那也是我第一个算得上完整的游戏。

小学的时候,我还学过一阵 Free Pascal,想打信息学奥赛,当一个 OIer。上了初中,学校里没有教练,也找不到别的门路,这件事就慢慢搁下了。要是当年成了,我现在大概走的是另一条路。不过 Pascal 终究是我第一门一个字母一个字母敲出来的编程语言,这一点改不了。

二

初中那几年,我又摸了很多做游戏的工具:魔兽争霸的地图编辑器 YDWE,RPG Maker,GameMaker。我还用 App Inventor 做出了自己的第一个安卓 app。

这些工具能做出很多东西,可它们大多还是拼积木,用不着写代码。做得越多,我越觉得缺了点什么,像是隔着一层玻璃看东西,看得清,摸不着。我想要更专业、更规矩的那一套:真正写代码,真正做游戏。

我看上了 Unity。这是一个用 C# 写游戏逻辑的商业引擎,《王者荣耀》是拿它做的,后来的《原神》也是。初三那年我开始自学,可那会儿英文差,很多东西也理解不了,最后只是照着官方的入门教程,把 Ruby's Adventure 做了一遍,就草草收了场。中考要来了。

三

上了高中,我才算正经学会了一门编程语言。我自学了 Java,也头一回弄明白什么叫面向对象。高二那年,我用纯 Java 和它自带的图形界面,写了一个文字 RPG 冒险游戏。为了这个游戏,我写了几万字的设定,起名叫《科幻文字游戏大纲》。从那时起,我做游戏才真的是在“编程”了。

后来我重新拾起 Unity,看了更多的案例。我的第一个 Unity 作品是一个文字放置游戏,想学的是《小黑屋》和《猫国模拟器》。那时候真是边看教程边写,大部分代码是抄的,抄的时候也不知道为什么要这样写。可是抄着抄着,慢慢地,我自己也会写了。

这件事我后来常常想起。人学一样东西,大概都是先学得像,然后有一天,不知不觉就会了。

第二个作品,是一个学《云顶之弈》的 2D 自走棋。这个就难多了:棋子要有 AI,技能要成体系,程序的各个部分之间还得互相传话。我就是那时候去翻设计模式的,单例、工厂、策略、中介者,看一个用一个,觉得用得上、能让代码好一点,就往里放。所以写到一半,代码重构了好几回。再后来升学的压力压上来,这个游戏做到一半,就鸽了。

四

到了大学,我开始系统地上计算机的课。学了 C++,总算大致弄懂了指针和内存管理;Python、汇编、Rust、JavaScript 和 TypeScript,也都碰了碰。

更幸运的是,我终于能把大把的时间花在做游戏上了。

我加入了学校的游戏开发社团。十几个志同道合的人,每学期挑一款成功的经典游戏,照着它做一款自己的。第一款学的是《黑帝斯》(Hades),一个 2.5D 的肉鸽动作游戏;第二款学的是《胡闹厨房》(Overcooked),几个人挤在一间厨房里合作做菜。我从一个普通的开发者,做到了主程(programming lead):设计游戏的架构,给大家排进度,带着一群人往前走。我这才知道,一群人做游戏,要操心的远不止代码:谁做哪一块,哪天要交,两个人写的东西怎么接到一起。

《Sugar & Slice》的战斗画面:石砌墓室里拖出一道冲刺的轨迹 《Beetle Bistro》的大厅:三只昆虫厨师都已准备好
社团最早做的两款游戏:《Sugar & Slice》和《Beetle Bistro》。

每隔几个月,我还会去参加 Game Jam,在二十四或者四十八小时里做完一个游戏。这种事很熬人,常常一宿不睡,可是很难忘,也值得。我因为做游戏交到了很多好朋友,也攒下了一大堆工程上的经验。

大一暑假,我在一家小公司实习,做的是 LLM、XR 和游戏交叉的东西:用 ChatGPT 驱动 VR 世界里的 NPC。玩家开口跟它说话,它会回答,会走动,会做动作,甚至会伸出手,和玩家牵在一起。在当时,这样的东西还很少见。

VR 世界里的动漫 NPC,站在昏暗的紫色房间中,头顶显示对白
《Reborn AI》里的 NPC。

后来我又去腾讯实习:在 IEG 用 UE5 做《PUBG Mobile》,在微信事业群写 Unity 内存分析工具。初三那年我看上 Unity,知道《王者荣耀》是拿它做的。几年以后,我走进了做《王者荣耀》的那家公司。

那个社团叫 GameBuilders。我刚加入的时候,对一群人合作做游戏一窍不通,是个菜鸟;后来做到 tech lead,最后进了 exec。这几年里,我认识了很多志同道合的人,也去了 GDC 2025。这一切,对我意义非凡。

五

写到这里,我才发觉,把我领上计算机这条路的,几乎都是游戏。

我拖出的第一块积木,是为了一个游戏。第一次去翻设计模式,是为了教一盘棋里的棋子学会打架。第一次学着带一群人,是因为一个游戏得做完。有好些年,我并不知道自己在学的东西叫“计算机科学”。我只是想让一个东西动起来,再让它动得好一点。

现在我做的研究是 AI agent,让它们从交互和失败里学习,一回比一回做得好一点。有时候我觉得,这跟我小时候干的事也差不多:照着教程抄代码,抄着抄着就会写了;写乱了,就推倒重来。

回头看,那扇门是九岁那年,屏幕上一只橘黄色的小猫替我推开的。那时候我不知道门后面有多大。现在也还不知道。

Games and Me

From Scratch at nine to a college game club

I

I made my first game when I was nine, in fourth grade.

I made it in Scratch, where you build programs by snapping blocks together. Move 10 steps. If on edge, bounce. Say Hello! for 2 seconds. I dragged the blocks out one at a time and fit them together, and the cat on the screen began to move. It was the first time I knew that something could move because of me.

I started a group on QQ, the chat app most Chinese kids used back then, and posted each game there when I finished it: turn-based battles, side-scrolling platformers, fighting games. I made twenty or so, most of them odd little things. Looking back, that group was my first publishing platform.

Grade Battle screen: stats for sides A and B, two stick figures fighting, and a Scratch cat on each side
Grade Battle (2017), a turn-based Scratch game. Enter both players' names and their grades in three subjects, and it works out stats and skills, then plays the fight by itself.

In eighth grade I made a game a lot like Soul Knight and entered it in a national Scratch game competition. It took first place and a prize of 1,000 yuan, the first money I ever earned from a contest. I was thrilled, and a little disbelieving that making games could win you anything at all. It was also the first game I would call finished.

In elementary school I had also learned some Free Pascal. I wanted to compete in the Olympiad in Informatics and become what Chinese students call an OIer. My middle school had no coach and I found no other way in, so I let the plan go. If it had worked out, I might be on a different road today. Still, Pascal was the first language I ever typed out letter by letter, and that stays true.

II

In middle school I tried every game-making tool I could find: the Warcraft III map editor YDWE, RPG Maker, GameMaker. I also built my first Android app with App Inventor.

You could make a lot with those tools, but most of them were still blocks, with no code to write. The more I made, the more I felt something missing, as if I were looking at the work through a pane of glass. I wanted the proper, disciplined version: real code, real games.

I set my sights on Unity, a commercial engine where you write game logic in C#. Honor of Kings was built on it, and later Genshin Impact would be too. In ninth grade I started teaching myself. My English was poor and much of it went over my head. In the end I followed Unity's official beginner tutorial, Ruby's Adventure, and stopped there. The high school entrance exam was coming.

III

In high school I finally learned a programming language properly. I taught myself Java and, for the first time, understood what object-oriented programming meant. In eleventh grade I wrote a text-based RPG in plain Java with its built-in GUI toolkit. I wrote tens of thousands of words of worldbuilding for it, in a document I called An Outline for a Sci-Fi Text Game. From then on, making games meant programming.

Then I went back to Unity and worked through more examples. My first Unity project was an idle text game, modeled on A Dark Room and Kittens Game. I followed tutorials as I built it. I copied most of the code, often without knowing why it was written that way. But I kept copying, and slowly I found I could write it myself.

I've thought about that often since. You learn most things this way, I think. First you imitate, and then one day you notice you can do it on your own.

My second project was a 2D auto-battler in the style of Teamfight Tactics, and it was much harder. The units needed AI, the skills needed a system, and the parts of the program needed to pass messages to each other. That was when I started reading about design patterns: singleton, factory, strategy, mediator. I learned each one and put it in wherever it seemed to help, so I refactored the code several times along the way. Then exam pressure caught up with me, and I left it half finished.

IV

In college I took computer science courses in earnest. I learned C++ and came to more or less understand pointers and memory management. I also picked up some Python, assembly, Rust, and JavaScript/TypeScript.

Better still, I could finally give real time to making games.

I joined the school's game development club. Every semester a dozen or so of us picked a classic, successful game and built our own version of it. The first was modeled on Hades, a 2.5D roguelike action game. The second was modeled on Overcooked, where everyone crowds into one kitchen and cooks together. I started as one of the developers and became programming lead: I designed the architecture, planned the schedule, and kept the team moving. I learned that a team has much more than code to worry about: who builds which part, when it's due, how two people's work fits together.

Sugar & Slice combat: a dash trail across the floor of a stone crypt room Beetle Bistro lobby: three insect chefs marked Ready
Sugar & Slice and Beetle Bistro, the club's first two games.

Every few months I also joined a game jam, where you finish a game in 24 or 48 hours. Jams were exhausting and often cost me a night's sleep, and they stayed with me. Games brought me a lot of good friends and a great deal of engineering experience.

The summer after freshman year I interned at a small company working where LLMs, XR, and games meet. I worked on using ChatGPT to drive NPCs in a VR world. Players spoke to them out loud, and the NPCs answered, walked, gestured, and even reached out to hold the player's hand. Back then, very few people had built anything like it.

Anime NPC standing in a dim, purple-lit VR room with a line of dialogue overhead
An NPC in Reborn AI.

Later I interned at Tencent: UE5 on PUBG Mobile at IEG, and Unity memory-profiling tools at the WeChat Group. When I set my sights on Unity in ninth grade, I knew Honor of Kings was built on it. A few years later I walked into the company that made Honor of Kings.

That club was GameBuilders. When I joined, I knew nothing about making games with other people. I went on to become tech lead and finally an exec. Over those years I met many like-minded people, and I went to GDC 2025. All of it means a great deal to me.

V

Writing this down, I realize that nearly everything that brought me to computers came through games.

The first block I ever dragged out was for a game. The first time I read about design patterns, I was trying to teach the pieces on a game board how to fight. The first time I learned to lead a team, it was because a game had to get finished. For years I didn't know that what I was learning was called computer science. I only wanted to make something move, and then make it move a little better.

Now I research AI agents that learn from their interactions and their failures and get a little better each time. Sometimes it seems not so different from what I did as a kid: copying code out of tutorials until I could write it myself, and starting over when it fell apart.

Looking back, an orange cat on a screen opened that door for me when I was nine. I didn't know then how big the room behind it was. I still don't.