← 全部作品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.

类型Type
小品游戏Vignette game
我的工作My role
玩法设计 · 程序 · 节奏Game design · Programming · Pacing
美术Art
小组同学Teammate
团队Team
4 人小组Team of four
01

概述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.

02

实机演示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+.

实机录像(单人模式,有声音)Gameplay recording (single player, with sound)
老师在旁边时传纸条
老师在旁边时传纸条Passing a note with the teacher nearby
老师的视野扫过来
老师的视野扫过来The teacher’s line of sight sweeping in
趁老师在前面时抄答案
趁老师在前面时抄答案Copying while the teacher is up front
写满,拿到 A+
写满,拿到 A+Finished — an A+
03

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.

Scene 视图:老师的扇形视野(蓝线)和检测框(黄框)
Scene 视图:老师的扇形视野(蓝线)和检测框(黄框)Scene view: the teacher’s vision cone (blue) and detection box (yellow)

每个学生挂一个 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.

#TeacherController

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
#StudentController

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)

04

角色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.

写字Writing偷看·开始Cheat start偷看·结束Cheat end帮忙·开始Help start帮忙·结束Help end赢Win输Lose
同学 1Student 1WritingCheat startCheat end无None无NoneWinLose
同学 2Student 2WritingCheat startCheat end无None无NoneWinLose
同学 3Student 3WritingCheat startCheat endHelp startHelp endWinLose
同学 4Student 4WritingCheat startCheat endHelp startHelp endWinLose

老师The teacher

巡视
巡视Walking
发现作弊
发现作弊Cheating detected
突然转身
突然转身Sudden turn
05

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).

进度条 · 已满
进度条 · 已满Progress bar · full
进度条 · 空
进度条 · 空Progress bar · empty
胜利
胜利Win
失败
失败Lose
游戏结束
游戏结束Game over
A+
A+A plus
规则面板
规则面板Rules panel