← All projects

Open Day Game Demo

A short-session 2D platformer for a university Computer Science open day, where each level turns a CS module into a puzzle.

  • Unity
  • C#
  • UML
  • Testing

A Unity platformer built as my MSc dissertation project, engineered end to end with a traditional software engineering process: requirements, UML design, iterative development and layered verification.

The problem

A Computer Science open day needs something in the room that draws prospective students over and shows what CS students actually build. The constraints are what make it interesting: a play session of a few minutes, almost no instructions, and bright enough to catch attention without drowning out the conversations with staff that the day is really for.

What I built

Three levels, each built around a CS module rather than just themed on one:

  • Object-Oriented Programming & Data Structures — spawn crates from a blueprint (instantiating objects from a class) and stack them to clear a wall too high to jump (a stack, physically).
  • Software Engineering & Project Management — run three terminals, Requirements → Build → Test, to open a deploy gate. Run them out of order and the whole pipeline resets, so sequencing mistakes cost you the work.
  • Databases — primary keys open their matching foreign-key doors, and you can carry only one key at a time, which turns it into a planning problem.

Around that: a title screen, pause menu, save and resume, Xbox controller support, and per-level music.

Key technical decisions:

  • Scenes generated from code. Every level is built by an editor script rather than by hand, so all four scenes stay consistent and can be deleted and regenerated identically from version control.
  • One interface, three mechanics. A single IInteractable interface lets one interact button drive three unrelated puzzles without the input code knowing anything about them.
  • Design first. Class, use case, state, sequence and activity diagrams shaped the code before it was written.

Results

  • 25 automated tests across Unity’s EditMode and PlayMode suites, all passing.
  • Verification caught a bug playtesting would have missed. Calculating the player’s maximum jump height showed the original Level 1 obstacle was lower than the player could jump, so the puzzle could be skipped entirely. It failed by being too easy, which is exactly the kind of bug play doesn’t flag.
  • A tooling lesson worth knowing: running Unity’s test runner with -quit exits before any tests start, writes no results and still reports success.
  • Still to do: the planned open-day evaluation didn’t take place, so the game hasn’t yet been tested with real players. That’s the next step.