Whip is best experienced on desktop.
Journal

Behind Whip · 13 min read

We built GTA 6 Fight Club with AI. Here’s how.

Six characters from four GTA games meet on a waterfront pier in a Street Fighter-inspired browser game.

Whip team ·

Michael and Franklin face off on the Santa Monica-inspired pier at the start of round one

Imagine picking Michael from GTA V and putting him up against Franklin.

We wanted that fight to happen on Santa Monica Pier. On our wooden deck, the sea is behind them. Each fighter has 1,000 health. They have 99 seconds to settle it.

At Whip, we took the one-on-one format from Street Fighter and picked six fighters from four GTA games. You can open GTA 6 Fight Club in a browser and play Michael yourself if you think he’d win. A friend can take Franklin on the same keyboard. If you’re on your own, the computer will take the other side.

We knew something was off the first time we landed a punch in testing. The arm moved and the other fighter’s health dropped. We could see the damage on the bar. Down on the deck, the two of them might as well have missed each other.

It took us a while to get to that punch. For much of the build we had two shops, a Ferris wheel and a stretch of California waterfront, and nobody on the pier who could bend an elbow.

Explore interactive experiences on Whip

A few yards of deck, an entire island

For a good stretch of development, the most complete part of our fighting game was a beach. We opened Blender with Santa Monica Pier as our reference, shaped the shoreline and built the pier by hand. Stand on the deck in front of Brine & Twine and Low Tide and you can see through the gap between the shops, across the water to the Ferris wheel and the skyline.

The Stage 5b Blender workspace
FIG 02. The Stage 5b Blender workspace. The camera rectangle isolates the fighting area, while the geometry beyond it establishes the depth of the larger waterfront.

Codex Astra helped with the beach and the shops. We could give it broad instructions about the waterfront and get back a scene that looked quite different from the one we had in mind. A single storefront was easier. We could show it a reference, point to the part we wanted to change, then pull the camera back and see how that shop sat on the pier.

The finished stage at blue hour
FIG 03. The finished stage at blue hour. The storefronts frame an open strip of deck, while lighting, water and reflections establish the atmosphere.

We set the camera, lighting and shadows by hand. Looking at the waterfront on its own, we wanted as much of it in the shot as possible. As soon as there were two people on the deck, we had to leave enough room on screen to see a fist.

A crossover across four GTA games

Once the arena existed, we needed the fighters. We sourced the character models from Sketchfab and other 3D model sites: Claude from GTA III, Tommy Vercetti from Vice City, CJ from San Andreas, and Michael, Franklin and Trevor from GTA V.

The six playable fighters, using the supplied textured character renders
FIG 04. The six playable fighters, using the supplied textured character renders. The differences in model detail preserve the identity of their original games.

Put Tommy next to Franklin and you can see the years between their games. We deliberately kept the older models slightly pixelated rather than forcing every fighter into the same visual style. The difference is part of the appeal of the crossover.

You can pick a side as soon as you recognize the two characters. Getting CJ to do anything about Michael took a little longer. The model we downloaded could stand in position with every part of his arm in the right place. We still had to give him a way to bend it.

Giving a digital statue a skeleton

The visible surface of a model is called a mesh. To bend its elbow, we need joints underneath that surface and a way for changes in those joints to deform the mesh. This is called rigging. We used Adobe Mixamo to rig the characters and apply animations for movement, combat, defeat and victory.

Now CJ had a punch we could play from beginning to end. Michael needed a few possibilities. He could take a hit, fall to the boards or carry on walking because CJ had swung too soon. To pick the right animation for Michael, we needed to know where both men were when CJ’s fist came forward.

Making the characters move through a world

CJ’s textured mesh beside an illustrative joint hierarchy
FIG 05. CJ’s textured mesh beside an illustrative joint hierarchy. The overlay identifies the major control points; it is not a capture of the original Mixamo rig.

A walk animation can move the legs convincingly while leaving the fighter standing in the same place. To make that character cross the deck, the game must also change its position. A jump works similarly: game logic controls the vertical trajectory while the animation provides the crouch, airborne pose and landing.

In our archived build, the fighters automatically face one another. Stage boundaries limit movement, and the game maintains separation between their centers when they are close in height. Attack and hit-reaction states also restrict ordinary movement, so a fighter cannot simply walk out of every action.

There was a visual problem hiding inside those rules. From too far away, the camera makes the coastline look great but makes a jab difficult to read. Too close, and the location loses its character. The camera needed to show both the arena and the exchange.

Even the shadows underneath the fighters became part of the solution. The build samples the geometry near the soles and uses smoothed shadow patches that follow the feet and fade when they lift. Those small shadows help connect the animated character to the boards beneath him.

Put Michael halfway down the pier and CJ can still throw a convincing jab. Watch the two fighters together and you see the problem. A punch animation will happily play at any distance. We had to decide at what point in the swing, and how close to Michael, it ought to count.

What happens when you press F?

Take the left side and press F. That asks CJ to jab. If he’s finishing another move, the game can hold the request for up to eight ticks. Press slightly early and he can still throw the jab once he’s free. What happens to Michael depends on where he is when the fist comes out.

