Right 2 Roam
TEAM PROJECT

Right 2 Roam

Gameplay Programmer

Unity C# 3D University

PROJECT OVERVIEW

Right 2 Roam: Digital Edition is a cooperative serious digital board game developed in collaboration with Abertay Game Lab, based on the original board game designed by Dr Mona Bozdog and Robin Sloan. Players navigate different paths, encounter threats, and use Guardian cards while working together to ensure everyone reaches home safely.

I worked as the Lead Programmer, developing the core gameplay systems, board mechanics, player movement, UI/UX, immersive scenes, and performance optimisation. Through this project, I gained experience managing a large codebase, leading technical development, solving complex gameplay problems, mentoring teammates, and working closely with different disciplines. I also learned the importance of clean and modular code, early planning, clear communication, and adapting systems based on client and playtesting feedback.

ROLE

Gameplay Programmer

ENGINE

Unity

LANGUAGE

C#

PROJECT TYPE

Team Project

PROJECT DURATION

3 Months

CLIENT

ABERTAY GAME LAB

GAMEPLAY

TECHNICAL BREAKDOWN

At the early stage of development, I focused on implementing the dice mechanics for the board system. I utilised Unity’s physics system to create a realistic dice-rolling experience. Initially, I created a D6 dice prefab based on a reusable throwable object base. This prefab was attached to a ThrowableObject.cs script, which implements the IThrowable.cs interface to define standardised throwing behaviour The ThrowableObject.cs script is responsible for handling the dice throw using physics-based force and torque. To determine the outcome of each roll, I developed an additional script, ThrowableObjectSideController.cs, which detects the upward-facing side of the dice after it settles. This allowed accurate identification of the rolled value and integration with the game’s movement system.

Player movement code snippet 1 Player movement code snippet 2 Player movement code snippet 3
Player movement code snippet 1

I developed board card mechanics using a Card.cs script. This system manages different card types, including Guardian cards (Comforter and Defender) as well as threat cards such as Distress, Danger, and False Threats. Each card is further categorised into three levels: None, Level1, and Level2, allowing for structured handling of gameplay logic and interactions.

Inventory code snippet 1 Inventory code snippet 1 Inventory code snippet 1 Inventory code snippet 1 Inventory code snippet 1

I implemented a board consists of three possible paths from four corner starting points leading to the central location (Home), with a total of 172 board points. To implement this system, I initially researched and used Unity’s built-in spline system to represent the board paths. However, due to the nature of the game, where a single board point can branch into multiple connected paths (leaf nodes), the spline system became difficult to manage and scale. Additionally, as Unity’s spline system is still under development, it lacked several features required for handling complex branching structures effectively. I considered using a third-party spline solution such as Dreamteck Splines; however, this was a paid asset and did not align with the project constraints, as the client preferred not to use paid tools. As a result, I designed and implemented a custom path system using a graph-based approach. This system, developed through a BoardPoint.cs script inherited from IBoardPoint.cs interface, allowed for flexible representation of nodes and connections, making it easier to handle multiple branching paths and maintain the overall board structure efficiently.

Enemy system code snippet 1 Enemy system code snippet 1
Enemy system code snippet 1

The BoardController.cs script serves as the central system for managing overall board functionality. It controls player movement across the board, tracks the current player, board setup call, and handles board point interactions. It also manages the player switching system, distribution of starting cards, and general player input/control. In addition, it is responsible for triggering threat cards based on dice and coin outcomes, checking whether a player has reached the Home position, and managing various board-related audio events.

Interaction system code snippet Interaction system code snippet Interaction system code snippet Interaction system code snippet

The BoardSetupSystem.cs script is responsible for initialising the board by setting up all players based on PlayerDataSo.cs, a Unity ScriptableObject. It ensures that each player is correctly assigned to their starting position and properly configured before gameplay begins.

Interaction system code snippet Interaction system code snippet Interaction system code snippet

The game utilises two main camera systems: a board camera and a third-person scene camera, both managed through the BoardCameraSystem.cs script. The board camera is used for standard gameplay navigation, while the third-person camera is used for immersive scenes and cutscenes. I implemented camera transitions using Unity’s Dolly Spline system, allowing the camera to move in a wide, counterclockwise circular path when switching between views. This approach provided smooth and visually engaging transitions. Additionally, the third-person camera is used to render immersive sequences and the initial game start cutscene, enhancing the overall player experience. I also added camera shake using the BoardCameraShake.cs script.

