3D Fighting Game System Design: From Prototype to Playable Combat
A playable 3D fighting game needs more than polished character presentation. Using the “Warship” prototype as a starting point, this article outlines how to align asset budgets, build fixed-step combat logic, improve input handling, define frame-based hit detection and cancels, and coordinate cinematic moves, AI, local multiplayer, and performance testing.
3D Fighting Game System Design: From Prototype to Playable Combat
“Warship” is the internal codename of the 3D fighting game prototype discussed here. Its first version delivered a strong character showcase on the main menu, but the experience deteriorated during actual combat: animation transitions felt abrupt, input response was inconsistent, hit feedback and camera transitions felt disconnected, and matches against AI lacked the pacing consistency of local two-player matches.
These problems did not come from a single rendering or gameplay module. The presentation and combat layers used different asset budgets, state management approaches, input strategies, and acceptance criteria. The following design and tuning approach focuses on moving the prototype from visually appealing to genuinely playable.
1. Align Presentation and Combat Requirements
A main-menu showcase typically emphasizes a single high-detail character, elaborate lighting, slow camera movement, and full animation sequences. Combat must handle two characters, the stage, effects, UI, audio, and hit detection simultaneously. Reusing the same high-budget assets without adjustment can lead to frame-rate fluctuations, awkward animation blending, and input latency.
Use two asset profiles for each character:
- Showcase profile: Higher-detail models, full material setups, and post-processing.
- Combat profile: Reduced bone counts, simplified materials, levels of detail, and controlled effects.
Both profiles should share bone naming conventions, animation events, and character configuration tables so that actions retain the same meaning across scenes.
Establish a shared budget table covering per-character bone counts, material slot counts, texture sizes, maximum on-screen particle counts, shadow resolution, post-processing settings, and animation sampling rates.
A polished main menu is not the final acceptance criterion. Stable combat frame rates, controlled input latency, and reproducible hit detection are what matter.
2. Build Combat Around a Fixed Timestep and an Explicit State Machine
Fighting game logic must be reproducible. Use a fixed timestep for simulation and decouple rendering frames from logic frames. Input sampling, state transitions, hit detection, and round progression should all run within the logic tick.
The character state machine should explicitly define idle, movement, dash, jump, block, hit reaction, airborne hit reaction, knockdown, normal attack, special move, super move, and pause states. Each state needs entry conditions, a duration, cancel windows, and exit conditions.
FighterState = Idle | Walk | Dash | Jump | Block | Hit | AirHit | Knockdown| Attack | Special | Super | PauseonLogicTick(input):state = updateState(state, input)if state.canCancel and input.matches(CancelWindow):state = enterNextMove(input)resolveHitBoxes()updateEnergy()
Do not make animation completion the sole condition for a state transition. Drive transitions through both logic-frame counts and animation events.
For example, frame data should determine hitstun duration, while animation presents the reaction. Launch height should depend on physics parameters and hit force, preventing behavior from drifting at different frame rates.
3. Improve Input Response with Buffering, Priorities, and Motion Recognition
Dropped inputs are a common reason combat feels unresponsive. Implement an input buffer that stores button presses and directional combinations from the most recent logic frames, allowing players to queue an action shortly before the current move ends.
Define input priorities and eligibility rules:
- Blocking takes priority over normal attacks.
- Throws work at close range when the opponent is not airborne.
- A double-tap direction triggers a dash.
- Jump inputs can be buffered.
Directional special moves need sequence matching within a time window. This helps prevent fluctuations in diagonal input from causing incorrect recognition.
buffer.push(sampleInput(), maxFrames=8)if currentState.canBlock and held(back):next = Blockif nearOpponent and pressed(throw):next = Throwif buffer.matchesSequence(directionPattern, window=6):next = Special
An overly large buffer can make controls feel sticky, with moves executing after the player releases a button. An overly small buffer leaves too little tolerance for combo inputs.
Configure buffer windows by action type rather than using a single value for every move. Display input history in training mode to support debugging.
4. Drive Hit Detection and Combo Cancels with Frame Data
Keep hitboxes, hurtboxes, and pushboxes separate:
- Hitboxes activate only during a move’s active frames.
- Hurtboxes change with the character’s pose.
- Pushboxes maintain minimum spacing between characters.
A successful hit should trigger brief hitstop. Afterward, determine the resulting state from damage, hitstun, launch force, and combo count.
Combo cancels require explicit windows. A normal attack that connects can cancel into a special move, and a special move that connects can cancel into a super. Whiffed or blocked attacks must not enter that same cancel branch. Damage scaling and diminishing launch effects help prevent infinite combos.
onHit(attacker, defender, move):if move.activeFrames.contains(frame):defender.enterHitstun(move.hitstun)combo.count += 1damage = move.damage * scaling(combo.count)if move.cancelableInto and combo.valid:attacker.openCancelWindow(move.cancelableInto)
Store all frame data in configuration rather than hard-coding it into animation logic. During acceptance testing, replay fixed input sequences and verify that they produce the same hit results on different machines.
5. Separate Special-Move Resources, Cameras, and Combat Logic
A super move that requires a full energy meter needs clearly defined resource rules: how energy is earned, how much is consumed, the maximum amount, and feedback indicating that the move is unavailable before the meter is full.
Directional special moves also need explicit input windows and feedback when recognition fails.
Keep cinematic super-move cameras separate from combat logic. Logic frames should continue along the move’s timeline; the camera system should change only viewing parameters, not hit detection.
Lock both players’ inputs during the cinematic close-up. When it ends, restore control and retain a brief period of invulnerability or protection from hits so that the camera transition does not create an unfair opening.
Divide the camera timeline into three phases:
- Startup
- Close-up
- Recovery
Configure a maximum duration and skip conditions for each phase.
Pausing should freeze logic, animation, audio, and timers. Match results should summarize damage, combos, successful blocks, super-move usage, and other relevant combat statistics.
6. Make AI Difficulty Controllable, Not Unfair
Implement three difficulty levels through differences in reaction delay, decision frequency, cancel success rate, blocking probability, and resource management—not by directly reading player inputs.
- Easy: Slower reactions and fewer combos.
- Standard: Can confirm hits and occasionally perform cancels.
- Hard: Can anticipate actions, punish unsafe moves, and manage energy, while remaining bound by the same state machine and frame data as the player.
For local two-player matches, ensure that each side’s input device is sampled independently. Keep the UI symmetrical and apply consistent pause and match-result behavior.
7. Validate Performance Before Release
Create an acceptance checklist covering:
- Stable frame rates during combat
- Measurable input latency
- Consistent hit results in input replays
- Animation transitions without abrupt jumps
- Controlled peak memory usage
- Loading times that meet the project’s targets
Build artifacts can be stored in general-purpose object storage. Send runtime logs to a logging service and connect key performance metrics to monitoring and alerts.
Only when the main-menu showcase and actual combat follow the same acceptance standards can the “Warship” prototype move from looking good to playing well.
