Ashen Duel
A sword duel in a ruined courtyard. Pick the Warden, the Paladin or the Ninja, read the blade, dodge the strike, then punish the recovery. Or duel a friend online.
One ruined courtyard, three opponents. The Courtyard Warden is the balanced fight, cycling through a cleave, a delayed overhead and a lunging thrust. The Ashen Paladin has more health and slower, heavier strikes. The Veiled Ninja is quick and light. Each attack leaves an opening once it is over: lock on, roll through the strike and answer with light or heavy blows.
Attacks and rolls cost stamina, and an attack cannot be cancelled into a roll, so commit with care. Open the menu mid-duel to freeze the fight and swap opponents, and use training mode to practise the timing without taking damage.
Multiplayer duel opens a two-player room. Each player chooses Knight, Warden, Paladin or Ninja, both press ready, and a three-second countdown starts the round. A round ends on a knockout, scores stay with the room, and both players must vote for a rematch.
Built from a prompt
How it was built
The brief this demo started from, and what the AI did with it inside the editor.
The brief, in short:
Build a single-player melee encounter in this project: one opponent in a ruined courtyard, light and heavy attacks, directional rolls, stamina, and a camera that locks onto the enemy. Dodging has to be readable: a clean dodge should feel different from an early or late one, and the game should tell the player which it was.
The agent gave all combat state one owner, a scene director script that runs both duelists, damage, timing, the camera, sound, sparks and the HUD. Attacks have explicit windup, active and recovery windows, stamina is charged at the start of an action, and an attack cannot be cancelled into a roll. Protection covers only part of a roll, and a dodge counts only when a strike actually overlaps it.
- The knight and the guard are Mixamo characters and motion clips from a public dataset. A browser-side preparation script renamed duplicate helper bones, filtered unsupported tracks, removed horizontal root travel and packed a longsword and buckler onto the hand bones, so the weapons move with the animation.
- Damage follows the animated blade: the director reads the sword socket's world transform each step and sweeps the blade segment against the opponent's hurt capsule, interpolating between samples so fast swings cannot pass through.
- The cobblestone and masonry are 1K Poly Haven CC0 PBR sets with normal, roughness and ambient-occlusion maps.
It wrote 21 Lua test scenarios covering dodge timing, stamina, stagger, death and camera obstruction, then playtested in a real browser and recorded three clean dodges and separate early and late failures against each of the Warden's three attacks. Rig problems it found became support tickets, and the fixed death animation came back in a later release.
Two more opponents and online duels (29 October). The second brief asked for a choice of opponents and a way to fight a friend. The agent built an opponent menu from native GUI buttons, freezing the encounter with the scene's time scale while the menu is open so the controls stay responsive, and added the Ashen Paladin and the Veiled Ninja from Mixamo models with their embedded textures reduced to 1K. Their swords are runtime bone attachments, and seven shared combat clips are retargeted onto both rigs through the engine's retargeting pipeline; animation readiness gates the start of a duel.
- For multiplayer it kept the courtyard as the local menu and solo scene and added a separate Multiplayer Courtyard as the room's entry scene. An authority script owns fighter choices, spawning, readiness, health, contacts, scores and rematch consent; a predicted controller handles movement, aim, action edges and stamina; a presentation script poses the fighters and attaches the swords from replicated state. The server never reads animated bones, so room hits use timed reach, facing, height and wall checks instead of the solo blade sweep.
- Fighters are native spawn templates chosen through a lobby choice, so duplicate picks are allowed.
It ran 24 solo and 15 multiplayer Lua scenarios, then three private server builds with bots and a browser player, through three rounds with retained scores and fresh avatars after each rematch, before the mode was published as release 9.
More demos
All demos
CityScape
Walk a neon boulevard in the year 2186. A city block of more than 3,000 objects, twelve citizens to talk to, and room for seven friends.
Starter Kit Racing
Kenney's Starter Kit Racing, rebuilt in Airogel from primitives and generators. Race the circuit alone or with up to four trucks in a room.
The Highline
Grapple, swing and wall-run across a four-stage rooftop circuit high above the city.