Interaction system code snippet Interaction system code snippet Interaction system code snippet

Each player moves along different paths and board points based on dice outcomes and player decisions. This movement system is managed by the PlayerMovementSystem.cs script, which is attached to the board prefab. Additionally, each player is assigned BoardPlayer.cs and BoardPlayerMove.cs scripts to handle individual player state and movement behaviour.

Interaction system code snippet Interaction system code snippet Interaction system code snippet Interaction system code snippet

The BoardShortCutController.cs script is responsible for handling all shortcut points on the board. It manages the logic for players using a D10 dice and a coin flip to determine whether they can pass through a shortcut path.

Interaction system code snippet Interaction system code snippet Interaction system code snippet

The GameController.cs script is responsible for managing the overall game flow and core gameplay logic. It handles key states such as win and loss conditions, as well as Guardian card interactions, including drawing, giving, and validating whether a player can transfer cards. The script also manages the comparison between Guardian cards and threat cards to determine outcomes. In addition, it updates player data by adding or removing Guardian cards as required. The GameController.cs also controls the duration and execution of the starting cutscene, controls the board camera and third-person camera, making it a central component for coordinating both gameplay systems and state transitions.

Interaction system code snippet Interaction system code snippet Interaction system code snippet Interaction system code snippet Interaction system code snippet

The project includes a wide range of UI components such as the Main Menu UI, Rulebook UI, Credits UI, Fade In/Out UI, Player Eye Blinking UI, Board Tutorial UI, Board Timer and Turn UI, Hand Cursor UI, Board Tips UI, Pause Menu UI, End Game UI, In-Game UI, Shuffle Button UI, Dice Side UI, and Game Message UI. I implemented all UI systems using a consistent architecture, where each UI element is controlled by a dedicated script with a matching name. For example, the Main Menu UI is managed by MainMenuUI.cs, the Rulebook UI by RulebookUI.cs, the Credits UI by CreditsUI.cs, and the Fade In/Out UI by FadeInOutUI.cs. Similarly, gameplay-related UI elements are controlled by scripts such as BoardTutorialUI.cs, BoardTimerAndTurnUI.cs, PauseMenuUI.cs, EndGameUI.cs, and InGameUI.cs. Interactive UI elements like the Shuffle Button and Dice display are handled by ShuffleButtonUI.cs and DiceSideUI.cs, while feedback systems such as messages and tips are managed by GameMessageUI.cs and BoardTipsUI.cs. This structured naming convention and modular implementation improved clarity, maintainability, and scalability, allowing each UI component to be managed and updated independently.

Enemy system code snippet 1 Enemy system code snippet 1 Enemy system code snippet 1 Enemy system code snippet 1 Enemy system code snippet 1 Enemy system code snippet 1 Enemy system code snippet 1

Audio plays a significant role in the overall experience of Right 2 Roam. I had the opportunity to work closely with David Quinn on the audio implementation. Although this was his first time integrating audio into a Unity project through code, he demonstrated strong learning ability and quickly adapted to the workflow. To support the audio system, I initially developed a singleton audio manager class, AudioManager.cs, which provided core functionality such as Play, Play3D, Stop, StopAll, and Pause. I also implemented an AudioType.cs enum to categorise and manage different types of audio (e.g., UI, gameplay, ambient), allowing for more organised and scalable audio handling within the system. This established a structured approach for managing audio across the game. After demonstrating how the audio manager worked, David and I collaborated to integrate audio throughout the project. David used FMOD for audio design and implementation, taking advantage of Unity’s FMOD integration tools to connect and manage audio events within the game. Through this collaboration, we were able to effectively combine technical implementation with high-quality audio design, resulting in a cohesive and immersive sound experience.

Enemy system code snippet 1 Enemy system code snippet 1 Enemy system code snippet 1 Enemy system code snippet 1
Enemy system code snippet 1

I implemented a developer tool to significantly speed up testing by simulating a full game session within a few seconds. As Right 2 Roam typically takes 30-45 minutes (or longer) to complete, this tool was essential for efficient iteration and debugging. It allowed us to rapidly progress from the start to the end of the game, ensuring that all board paths and gameplay states were triggered during testing. This was particularly useful for validating end-game conditions, mid-game transitions, and audio implementation, especially for testing game-ending sequences and audio cues. The tool enabled both David and me to quickly verify audio behaviour and overall game flow without needing to play through the entire game repeatedly.

Enemy system code snippet 1