Project Dark

A 10-week FPS prototype with custom IK system, momentum-based movement, and modular gameplay architecture.

Project Overview

First-person shooter set aboard a derelict spaceship, inspired by System Shock and Alien. The player navigates dark corridors while fighting through hostiles in an atmospheric sci-fi horror setting.

Development Focus: While the original vision was an ambitious atmospheric horror experience, scope constraints led to prioritizing robust foundational systems over content creation. The project successfully demonstrates advanced gameplay programming through custom-built systems architecture.

Timeline: 10 week graduation project at Futuregames (March - May 2025)

Custom Procedural IK System

Runtime inverse kinematics for dynamic weapon handling with smooth state transitions.


Technical Implementation:
- Per-weapon IK target configuration (hand positions, rotations, blend weights)
- Smooth interpolated transitions between weapon switches (configurable transition time)
- Weight-based blending system for fine-tuned IK influence
- Supports both player and NPC characters
- Eliminates need for per-weapon animation sets

Architecture: Uses Unity's Animator IK callbacks to procedurally position hands each frame based on weapon-specific target transforms, with lerped transitions to prevent snapping between weapon states.

Screenshot 2026-02-04 114146
Screenshot 2026-02-04 114249
Screenshot 2026-02-04 114320

Player Systems Architecture

Comprehensive first-person controller with momentum-based movement, integrated weapon handling, and dynamic audio.


Movement & Physics
- Acceleration/deceleration-based movement system (configurable rates for sprint/aim states)
- Directional speed modifiers (backward/strafe movement penalties)
- Stamina system with sprint drain and idle regeneration
- Double-jump support with ground detection
- Enhanced gravity with fall multiplier for responsive feel

Camera & Input
- Smoothed mouse input using SmoothDamp for responsive yet polished camera control
- Configurable sensitivity, inversion, and pitch clamping
- Dynamic crosshair visibility based on ADS state

Weapon Integration
- Smooth ADS transitions via lerped weapon pivot positioning
- Dynamic aim point system using raycasts
- Handles weapon firing, reloading, switching (scroll + hotkeys 1-4)
- Fire mode toggling support (semi/auto)

Polish & Feedback
- Dynamic footstep system: adjusts interval and threshold based on movement state (walk/sprint/aim)
- Procedural screen shake using URP lens distortion
- Flashlight with battery management (drain/recharge)
- Audio variation for footsteps and jumps

Architecture: Modular design integrating Stats, WeaponInventory, InteractionController, and AudioManager systems.

Generic Interaction System

Interface-based interaction framework supporting diverse interactable objects with designer-friendly configuration.


Architecture:
- `IInteractable` interface defines interaction contract (Start/End/Trigger callbacks, UI configuration)
- `InteractableObject` base implementation with UnityEvents for visual scripting
- `InteractionController` handles raycast detection, state management, and input

Key Features:
- Raycast-based detection with configurable distance and layer masking
- State-aware transitions (OnInteractStart when player looks at object, OnInteractEnd when looking away)
- Per-object customizable interaction prompts and UI popups
- Unique ID system for tracking active interactions
- HUDManager integration for UI feedback
- UnityEvent support enables non-programmers to configure interactions in Inspector

Design Benefits: Interface-based approach allows any object to be interactable without inheritance constraints. Supports doors, pickups, NPCs, terminals, etc. with single unified system.

Additional Systems

Object Pooling: Ammo pooling system for performance optimization

Health & Stamina:Integrated stat management for player and enemies

Enemy AI System

  • Lightweight state-based enemy AI with patrol, chase, and attack states

  • Patrol behaviour implemented via four transform waypoints per enemy

  • NavMesh-driven traversal for environment-aware movement

  • Simple radius checks for player detection and disengagement

  • Attack / shooting logic executed while within combat range

  • Automatic fallback to patrol state when the player leaves detection radius

AI depth was consciously scoped down in favor of delivering robust core player and systems architecture.

Audio Management: Centralized audio system for effects and feedback

Post-Mortem

What Worked:
- Modular systems architecture enables rapid iteration
- IK system successfully eliminated need for per-weapon animation sets
- Momentum-based movement feels responsive and polished
- Interface-based interaction system proved flexible and designer-friendly

Scope Challenges:
- Ambitious System Shock-inspired vision exceeded 10-week timeline
- Focused on building robust foundational systems over content creation
- Enemy AI and level design were deprioritized to ensure core systems quality

Key Learning:
Project management and scope control in solo development. The technical systems built here demonstrate capability to architect complex, interconnected gameplay systems even when full game vision remains unrealized. Future projects will benefit from earlier scope validation and milestone planning.