LEGLESS
Gameplay Programmer | Animator | VFX
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#.
Gameplay Programmer | Animator | VFX
Unity
C#
Team Project
3 Months
GAMEPLAY
TECHNICAL BREAKDOWN
STATE MACHINE (FOR CHARACTER LOGIC)
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.
CODE SNIPPETS - STATE MACHINE
PLAYER PROCEDURAL ANIMATION
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.
CODE SNIPPETS - PLAYER PROCEDURAL ANIMATION
EDITOR SNIPPETS - PLAYER PROCEDURAL ANIMATION
USER INTERFACE IMPLEMENTATION
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.
CODE SNIPPETS - USER INTERFACE
ENEMY AI
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.
CODE SNIPPETS - ENEMY AI
SCRIPTABLE OBJECT
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.
CODE SNIPPETS - SCRIPTABLE OBJECT
GAME SAVE SYSTEM
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.
CODE SNIPPETS - GAME SAVE SYSTEM
PLAYER HIDE SHADER GRAPH
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.
SHADER SNIPPETS - PLAYER HIDE SHADER GRAPH