Balancing and Tuning with Playtest Evidence
▶ PRESS START
Lucas P. Cordova, Ph.D.
Willamette University | Tuesday, November 17, 2026
The quest log
| When | What | Where |
|---|---|---|
| Today, in class | A first balance pass on your game | docs/balance.md in the team repo |
| Thu Nov 19, 9:40 AM | Stakeholder Review 3: stakeholders play what is pushed | Push before class. Printed review sheets |
| Thu Nov 19, 9:59 PM | Beta gate and content lock (500 points) | All content in; draft itch.io page; tag beta |
| Tue Nov 24 | Shipping: exports, release checklists, showcase prep | Class meets. No class Thu Nov 26 (Fall Break) |
| Tue Dec 1 | Final playtest and bug bash; Sprint 3 report | docs/sprint-3.md |
| Thu Dec 3 | Showcase: guests play your game | The classroom arcade, Ford 202 |
The beta requirement that today serves: difficulty numbers tuned against at least one playtest, with the tuning living in data (75 of the 500 points).
A player, a moment, and a number
| The challenge is | The player feels | What they do next |
|---|---|---|
| Far above their skill | Anxiety: nothing I try works | Quit, and tell a friend the game is broken |
| Far below their skill | Boredom: nothing here needs me | Quit, and forget the game |
| A step above their skill, and rising as they improve | Flow: focused, in control, losing track of time | One more run |
A number in your game is right or wrong only for a particular player at a particular moment.
A balance target is one sentence that names a player, a moment, and a number. A playtest can prove it wrong.
| Vague wish | Target |
|---|---|
| Maze 1 should be approachable | A first-time player escapes maze 1 within three tries |
| The gauntlet should be a challenge | Fewer than half of first-time players clear both mazes in their first five runs |
| Runs should feel quick | The median run lasts between 20 and 40 seconds |
| The boss should be tough but fair | A player who has cleared level 2 beats the boss by attempt five |
A game tuned only by its makers is tuned for two people. Balance it with players who have never seen it.
Every number, the ratios between them, and how far to turn one
| Knob | Value | Lives in | Turning it up makes the game |
|---|---|---|---|
speed (Blitz) | 300 | player.tscn, an export | Easier: Blitz outruns more |
chase_speed | 240 | rivals/chaser.tres | Harder: less room for mistakes |
sight_range | 320 | rivals/chaser.tres | Harder: chases start sooner |
give_up_range | 420 | rivals/chaser.tres | Harder: chases last longer |
frightened_time | 3.0 | rivals/chaser.tres | Easier: the fig buys more time |
catch_distance | 36 | main.tscn, an export on game.gd | Harder: near misses become catches |
This table is a tuning sheet: every knob, its value today, the file it lives in, and what it does. Week 6 moved these numbers into exports and Resources so that today no one edits a script to tune.
| Rival | chase_speed | Divided by Blitz's 300 | What the chase feels like |
|---|---|---|---|
| Wildcard | 180 | 0.60 | A stroll. Blitz leaves whenever Blitz likes |
| Ambusher | 200 | 0.67 | Pressure in tight halls, none in the open |
| Flanker | 220 | 0.73 | A wrong turn costs you |
| Chaser | 240 | 0.80 | Every dead end is a catch |
Target, playtest, read, turn one knob a long way, playtest again. That loop is the whole balance pass.
A run log, six runs, and what the log says
MAIN.TSCN, AT DEMO10-LAP1Main (Node2D) game.gd ├─ Maze, Player, Rival ├─ BerryStorm ├─ RunLog (Node) run_log.gd ├─ Audio (Node) └─ UI (CanvasLayer)
One new node with one script. It has one job: write a line every time a run ends.
The live demo starts on the tag demo10-lap1. Tag demo10-lap2 and branch demo10 are the catch-up points. project.godot is the same on all of them.
Open run_log.gd. The first half of record opens the file, or creates it with a header row:
const PATH := "user://runs.csv" var times: Array[float] = [] var escapes: int = 0 func record(outcome: String, maze_number: int, rival_name: String, seconds: float, berries: int) -> void: var file: FileAccess if FileAccess.file_exists(PATH): file = FileAccess.open(PATH, FileAccess.READ_WRITE) file.seek_end() else: file = FileAccess.open(PATH, FileAccess.WRITE) file.store_line("when,outcome,maze,rival,seconds,berries")
user:// is a folder Godot keeps for each project, outside the repo. It survives closing the game [5].In game.gd, the CAUGHT arm of _change_state gains one line (ESCAPED gains its twin):
State.CAUGHT: caught_sound.play() Scoreboard.report(time_alive) run_log.record("caught", maze_index + 1, _rival_name(), time_alive, berries)
At the bottom of game.gd, a helper names the rival by its stats file:
func _rival_name() -> String: return rival.stats.resource_path.get_file().get_basename()
chaser.tres becomes the word chaser in the log, so every row says which numbers were in play.With the game stopped:
runs.csv. Six rows, one per run, plus the header.| If the log shows | It suggests | First knob to turn |
|---|---|---|
| Every run ends in maze 1, in a few seconds | The opening is above a new player's skill | The rival a new player meets first |
| Every run escapes on the first try | Nothing here needs the player | chase_speed, up, a long way |
| Times spread wide, later runs longer | Skill matters and players are learning | None yet. Test more players |
Use the median. One lucky run drags an average a long way and leaves the median where it was.
A rival per maze, and a curve inside a maze
rival.tscn carries chaser.tres in its Stats slot, so maze 1 and maze 2 run the same numbers.chaser.tres, which also softens maze 2.| Maze | Job | Rival |
|---|---|---|
| 1 | Teach | Ambusher (0.67) |
| 2 | Test | Chaser (0.80) |
The plan: the maze decides which stats the rival runs. The rival stays one scene.
A level owns its difficulty as data. Adding a third maze means choosing a file, with no new code.
With demo10-lap1 open in Godot, game stopped:
maze.gd. Under the line signal exited, add the export shown on the right. Save the script.mazes folder and double-click maze_1.tscn.rivals folder. Drag ambusher.tres onto the Rival Stats slot.maze_2.tscn, click Maze, and drag chaser.tres onto its Rival Stats slot. Save the scene.In maze.gd, add one line:
signal exited @export var rival_stats: RivalStats
Save the script before opening the scene. The slot appears in the Inspector only after the saved script declares it.
In game.gd, inside _load_maze, add the two middle lines:
rival.patrol_points = maze.patrol_points() if maze.rival_stats != null: rival.stats = maze.rival_stats rival.calm()
Then:
game.gd.ambusher.chaser.stats the way it has since week 6.On the demo10 branch, rival_stats.gd gains two exports:
@export var pressure: Curve # multiplies chase_speed; x runs 0 to 1 across pressure_time @export var pressure_time: float = 30.0
In rival.gd, the CHASE arm multiplies by a new function:
State.CHASE: velocity = to_player.normalized() * stats.chase_speed * _pressure() func _pressure() -> float: if stats.pressure == null: return 1.0 return stats.pressure.sample(clampf(time_in_maze / stats.pressure_time, 0.0, 1.0))
sample reads its height at a position from 0 to 1 [5].Switch to the finished branch, then look:
git checkout demo10. In Godot, accept the reload prompt.rivals and double-click chaser.tres. Its properties open in the Inspector.A difficulty curve is how hard the game is, plotted against time or progress. In Godot it can be a literal curve that a designer drags.
| Players forgive | Players quit over |
|---|---|
| Losing to a rule they can see | Losing to something off screen or unannounced |
| A hard section followed by a short retry | A hard section followed by a long walk back |
| Difficulty that rises in steps they can feel | A spike that arrives with no warning |
| An enemy that behaves the same way every time | An outcome decided by a coin flip |
Two days to content lock
The rest of class is yours.
| Beta asks for | Before you leave today |
|---|---|
| All content in: every level, enemy, menu, and asset that will ship | Name what is still missing. Each piece gets an owner or gets cut |
| The full flow: title, play, win and loss, and a way back | Play it start to finish once, with nobody touching the editor |
| A first balance pass, tuned against a playtest, in data | docs/balance.md committed |
| A draft itch.io page with a build uploaded, linked in the README | One owner, and the page created today |
FEEDBACK.md answers Review 2; a content lock line in the README | Both written before Thursday morning |
What you know now
Thu Nov 19: Stakeholder Review 3 in class (push before 9:40 AM), then the beta gate and content lock at 9:59 PM. Tue Nov 24: shipping and showcase prep.
user://); Curve and FileAccess class references.github.com/LucasCordova/rival-brains, branch demo10, tags demo10-lap1 and demo10-lap2.