Souls-Like Demo

SOULS-LIKE DEMO

"One boss. One arena. Pure combat."

Genre: Action / Boss Fight
Engine: Unreal Engine 5
Language: C++
Year: 2026

ABOUT THE PROJECT

Souls-Like Demo is a focused boss fight built in Unreal Engine 5 using C++. No story, no sprawling world, just one arena, one boss, and a combat system I could point to and say "I built that in C++."

The goal was simple: prove I can write gameplay systems in C++ at a level that matters for studios working in Unreal. My portfolio was heavy on Unity/C#, and I needed something that showed I could handle Unreal's architecture, memory model, and gameplay framework without relying on Blueprint as a crutch.

I scoped it deliberately small. One boss, one player, one arena. But within that scope, I went deep. Dual stance system, stamina-as-guard, i-frame dodges, a hand-rolled state machine for the boss AI, positional blood VFX, hitstop, the works. The kind of systems that make a fight feel like Dark Souls rather than just look like it.

SYSTEMS I IMPLEMENTED

Player Combat

The player has two stances: sword-and-shield and two-handed. Each has its own animation set, attack timings, and feel. Sword-and-shield is defensive with access to blocking, two-handed hits harder but leaves you exposed. Swapping stance mid-combat changes your options, and I wanted both to feel like valid choices rather than one being obviously better.

Stamina doubles as your guard meter. Blocking chips stamina instead of health. Run out while blocking and you get guard broken, which triggers a knockdown into a punish window. This creates a decision loop: do you block and risk the break, or dodge and risk mistiming? I spent a lot of time tuning the stamina costs to make both feel viable.

Dodge has i-frames at the start of the animation, not throughout. If you panic-roll late, you get hit. But here's the thing I'm proud of: when your stamina is empty, you can still roll, but it becomes an exhausted roll with no i-frames. You get the movement, but not the safety. It's a "get out of jail but not free" mechanic that punishes poor stamina management without completely killing you.

Healing works like Elden Ring flasks. You have limited charges, the animation is interruptible, and it restores a fixed amount. Trying to heal at the wrong moment gets you killed. The boss doesn't politely wait.

Boss AI

The boss runs on a hand-rolled enum-based state machine. I didn't use Unreal's behaviour trees. Partly because I wanted to understand state management at a lower level, partly because for a single boss with clear states, an enum machine is simpler to debug and tune.

The states are: Idle, Chase, Attacking, Combo, Recovery, HitReact, Flinch, Staggered, Knockdown, GetUp, Death, and ReturnToSpawn. Each state has clear entry conditions, exit conditions, and handles its own logic. The boss picks attacks based on distance and cooldowns, chains combos using a timer-based sequencer, and has a poise system where enough damage in a window triggers a stagger.

The leap slam gave me the most trouble. The boss kept colliding with the player mid-air and stopping dead. The fix was disabling collision during the leap and re-enabling on land, but getting the timing right with the animation took more iterations than I expected. Small details like that don't show up in a feature list, but they're where the time actually goes.

When the player dies, the boss returns to spawn, resets health, and waits. No restart required, just respawn and go again. I added this late but it made testing so much faster that I wish I'd done it earlier.

Game Feel

Hitstop on both player and boss hits. Just a few frames, but it makes impacts feel weighty. Camera shake on heavy attacks scales with damage. Blood VFX spawns at the actual hit location using Niagara, with directional spray based on the attack angle. The blood only spawns on actors with a HealthComponent, so environmental hits don't bleed.

Here's a detail I'm proud of: during i-frames, blood and camera shake are suppressed. If you dodge through an attack, you don't get phantom feedback for a hit that didn't land. It sounds small, but it makes successful dodges feel clean rather than confusing.

Audio

Every sound category (sword swings, impacts, footsteps, boss roars) pulls from a randomised pool with pitch variation. No two swings sound identical. Volume is controlled per-category so I could mix without touching individual cues.