The base jab is divided into 6 startup, 3 active and 11 recovery ticks
FIG 06. The base jab is divided into 6 startup, 3 active and 11 recovery ticks. At 60 simulation ticks per second, the contact window lasts just 50 milliseconds. Startup and recovery scale with the fighter slot’s speed setting.

We separated each attack into three phases. During startup, the fighter prepares the movement. During the active phase, the attack is eligible to connect. During recovery, the fighter finishes the action before becoming available again.

The browser draws what you see on screen. Separately, the game keeps track of elapsed time and advances the fight in steps of one-sixtieth of a second. We line up the contact pose in CJ’s animation with the first active step. Otherwise you could see his fist arrive at a different moment from the one the game counts.

The numbers shape how an attack plays. In the archived Stage 5u move data, the base heavy punch uses 12 startup, 3 active and 18 recovery ticks. A kick uses 15, 4 and 24.

The jab is quicker and less damaging, while the kick takes longer, reaches farther and hits harder.

Stand close enough to land the jab and you can follow up with another move. Step back a little and try it again. This time CJ has to swing and recover before he can do much else. You’ve given Michael an opening by pressing exactly the same key.

How the game knows a punch landed

CJ’s animation can look the same whether Michael is standing within reach or a few steps too far away. To distinguish these situations, the game needs a simplified mathematical representation of the fighters and their attacks.

The pink region represents an active attack and the blue region represents the defender
FIG 07. The pink region represents an active attack and the blue region represents the defender. The left example misses; the right overlaps. The dimensions and static poses are schematic, not a frame from the running game.

During each active tick, the game compares the attack’s horizontal reach and vertical band against a simplified target region. It also checks which way the attacker is facing.

If the regions overlap, the game registers contact and records the attack as spent, preventing the same jab from dealing damage again on the following tick.

Sometimes both fighters get there together. We check CJ’s attack and Michael’s attack before we apply either result. That way the first fighter we check can’t cancel the other man’s hit just by coming first in the calculation.

Damage is calculated separately from whether contact happened. The archived build combines a move’s base damage, its health multiplier, the attacker’s power and the defender’s defense. A typical left-slot jab against an idle right-slot opponent removes about 13 health from a starting 1,000. These are settings for the two fighter slots in that build, rather than individually established statistics for all six characters.

Try following the exchange with your eyes on the fighters. On a miss, Michael should carry on with whatever he was doing. A clean jab should interrupt him. If he’s down to his last few health points, the same jab can put him on the boards.

We could tell those cases apart in the numbers long before we could tell them apart by watching.

The punch that worked but felt wrong

In our first working exchange, Michael lost health and CJ’s arm came back. It felt like swinging through air. We tried the move again, looking at where the fist ended up, when the damage came off and where the effect appeared between them. The bit we wanted to catch was the instant CJ made contact.

Original combat effects design sheet
FIG 08. Original combat effects design sheet. The compact jab spark, heavier punch flare, wide kick sweep and ground-level knockdown dust each communicate a different event.

One solution was hitstop, a brief pause when a hit connects. The archived build holds a jab for four ticks, or about 67 milliseconds. A heavy punch holds for seven ticks (117 ms), and a kick for nine (150 ms). A knockout uses a longer pause. The brief interruption gives the eye time to register the contact.

On the effects sheet, follow the heavy punch across one row. The bright flare breaks up into flecks. The jab gets a smaller spark, and the kick sweeps wider. We load the prepared frames from a list and play the sequence where the attack overlaps Michael. Put that flash in the right place and you can see exactly where the fist caught him.

Sound provides another cue. We use separate sound files for jabs, power punches, kicks and body falls, with different gain routing for heavier hits. The fall sound plays on landing. A player can hear the difference even while concentrating on movement.

All of this happens while you’re watching for Michael’s next move. You hear the jab, see the spark and get four ticks to register his reaction. If he goes down, the next sound belongs to his body hitting the boards.

Try it again from a step farther back. CJ will make the same swing. Listen for the difference.

Giving Michael a chance to win

With Michael standing still, it’s easy to find the spot where a jab will land every time. A fight against the computer meant giving him a reason to leave that spot. We gave him the movements and attacks a second player could use and a few rules for choosing between them.

The opponent’s simplified decision loop
FIG 09. The opponent’s simplified decision loop. It checks spacing, selects an available action and waits or retreats before reevaluating the match. Original character renders illustrate the logic.

The computer measures horizontal distance. In Stage 5u, it approaches when the opponent is farther than 1.04 world units away. At close range it can select a jab, heavy punch or kick. A successful jab may lead into a short chain of attacks. After initiating an attack, it schedules a retreat.

Randomized delays and occasional jumps add variation. Those delays also leave opportunities for the human player to respond. During hitstop, the computer’s decision and retreat timers pause along with the rest of the action, so its behavior stays aligned with the match.

Astra helped us build parts of the scenery in Blender. During a match, Michael runs on the spacing and timing rules above. When he steps out of CJ’s reach, the game can make that decision locally on the next check.

