Inspiration

There were two key moments that I just couldn't get out of my head. The first was snapping your fingers to release a massive attack. I was inspired by the likes of Roy Mustang in Fullmetal Alchemist: Brotherhood. This was a moment that couldn't be replicated with controllers and was uniquely suited to VR and hand tracking. I kept walking around my room snapping and couldn't keep the smile off my face. So I knew I had to make it real.

The second one clicked when I was playing Avatar Legends: The Fighting Game. I knew I wanted fast-paced gameplay that a beginner could pick up and "button mash," but where a more experienced player could really be creative and execute incredible combos. A large part of the moveset is inspired by the martial arts-based "firebending" on display in that series.

What it does

Pyrokata is a 1v1 fighting game where you use hand tracking and movement to throw devastating fire attacks at an AI opponent and block incoming ones. Land heavy attacks to build up energy before unleashing your ultimate.

The enemy switches between guarding high and low, so you have to read its stance and strike at the opposite height to get through. When it winds up an attack, you can block it or parry it at the last second. Every attack leaves your hand open for a moment afterwards, so throwing out moves carelessly gets you punished. If you land a hit, you can chain into stronger attacks for a combo and finish it off with Inferno, a massive eruption you charge up and release with a snap of your fingers.

The game starts with a guided tutorial built from fighting-game-style trials, where each one teaches you a new move and has you perform it on command. After that, you take on two fights, first a passive enemy and then an aggressive one. It's designed to be played seated in short sessions, so a fight only takes a couple of minutes and every move fits within arm's reach.

How I built it

Pyrokata was built in Unity using the Meta XR SDK. It uses hand tracking to detect distinct poses and hand motions and turn them into intuitive attacks.

Under the hood, I used Unity's XR Hands package for the raw joint data and recorded my own hand poses on the Quest with XR Hand Capture to tune the recognizer. Hand motions get turned into direction tokens, the same numpad notation fighting games use, by tracking when your hand leaves a neutral zone in front of your body. Those tokens are combined with your pose and how long you hold it to form commands. Every move is defined as a data asset, so adding a new move or tweaking its timing doesn't need any new code, and the tutorial trials reuse the same commands.

The enemy is built around a simple "brain" that tracks its health and stance and picks from a list of actions. It take see what the player is doing and react to it accordingly, blocking or attempting an interrupt based on the enemy's personality, ranging from aggressive to passive. For the visuals, I used a fire VFX pack from the Unity Asset Store and a low-poly Synty environment kept dark so the fire really pops, and menus are controlled with Meta's microgestures.

Challenges I ran into

There were many hardware limitations that I had to work around while developing Pyrokata. My laptop does not have the graphical capabilities to run VR, so each time I wanted to test on the headset, I had to do a full build of the game and deploy it to my Quest 3S. This slowed down development drastically, so I built a suite of keyboard-based developer tools to help test gameplay and key systems while in the Unity Editor.

Another huge challenge was parsing the large amount of hand and joint data into usable tokens for the fighting game input. Differentiating between purposeful motions and general hand waving was extremely difficult, and in the early builds, both missed inputs and misinputs were common. I had to build a number of systems to smooth and interpret the data coming off the headset, as well as make it resilient to tracking loss and drift.

Accomplishments that I'm proud of

I am proud of designing a moveset that feels both intuitive and satisfying to use. My vision was to keep all the fun gameplay elements of a traditional arcade fighting game, such as Street Fighter or Avatar Legends: The Fighting Game, but fully realize the joy of physically forming a fist and punching instead of just hitting a button.

What I learned

I learned just how noisy raw hand tracking data is, and how much work goes into turning it into inputs that actually feel good. I also learned a lot about scoping. My original design had multiple elements and a turn-based combo builder, and I had to cut it all the way down to just fire to actually ship something. Playtesting early taught me a ton too. At my first demo, a lot of people tried to cast with both hands, which is why the casting hand now wears a glowing glove.

What's next for Pyrokata

More attacks, defensive options, and varied enemy designs are all goals for the near future. Beyond that, multiplayer is certainly a feasible goal. I also think it would also be very cool to have an MR mode for the game where you can fight inside your own living room.

Built With

Share this project:

Updates

Submission history