3D Fighting Game Engine Architecture: From Showcase to Combat Implementation
This article explains why many 3D fighting games look impressive on the main menu but feel inconsistent once a match starts, and how to solve it through architecture rather than better art. It shows that the showcase layer and the combat layer operate under different technical constraints, then proposes a five-layer structure covering resources, showcase, combat, match management, and AI. You will find practical guidance on complementary character and stage design, a deterministic state machine driven by frame data, hitbox and throw resolution, three AI difficulty tiers based on decision quality, local two-player round flow, special moves with input buffering and camera privileges, and a performance checklist. The core takeaway is that separating presentation from combat, with fixed logic frames and frame-data-driven decisions, is what carries the visual quality of the menu into actual gameplay.
Problem: Why the Menu Looks Great but the Match Does Not
A common pattern shows up in 3D fighting games: the character display on the home screen looks excellent, but the experience drops noticeably once a match begins. This is not an art problem. The showcase layer and the combat layer are built under different technical constraints.
The home screen only needs to look good: high-poly models, detailed materials, close-up cameras, and a slow turntable. Rendering pressure is concentrated on a single character with static or low-complexity motion. A match needs to be fun and fair: stable frame rate, precise hit detection, predictable input response, and unambiguous state transitions.
The core conflict is:
- The showcase layer pursues the visual ceiling; the combat layer pursues the performance floor.
- The showcase layer allows pre-baking and offline rendering; the combat layer must compute in real time.
- The showcase layer has no state coupling; the combat layer has strict state machine and frame data constraints.
The correct engineering approach is to layer them: decouple the Showcase Layer from the Combat Layer, share character assets, but drive animation and rendering with different configurations.
Overall Architecture
Split the system into five layers:
- Resource layer: models, skeletons, animations, materials, audio.
- Showcase layer: home screen turntable, character select, close-up cameras.
- Combat layer: state machine, hit detection, input buffering, combo system.
- Match management layer: rounds, win/loss, pause, results.
- AI layer: difficulty tiers and decision output.
Example directory structure:
/Game/Showcase/Combat/StateMachine/Hitbox/Combo/Match/AI/Resources
Character and Stage Design
Two independent characters should be complementary in combat parameters, not just cosmetic reskins. Define the following per character:
- Base attributes: health, speed, jump height, guard reduction.
- Attack table: startup frames, active frames, recovery frames, damage, hitstun.
- Special and super moves: directional inputs, energy cost, camera privileges.
For a rainy rooftop stage, use a “local dynamic + global static” strategy: bake the ground and background as static geometry, and render rain, flickering lights, and water reflections with lightweight real-time effects to avoid high cost across the whole scene.
Combat State Machine and Frame Data
The core of a fighting game is a deterministic state machine. Each character state includes at least: idle, walk, jump, guard, hit, throw, dash, air, down, and wake-up.
enum class State { Idle, Walk, Jump, Guard, Hit, Throw, Dash, Air, Down, WakeUp };struct FrameData {int startup; // startup framesint active; // active framesint recovery; // recovery framesint damage;int hitstun; // hitstun duration};
Key principle: all hit detection advances on logic frames. Render frames may interpolate, but must never feed back into the logic.
Hit Detection, Guard, and Throws
- Attack hitboxes: rectangles or capsules, checked every frame.
- Guard: directional input plus guard state, distinguishing high and low attacks.
- Throws: triggered at close range, cannot be blocked by a normal guard, and require separate resolution logic.
- Air juggle and combo cancels: controlled by cancel windows to prevent infinite combos.
Pseudocode:
if (attacker.active && overlap(attacker.hitbox, defender.hurtbox)) {if (defender.isThrowTarget) applyThrow();else if (defender.isGuarding && canGuard(attacker.type)) applyGuardDamage();else applyHit(attacker.frameData);}
Three AI Difficulty Tiers
Difficulty should come from decision quality, not doubled stats:
- Easy: low reaction frequency, few combos, low guard probability.
- Standard: guards, interrupts, limited combos.
- Hard: predicts inputs, links cancels, manages energy.
The AI outputs virtual inputs that go through the same state machine as player input, which keeps the game fair and debuggable.
Local Two-Player and Round Flow
Local two-player requires fixed input sampling and logic frame synchronization. A best-of-three format is controlled by the match manager:
Character select -> Load stage -> Round N -> Win/loss check -> Next round / Results
Pause must freeze logic frames and timers. Resuming must not produce an input backlog.
Special Moves, Energy, and Camera
Directional special moves use input buffering plus command recognition. A full-energy super move comes with a close-up camera. The close-up is a showcase layer privilege: it does not change combat detection, and the camera smoothly returns to the combat view afterward.
Performance and Experience Checklist
- Separate or tier the loading of high-poly menu models and low-poly match models.
- Keep logic frames fixed and interpolate rendering.
- Decouple hit detection from animation.
- Share one input pipeline between AI and players.
- Test pause, results, and restart paths end to end.
In short, fixing a weak in-game experience is not about piling on more art. It is about fully separating the showcase layer from the combat layer and driving matches with a deterministic state machine and frame data, so the polish of the home screen carries through to actual combat.
