← 全部作品All work
项目Project 03 · 玩法设计 · 程序Game design · Code
NOT CHEATING
想偷看、怕被抓、还得装无辜——我负责把考场上这几秒钟的心跳,做成能玩的规则。The urge to peek, the fear of getting caught, the effort to look innocent — I turned those few seconds into playable rules.
概述Overview
考试时想偷看一眼,又怕被老师抓到——NOT CHEATING 把这几秒钟的心跳做成了一个小游戏。灵感来自《罗小黑战记》里的一个片段。标题本身就是一句心虚的否认:越想装得若无其事,每个小动作就越像在露馅。
Wanting to sneak a look during an exam while dreading the teacher’s gaze — NOT CHEATING turns those few seconds of heartbeat into a small game. It was inspired by a clip from The Legend of Luo Xiaohei. The title is itself a guilty denial: the harder you try to look innocent, the more every little move gives you away.
我负责的部分What I did
玩法设计与程序:把每个角色的动画状态接成可以操控的状态切换,设计老师巡视、突然回头和发现作弊的规则,让玩家在“再看一秒”和“赶紧装没事”之间做选择;再把进度条和胜负结算接进流程,调整整体节奏。
美术由小组同学负责。
Game design and programming: wiring each character’s animation states into controllable transitions, designing the rules for the teacher’s patrol, sudden turns and getting caught — so players keep choosing between “one more second” and “act natural” — then hooking up the progress bar and win/lose results and tuning the overall pacing.
Art by a teammate.
实机演示Gameplay
完整一局单人模式:趁老师不注意偷看、传纸条,老师回头时立刻装作在写字,最后拿到 A+。
A full single-player round: sneaking looks and passing notes while the teacher is away, snapping back to writing when they turn, and finishing with an A+.




Unity 实现In Unity
老师的视野是一块扇形检测区:老师在两个巡视点之间来回走,随机间隔转身;学生在检测框里做小动作,经过 0.2 秒的反应延迟才会被抓。这个延迟是调出来的——太短像是不讲理,太长又没有紧张感。
The teacher’s sight is a cone-shaped detection zone: they patrol between two points and turn around at random intervals. A student fidgeting inside the box gets caught only after a 0.2-second reaction delay — a tuned value: shorter feels unfair, longer kills the tension.

每个学生挂一个 StudentController:写字和抄答案的速度分开设置(10 / 14),抄比写快,诱惑就成立了;“主写者 / 抄的人 / 搭档”把两人一组的配合关系做成数据,同一套脚本就能复用到四个座位。
Each student runs a StudentController. Writing and copying speeds are separate (10 / 14) — copying is faster, so the temptation is real. Main writer / copier / partner turn the pairing into data, so one script drives all four seats.
Patrol
- Left / Right Point
- Transform
- Move Speed
- 2
- Reach Threshold
- 0.05
Detection
- Students
- 4 × StudentController
- Detect Box Size
- 10.05 × 13.2
- Detect Offset
- 6.07, −0.92
Detection Visual
- Flip Detect Visual
Catch Timing
- Catch Delay
- 0.2 s
Turn Back
- Min Turn Interval
- 2 s
Basic Info
- Student ID
- 4
- Current Action
- Idle
Progress
- Max Progress
- 100
- Write Speed
- 10
- Copy Speed
- 14
Role
- Is Main Writer
- Is Copy Student
- Partner
- character3
Logic State
- Is Caught
- Is Finished
End Expression
- Show Celebrate
- Show Sad
Inspector 中的脚本参数(整理自项目)Script parameters from the Inspector (transcribed from the project)
角色Characters
教室里有四名学生和一位巡视的老师,角色由小组同学绘制。
The classroom has four students and a patrolling teacher, drawn by a teammate.
学生的动画状态Student animation states
下面这张表就是程序里每个学生会切换的状态。“帮忙”是给同桌递答案的动作,只有同学 3、4 有,所以同学 1、2 这两格是空的。
This table is the set of states each student switches between in code. “Help” — passing answers to a deskmate — only exists for students 3 and 4, so those cells are blank for students 1 and 2.


无None无None



无None无None















老师The teacher



UIUI
手绘描边、纸张质感和剪贴字:进度条像课本上的涂鸦,结算画面像批改过的试卷(美术:小组同学)。
Hand-drawn outlines, paper texture and cut-out letters: the progress bar looks like a doodle in a textbook, and the result screens look like graded tests (art by a teammate).






