Unity 6 · C# · Level & Systems Design Playable prototype

Herd
the Lights

A co-op herding game for 1 to 6 players, designed for a three-wall immersive room. Drive glowing glimmers into a pen, then seal the gate by standing in it together before time runs out. Built in Unity 6 in two days as a fast prototype: three rounds, three glimmer behaviours, scoring, per-round leaderboards, a full UI, and bots that play the game to test its difficulty.

🎮 Unity 6 · URP ⚡ C# 🧩 ScriptableObjects 🖥️ UI Toolkit 📊 Telemetry & Bot Testing
RoleSolo: design, programming, balancing and testing. Code drafted with AI assistance, music generated with ElevenLabs.
Timeline2 days
PlatformWindows, free download on itch.io

Free download from itch.io or GitHub Releases. No install needed: unzip and run.

01 · Playthrough
02 · Screenshots
01Hold the gate
Herd the Lights Round 3 with every gate slot filled, the HOLD THE GATE banner and the hold bar filling
Hold the gate: Every gate slot is filled and the team holds it while a bar fills
02Round 1
Herd the Lights Round 1 with six of fifteen glimmers in the pen and three white gate slots
Round 1: Herding glimmers toward the pen, six of fifteen already in
03Round 2
Herd the Lights Round 2 with plus three score popups as glimmers cross into the pen
Round 2: Score popups at the gate as glimmers are banked
04Round 3
Herd the Lights Round 3 with several glimmer types in different colours and a plus nine popup
Round 3: All three glimmer types on the field at once
05Seal the gate
Herd the Lights seal phase with orange gate slots lit and the SEAL THE GATE banner
Seal the gate: The seal phase: gate slots light up and every player must stand in one
06Start menu
Herd the Lights start menu with player count buttons from 1 to 6 and a start button
Start menu: Team select for 1 to 6 players, with bots filling the extra seats
01 / 06

03 · Level Design Document

The case study: why the game is built the way it is

A written design document covers the decisions behind the game, with the evidence for them. It is the best place to see how I think about level design, scoring and difficulty, and how I used AI tools in the work.

Core loop and phases

Intro, herd, seal and result, with one clear goal per phase and the cooperative seal as the key decision.

Glimmer types and rounds

Obedient, Skittish and Rebel behaviours, and how three rounds teach one skill each before testing them together.

Scoring and leaderboards

Integer scoring with seal, sweep and time bonuses, S to D grades, a board for each round and a final total.

Team size scaling

How glimmer counts and gate slots change for 1 to 6 players so every group size stays fair.

Evidence from bot tests

Telemetry from automatic bot runs across team sizes, what it changed, and how far to trust it.

How I used AI

Concrete examples of planning, playtesting and tuning with Claude, and where I overruled it.

🎯 What This Shows

  • UnityA complete game in Unity 6 and C#, from menu to leaderboard, with a Windows build released on itch.io.
  • Level designThree rounds that each teach one skill, and a pen and gate layout that scales from 1 to 6 players.
  • ScoringInteger scoring with seal, sweep and time bonuses, grades, and separate boards for each round and the final total.
  • Difficulty designDifficulty comes from glimmer behaviour, not just numbers, and the ramp is checked with bot telemetry.
  • Fast prototypingBuilt in two days, with a plan, a cut list and data-driven content so tuning stays quick.
  • AI tool usePlanning, code drafts, tuning from data, art and music, with examples and the limits written up in the design document.

⚙️ How I Prototyped It Fast

01

Plan and cut list first

The job brief became a build plan with a schedule, a cut list and one architecture rule: scripts only reference things below them and use events or interfaces upward.

02

Content as data

Rounds, glimmer types and team sizes are ScriptableObject assets, so a round can be retuned in the inspector without touching code.

03

Tight playtest loop

Play, report what felt wrong in plain words, fix, repeat. Glimmers sticking to walls and a seal bonus that never paid out each led to a specific change.

04

Let bots do the testing

One mouse cannot test a team of six, so bots play the game at six times speed and write results to CSV for the next tuning pass.

🕹️ Game Design

  • One goal per phase: herd, then seal, then result, so a stranger always knows what to do
  • Cooperation from the gate: herding can be shared loosely, but sealing needs every player in a slot at the same time
  • Three glimmer types: Obedient (3 points), Skittish (6, panic spreads) and Rebel (9, resists and drifts to the edges)
  • Lure: a click drops a short-lived pull point, the tool for Rebels near the gate
  • Risk and reward: harder glimmers are worth more, and sealing early trades stragglers for the time bonus
  • Team size scaling: glimmer counts, gate slots and slot width change for 1 to 6 players