Music crossfades when combat starts. Ambient track fades out, boss theme fades in. Boss has contextual voice lines (aggro, attack, death) with cooldowns so he doesn't spam. The audio isn't revolutionary, but it's implemented properly rather than just dropped in.

UI

Player health bar with a delayed damage indicator. When you take a hit, a yellow ghost bar shows where your health was, then drains to catch up. It's a small touch but it makes damage feel more impactful and gives you a moment to register what just happened.

Boss health bar only appears when combat starts. Death screen and victory screen trigger appropriately. Nothing fancy, but it frames the experience properly.

FEATURES

Player Systems

  • Dual stance combat (sword-and-shield / two-handed) with unique movesets
  • Stamina-as-guard with guard break into punish window
  • I-frame dodge with exhausted roll fallback when stamina depleted
  • Interruptible flask healing with limited charges
  • Knockdown recovery with invulnerability frames on getup
  • Dynamic lock-on targeting system
  • Hurt-cancel system with tuneable delay windows

Boss AI

  • Hand-rolled 12-state enum state machine (no behaviour trees)
  • Distance and cooldown-based attack selection
  • Timer-sequenced multi-hit combo system
  • Poise system with stagger threshold and flinch windows
  • Leap slam with mid-air collision management
  • Time-based acceleration curves for natural movement
  • Auto-reset behaviour on player death

Game Feel & Polish

  • Frame-precise hitstop on all combat impacts
  • Damage-scaled camera shake system
  • Positional blood VFX with directional spray (Niagara)
  • I-frame feedback suppression (no false hit indicators)
  • Delayed damage UI with ghost health bar
  • Dynamic music crossfade on combat engagement
  • Randomised audio pools with per-category mixing
  • Contextual boss voice lines with cooldown system

WHAT I LEARNED

The biggest lesson was the difference between "it works" and "it feels good." I had a working dodge early on. It moved the player, it had i-frames, it consumed stamina. Technically correct. But it felt floaty and unresponsive. I spent days tuning the same handful of numbers: dodge distance, i-frame window start and end, recovery frames, input buffer. The final version is maybe 15% different in the code, but 100% different in feel.

The exhausted roll mechanic came from a bug. Originally, dodging with no stamina just failed. But playtesters kept dying in situations where they knew they needed to dodge but couldn't. It felt unfair, even though it was technically their fault for running out of stamina. The exhausted roll was a compromise: you can still move, but you're not safe. It turned a frustrating death into a tense "I might still make it" moment. Sometimes the best design comes from watching people play and asking why they're frustrated.

On the C++ side, I got comfortable with Unreal's gameplay framework in a way I wasn't before. UPROPERTYs, UFUNCTIONs, component architecture, the tick system, animation notifies firing into C++. None of it is hard individually, but knowing when to use what and how they interact takes time. By the end of the project, I wasn't fighting the engine anymore.

The state machine was a good call. I considered behaviour trees early on, but for a single boss with predictable states, the enum approach was cleaner. Every state is a switch case, every transition is explicit, every bug is easy to trace. I can open the file and know exactly what the boss is doing and why. That matters more than architectural elegance when you're debugging at 2am.

I also learned to scope properly. The original plan had two bosses, a phase transition with new moves, and a fog wall system. I cut most of it. One polished boss fight proves more than two janky ones. The fog wall was something personal that I felt brought more life to my demo but it wasn't proving anything about my C++ skills. Cutting scope felt like failure at the time. Now I think it was the smartest decision I made.

Project Details

Developer Harun Yusuf
Role Solo Developer
Team Size 1
Engine Unreal Engine 5
Language C++

Controls (PlayStation)

Left Stick Movement
Right Stick Camera
R3 Lock-On
R2 Sword Attack
L2 Guard / Shield Attack
Circle Dodge
X Jump
D-Pad Down Use Potion
D-Pad Left Switch Stance
© 2026 Harun Yusuf. All rights reserved.