Legless
TEAM PROJECT

LEGLESS

Gameplay Programmer | Animator | VFX

Unity C# 2D University

PROJECT OVERVIEW

This is a 2D top-down survival horror game developed in 10 weeks by a five-member team from Abertay University’s Professional Masters in Games Development (MProf). Players control a legless protagonist, injured by a terrifying Butcher and trapped inside his domain. With no ability to run, the player must crawl through dark environments using stealth, sound awareness and limited resources to survive. The goal is to escape the Butcher’s place without being detected. Noise attracts the enemy, and mistakes can be fatal.

This project gave me experience working as the sole programmer in a multidisciplinary team, where I was responsible for implementing and integrating the gameplay systems in Unity using C#.

ROLE

Gameplay Programmer | Animator | VFX

ENGINE

Unity

LANGUAGE

C#

PROJECT TYPE

Team Project

PROJECT DURATION

3 Months

GAMEPLAY

TECHNICAL BREAKDOWN

I developed a modular state machine to manage the player’s core behaviours, including Idle, Movement, and Death. Each state handles its own logic through a shared base state, while the State Manager controls updates and transitions between states. This keeps the player code organized, maintainable, and easy to extend.

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

I developed a procedural animation system that dynamically controls the player’s head and hand IK positions based on the character’s facing direction. I rigged the 2D character sprites and used weight painting to support smooth deformation during movement. The system generates procedural poses for front, side, and back directions, with support for contextual actions such as holding a match.

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

I implemented and integrated the game’s user interface systems, including the main menu, in-game HUD, inventory, tutorial UI, loading screen, noise indicator, and pause menu. I also developed the supporting C# logic and UI animations to connect these interfaces with gameplay systems and provide clear and responsive visual feedback to the player.

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

I implemented the enemy AI using a finite state machine with separate behaviours for roaming, movement, attacking, and idle states. I used Unity’s NavMesh system for navigation and handled state transitions based on the enemy’s interaction with the player. I also created and integrated the enemy animations to visually support each AI behaviour and gameplay state.

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

I used ScriptableObjects to separate gameplay data from runtime logic and keep key systems easy to configure and maintain. I created reusable data assets for character settings, save data, inventory data, and procedural animation settings, allowing values to be adjusted directly in the Unity Inspector without changing code.

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

I developed a save and load system that stores the player’s progress using JSON files. The system serializes gameplay data including player position and health, inventory and key items, tutorial progress, and world states. I also created a converter to transfer runtime ScriptableObject data into serializable save data, keeping the save logic separated and easy to maintain.

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

I created a custom Shader Graph to control the player’s visibility when hiding. The shader blends the player sprite with a configurable colour and transparency value, allowing the character to smoothly fade when entering or leaving a hiding state. This provides clear visual feedback to the player while keeping the effect easy to control through gameplay code.

Interaction system code snippet Interaction system code snippet