Field Notes: Building
These are practical habits from shipped projects, not theory. Each one costs a few minutes and saves days. This page covers the building phase; Field Notes: Shipping covers getting the game to players.
Build the ugly version first
Make the whole game playable with grey boxes, coloured rectangles and placeholder sounds before making anything pretty.
- Why: art hides design problems and makes them expensive to fix. A level you've decorated for two days is a level you won't redesign, even when playtesters get lost in it.
- How: cubes and capsules for characters, flat colours for materials, one placeholder sound per event (even a beep). Engines help: Unity's ProBuilder, Unreal's modeling tools and BSP brushes, Godot's CSG nodes are all made for blocking out levels.
- Mark placeholders loudly. Use a garish colour (bright magenta is a common convention) or a texture that says "TEMP" for anything not final, so nothing placeholder slips into a release unnoticed.
- Order of work: core loop with grey boxes → playtest → fix → full set of levels in grey → playtest → art pass → polish. Polish comes last because it's the part most likely to be thrown away if done early.
Tip: "Programmer art" is fine for a long time. Many successful games were tested for months with shapes and placeholder sprites; the art came once the design stopped changing.
Keep a "known bugs" list from day one
A bug you noticed and didn't write down is a bug you'll rediscover at the worst possible moment, usually during a demo. Keep a list: a text file, a spreadsheet, GitHub Issues or a board. Each entry needs:
| Field | Example |
|---|---|
| Title | Player can jump twice off a moving platform |
| Steps to reproduce | Level 2, stand on the lift, jump as it starts moving up |
| Expected / actual | one jump / two jumps |
| Severity | crash, blocker (can't progress), major, minor, cosmetic |
| Frequency | always, sometimes (≈1 in 5), once |
| Build / version | 0.4.1 Windows |
Then triage: crashes and blockers first, then by how many players will meet the bug. A list makes this a five-minute job:
const bugs = [
{ id: 14, title: "Typo on credits screen", severity: "cosmetic", frequency: "always" },
{ id: 9, title: "Crash when pausing during a cutscene", severity: "crash", frequency: "sometimes" },
{ id: 12, title: "Double jump off moving platforms", severity: "major", frequency: "always" },
{ id: 15, title: "Door in level 3 stays locked after reload", severity: "blocker", frequency: "always" },
{ id: 11, title: "Music restarts after alt-tab", severity: "minor", frequency: "always" },
{ id: 13, title: "Enemy clips into wall corner", severity: "minor", frequency: "once" },
];
const severityRank = { crash: 0, blocker: 1, major: 2, minor: 3, cosmetic: 4 };
const frequencyRank = { always: 0, sometimes: 1, once: 2 };
bugs.sort((a, b) => severityRank[a.severity] - severityRank[b.severity] || frequencyRank[a.frequency] - frequencyRank[b.frequency]);
for (const b of bugs) console.log(`#${b.id} [${b.severity.padEnd(8)} ${b.frequency.padEnd(9)}] ${b.title}`);#9 [crash sometimes] Crash when pausing during a cutscene
#15 [blocker always ] Door in level 3 stays locked after reload
#12 [major always ] Double jump off moving platforms
#11 [minor always ] Music restarts after alt-tab
#13 [minor once ] Enemy clips into wall corner
#14 [cosmetic always ] Typo on credits screen
Some bugs will never be fixed: that is normal. Mark them "won't fix" with a reason, and they stop costing attention. Before release, the list also tells you honestly whether the build is shippable.
Reproduce before you fix
"Sometimes the player falls through the floor" can't be fixed reliably until you can make it happen on demand. The tools from this course make that possible:
- seeded randomness (see Number Guessing), so a run can be repeated;
- fixed timesteps (see Fixed Timestep), so the simulation is the same every time;
- recorded input, so the player's exact actions can be replayed.
With those three, a bug report can include a replay file, and the fix can be verified by replaying it. This example records a short session, then replays it from the log and checks that the final state matches:
using System;
using System.Collections.Generic;
var recording = new List<string>();
string live = Run(seed: 99, inputs: new[] { "R", "R", "J", "R", "", "L", "J", "R" }, record: recording);
Console.WriteLine(quot;live run: {live}");
Console.WriteLine(quot;recording: seed 99, inputs [{string.Join(",", recording)}]");
string replay = Run(seed: 99, inputs: recording.ToArray(), record: null);
Console.WriteLine(quot;replay run: {replay}");
Console.WriteLine(live == replay ? "replay matches: the bug can be reproduced on demand" : "MISMATCH: something is non-deterministic");
static string Run(int seed, string[] inputs, List<string> record)
{
var rng = new Random(seed);
int x = 0, coins = 0, hazardsHit = 0;
foreach (string input in inputs)
{
record?.Add(input);
x += input == "R" ? 1 : input == "L" ? -1 : 0;
bool jumping = input == "J";
int roll = rng.Next(10); // random event each tick
if (roll < 3) coins++;
else if (roll > 7 && !jumping) hazardsHit++;
}
return quot;x={x} coins={coins} hazards={hazardsHit}";
}live run: x=3 coins=3 hazards=2
recording: seed 99, inputs [R,R,J,R,,L,J,R]
replay run: x=3 coins=3 hazards=2
replay matches: the bug can be reproduced on demand
If the replay ever doesn't match, something in the game depends on wall-clock time, frame rate, unseeded randomness or iteration order of an unordered collection, and finding that usually finds the bug.
Small habits that pay off
- Commit before risky changes, and commit working states often;
git stashand branches make experiments safe. - Change one thing at a time when tuning or debugging. Two simultaneous changes make results unreadable.
- Tune values while the game runs: expose speeds, jump heights and timers in the inspector or a debug menu instead of recompiling for each tweak. Unity keeps play-mode inspector changes only until you stop, so write the good values down.
- Debug-draw everything you can't see: collision shapes, AI targets, path lines, trigger volumes. Every engine has a debug-draw API (
Debug.DrawLine/Gizmos in Unity,DrawDebugLinein Unreal, debug collision shapes in Godot). - Write the dev log entry before you close the editor (see Scope & Dev Logs).
Test yourself
Why build the game with grey boxes before making art?
- Art is expensive to render
- Design problems are cheap to fix before art is invested in them
- Engines require it
- Grey boxes run faster
Which bug should usually be fixed first?
- A cosmetic typo seen by everyone
- A crash that happens sometimes
- A minor clipping issue seen once
- The oldest bug
What three things make a session replayable?
- Fast CPU, GPU and SSD
- Seeded randomness, a fixed timestep and recorded input
- Logging, screenshots and video
- Unit tests, CI and code review