🏆 Scoring and Leaderboards

  • Base: the points of every glimmer in the pen
  • Seal bonus: +20% when the gate is sealed
  • Sweep bonus: another +20% when every glimmer is in and the gate is sealed
  • Time bonus: 1 point per second left when the team seals and ends early
  • Grades: S to D from the share of a par score
  • Boards: a top ten for each round and team size, plus a final total for a full run
04 · Unity Systems Used

The Unity features studios ask for, all in one small game.

ScriptableObjects
Round definitions, team size config and glimmer type data assets
UI Toolkit
Runtime HUD and start menu built in code, with a PanelSettings scale setup
Input System
Mouse and keyboard through the new Input System package
Events and interfaces
Round state machine with C# events, and an IPlayerSource interface for humans and bots
Prefabs and spawning
Data-driven glimmer spawning from round definitions
URP and post-processing
Emissive materials, bloom through a Global Volume, orthographic top-down camera
MaterialPropertyBlock
Per-object colour without creating extra material instances
Procedural audio
Cues synthesised with AudioClip.Create, pooled AudioSources, beat-quantised scheduling
Layered music
Three stems that fade with pen fill and the seal phase
Steering AI
Flee, cohesion, separation, wander, edge drift and panic spread, weighted per type
Bot teammates
Lanes, flanking, target hand-off and a blacklist for stuck glimmers
Save data and telemetry
JSON leaderboards and CSV logs in persistentDataPath
Automated playtesting
Bot-only runs at 6x time scale across team sizes, with a summary CSV
Build pipeline
Windows standalone build, quality and render pipeline settings, released on itch.io

🛠️ Engineering Decisions

01

One controller owns the round

A single round controller runs the phases and raises events. HUD, audio, telemetry and menus listen and never call back, so each can be swapped without touching the others.

02

Humans and bots share one interface

Glimmers read player positions through an interface, so a mouse, a bot team or a future room tracking system all plug in the same way.

03

A startup order bug, fixed properly

Music sometimes did not play on first launch because the audio script subscribed to events in Start, and Start order between components is undefined. Subscribing in Awake fixed it.

04

Integer scoring on purpose

Glimmer points of 3, 6 and 9 keep every score a whole number while the time bonus stays at one point per second.

📊 What the Bot Tests Showed

  • A clear ramp: in the first pass the bots put about 100%, 80% and 60% of glimmers in the pen across Rounds 1 to 3
  • A scaling problem found: Round 3 got worse as teams grew, so I lowered glimmer counts for larger teams
  • After tuning: Round 2 averaged 78% and Round 3 62% in the latest pass, with no team size standing out as worse
  • Honest limits: no bot-only team brought every glimmer in during Rounds 2 and 3, so the bots set a floor, not a measure of human difficulty

Why bots at all

A room game is built for groups, but a solo developer has one mouse. Bot teammates let me play every team size, and bot-only runs gave me numbers to tune against instead of guesses.

05 · How I Used AI

I used Claude as a planning and coding partner. The decisions that shaped the game came from my own playtesting, and I installed and tested every change in Unity. The design document has the full write-up.

Planning

Turned the job description into a build plan with a schedule, a cut list and an architecture rule.

Code drafts

Most first drafts of the code were written by Claude. I tested each one and reported what I saw until it worked.

Tuning from data

I pasted the bot telemetry tables. Claude spotted Round 3 getting worse as teams grew and suggested lower counts. When a re-test looked worse, I asked for more runs per cell.

Where I overruled it

I asked for one-way wiring between components, chose 3, 6 and 9 as glimmer points, and rejected the first synthesised audio pass.

Music

The three music layers (base, drive and tension) were generated with ElevenLabs. All other sounds are synthesised in code.

Art

The game icon and the itch.io cover were drawn as SVG code with Claude from my brief. The in-game visuals are simple shapes and UI code.

06 · Known Issues and Next Steps

🔬 Cut for time and planned

Only the front wall is built, so the side walls and a room-view camera are still to do. Round 2's environmental pillar is cut, and the bots are weak against Skittish and Rebel glimmers. Next steps are playing each round with a human team to compare against the bot baseline, locking replays inside a run, and testing the three second seal hold with real groups.

07 · Download

Free on itch.io and GitHub Releases. Teammates beyond the first player are bots, so it plays with one mouse.

🪟
Windows, v0.1
64-bit, Windows 10+. No install needed: unzip and run. Windows may show a SmartScreen warning because the exe is unsigned (More info, then Run anyway).
Download on itch.io → Also on GitHub Releases →
🍎
macOS
Signed and notarised build
Planned
💻
Source
The Unity project, with scripts organised by area
GitHub →

Interested in Game Design and Unity Work?

If you are building experiences that need fast prototyping, clear systems and honest playtesting, get in touch.