Two players, one keyboard

We also built local multiplayer. The left player moves with A and D, jumps with W and attacks with F, G and H. The right player uses the arrow keys and J, K and L. The archived build also accepts standard-mapped gamepads. Both control paths feed into the same combat rules.

Give a friend the right side and try the same exchange again. They can let you land a jab, step away before you throw the next one, or come back in with a kick while you recover. The distance that was marked in pink and blue in the diagram is now a few boards you’re both watching.

Turning a fight into a complete match

After a few exchanges we wanted to play a whole match. Either player could pick any fighter, so the interface had to tell us at a glance whose health we were looking at, who had taken the last round and when we could start moving again.

The original interface asset sheet: mirrored health banners, era-specific portraits, round indicators and status graphics
FIG 10. The original interface asset sheet: mirrored health banners, era-specific portraits, round indicators and status graphics. It contains additional concept characters beyond the playable roster.

Either player can select any of the six fighters, so we designed the HUD to mirror across the center. Portraits sit near the outer edges, with health bars extending inward.

The artwork connects each fighter to their original game through its era badge and skyline colors, including Vice City pink and San Andreas orange.

Each round begins with 1,000 health and a 99-second clock. The match waits for both models to be ready, introduces the fighters, then enables combat. A knockout or expired timer ends the round. The fighter with more remaining health earns a win; equal health produces no winner. Two round wins take the match.

FIGHT, K.O. and WINNER graphics mark the transitions. Victory and defeat poses give the result a visual conclusion, while the round markers keep track of the larger match.

A rematch clears the win counts. The archived build also tracks a meter that grows through combat, although character-specific special moves remain a planned feature.

We wanted the soundtrack to carry through all of this. We mixed two music loops with crossfades so the background track could continue through a round transition. The player sees a new fight beginning, but the world still feels continuous.

Getting the island into a browser

On Whip, you can send someone a link to the game. They still have to load an island and two animated fighters before anyone gets to throw a punch.

We hit both kinds of waiting during testing. Sometimes the first match took too long to load. Sometimes it had already started and a choppy exchange made it hard to tell when a fist connected.

Three.js renders the stage through WebGL. The archived build loads the scene configuration, binary geometry, baked lighting image and sky texture in parallel. It restores the exported camera so the framing designed in Blender carries into the browser.

The browser build separates static environment assets, animated fighters and reusable feedback systems
FIG 11. The browser build separates static environment assets, animated fighters and reusable feedback systems. These streams converge in the rendered match; the diagram summarizes the documented implementation.

Baked lighting lets us calculate some of the stationary environment lighting beforehand and save it into a texture. The browser can then display those results without recomputing all the lighting work in real time. Moving characters still need responsive lighting and contact shadows.

We also reuse eight effect entries rather than continually creating new ones for every attack. The soundtrack is decoded at 32 kHz to reduce its audio buffer size. Both choices reduce recurring resource demands while the player is fighting.

A jab is eligible to land for 50 milliseconds. If the browser stutters through that part of the swing, the rules can give the right answer while the player misses it. We tested by playing through whole rounds, watching the movement and the effects as well as the initial load. We didn’t benchmark the individual changes, so we can’t put a speedup against any one of them.

If we were building our first game today

We started with the island because that was the place we wanted CJ and Michael to meet. If you want to find out whether your own game feels good to play, two figures and a bare floor will keep you busy for a while.

In Blender, we got better at asking for help once we had a single storefront on screen and a reference beside it. We could say what belonged in that small patch of the scene and tell at a glance if it fit. The same approach works for a first fight. Pick a change you’ll be able to see the next time you press a key.

The tools we brought together

Blender for modeling, scene composition and lighting. Sketchfab and other model sources for character assets. Mixamo for rigging and animation. Codex Astra for AI-assisted work on the environment. Three.js and WebGL for rendering the experience in the browser.

The game is playable on Whip. We’re still refining the rigs and combat. Character-specific special moves and two more fighters, Jason and Lucia, are among the things we’d like to add.

Start with the two figures facing each other. Give one of them a jab. Walk right up to the other one and try it, then back off and try again. Add a health bar so you can check whether your rule counted the hit. Once that works, see how much of the exchange you can read with your eyes on the two figures.

If you’re using AI, a first request could be two characters on a floor with keyboard movement. Next, ask for a jab with a short window when it can connect. Leave the fighter out of reach and check that it misses. Then ask for a pause and a flash where the two shapes overlap. Those are prompts you can try on your own build.

Hand the keyboard to someone else. Let them move in and out of reach and throw a few jabs. When one connects, watch whether they go straight for a follow-up or look up at the health bar to find out what happened.

Explore interactive experiences on Whip

GTA 6 Fight Club is an unofficial fan-made experiment, not affiliated with or endorsed by Rockstar Games or Take-Two Interactive.

More from Whip

I built a playable 3D mystery city with Blender and Codex. Here’s how.

Behind Whip · 6 min

I built an immersive 3D world, entirely with Claude

Behind Whip · 3 min