Battleship-Style Architecture for Fighting Games: Designing the Core Combat System

    This article explains how to design the core combat system of a 3D fighting game using a "battleship-style" architecture. It covers character design, frame-level combat mechanics, layered AI for single-player play, the flow of local two-player matches, and presentation features such as super moves, pause menus, and result screens. It also outlines a development sequence that builds the framework first and adds presentation last.

    1. From “Battleship” to Fighting Games: A Systematic Design Mindset

    The word “battleship” usually refers to a naval vessel. In game development, however, it describes a highly integrated architecture in which modules work together for both offense and defense. A modern destroyer must tightly combine radar, weapons, propulsion, and command systems. A good fighting game is similar. Characters, combat, AI, and the user interface need a close and orderly coupling.

    Modern fighting games have gone far beyond simple exchanges of blows. At their core, they are real-time decision-making systems. Within a limited time, players perceive, judge, input, and react, forming a continuous contest of strategy. This article looks at the system from an architectural perspective. It examines how to build a core system with complete combat logic, layered AI, multiple match modes, and presentation effects, and it discusses these topics from a practical development standpoint.

    2. Character Design: Unifying Combat Style and Narrative Expression

    Character design affects more than visual presentation. It directly shapes the underlying logic of the combat system. In a fighting game, a character is the core vehicle for player input. Its move set, hitboxes, frame data, and resource costs together form an independent “combat grammar.”

    2.1 Differentiated Character Design

    The project currently has two main characters, Yin Shilin and Jiang Yina. Each has its own model, move set, and combat role. Using a naval fleet as an analogy, one character works like a cruiser, emphasizing mid- to long-range control and charged bursts. The other works like a destroyer, focusing on fast rushes, close-range pressure, and quick cancels. These differences should appear not only in base attack power and health, but also in frame-level parameters such as startup and recovery frames, hit duration, movement distance, and hitstun feedback.

    For example, a rush-type character’s light attack should have a short startup, such as 6 frames, to support close-range priority. A zoning-type character’s long-range heavy attack needs a longer startup, such as 14 to 16 frames, to maintain balance. These values require repeated testing. They cannot rely on rough estimates.

    2.2 The Stage as a Tactical Variable

    The rainy rooftop serves as the starting stage. Its main value is not only narrative. It also defines the boundaries of the battle space. Stage design must account for the highest and lowest visible camera range, the width of the combat area, and how obstacles affect jump paths. In real matches, players often use corners to pressure opponents, so stage boundaries and camera lock logic must be precise. Otherwise, fighters may go out of frame or get stuck in corners, which breaks immersion.

    3. Core Combat Mechanics: From Basic Actions to Advanced Tactics

    A complete fighting combat system should cover at least five areas: movement and defense, attacks and throws, jumps and dashes, airborne states and combos, and special moves and finishing presentations. Each mechanic has clear priorities and interaction logic, as shown below:

    Input Type Action Priority Tactical Purpose
    Back / Crouch Block High (triggers first when hit) Reduces damage, creates counterattack windows
    Forward / Backward Dash Medium (can be interrupted by attacks) Controls distance, closes in or retreats
    Close-range direction + attack Throw Medium (can be teched) Breaks guard, forces pressure
    Jump / Aerial attack Air combat Medium (has landing recovery) Three-dimensional offense, crosses up low attacks
    Directional combination + attack Special move Low (consumes energy) High damage, with presentation and pause effects

    3.1 Blocking and Throws: Building a Safe Offense-Defense Loop

    Blocking is the basic way for players to respond passively to attacks. But if blocking has no cost, attacking loses its meaning. The design therefore needs a “guard meter” or “block stun” mechanic. Throws then complete a rock-paper-scissors loop: attacks beat blocking, throws beat blocking, and jumping or backing away beats throws. Together, these form a complete three-way strategic relationship.

    The key to throw design is the “tech window.” This is typically 8 to 12 frames after a throw connects, during which the opponent can counter by pressing an attack button at the same time. If the window is too short, throws become overpowered. If it is too long, throws lose their deterrent value. Developers should tune this window for their target player skill level.

    3.2 Jumps, Dashes, and the Air Combat System

    Jumps and dashes are the main ways to move through space. Their core parameters include startup speed, air speed, gravity, and landing recovery. Aerial attacks often have a longer total active duration than ground attacks, but landing recovery gives the opponent a chance to counter. For fairness, the design should lock ground inputs within 15 to 20 frames before an aerial attack animation ends. This prevents “consequence-free air pressure.”

    Dashes work well as short-range rushes or escape tools. They should be interruptible by normal attacks, so that reckless dashing does not become the only offensive option.

    3.3 Airborne States and Combo Cancels: From Satisfying Feel to Technical Depth

    The airborne system is a major source of a fighting game’s spectacle and skill ceiling. Its core mechanic works like this: after a light attack connects, the player can cancel into a specific skill. After that skill connects, the player can jump to follow up, forming a continuous attack chain. However, every cancel must be limited by resources or height. Otherwise, the game produces “infinite combos” that break competitive fairness.

    Cancel windows should adjust dynamically based on the attack’s hit count. For example, the cancel window is 5 frames for light attacks, 10 frames for heavy attacks, and 16 frames for special moves. The design can also add two limits: a combo length cap and damage scaling. Together, these keep combo length from disrupting the game’s pace.

    4. AI Layer Design: Keeping Single-Player Matches Engaging

    In single-player modes, AI intelligence largely determines how long players stay. The easy, normal, and hard difficulty levels should use a “three-tier response model” rather than simply increasing numerical stats.

    Difficulty Reaction Frames Behavior Strategy Combo Ability Cheating Resources
    Easy 18 to 24 frames Conservative blocking, basic attacks Up to 3 hits None
    Normal 12 to 16 frames Mid-range probing, light attack combos 4 to 5 hits Reduced damage scaling
    Hard 6 to 10 frames Combines throws and air combat, reads inputs 6 or more hits A small amount of extra energy

    The core of this design is to increase the AI’s decision variety, not to stack attack power and health bars. On hard difficulty in particular, the AI should react at specific moments, such as when the player finishes a move, jumps, or has full energy. Examples include anticipating a jump with an uppercut or teching throws precisely. These behaviors can approximate the experience of playing against a skilled human.

    5. Local Two-Player and Best-of-Three Matches: Completing the Match Experience

    The core of local two-player mode is keeping two independent character states on the same device from interfering with each other. When rounds switch, the UI, camera, and character positions must reset immediately. The implementation should encapsulate each character’s state, including health, energy, position, facing direction, and current frame, as an independent object, while keeping global state synchronized.

    The best-of-three format requires a complete win and loss settlement system. After each round, the system should reset character states automatically and clear any leftover effects and sounds from the scene. The results screen should show the round’s K.O. time, both players’ health, and each player’s highest combo count for that round. After the final round, the system should play the main result animation and return to the character select screen.

    6. Presentation and Immersion: Close-Ups, Pause, and Results

    6.1 Full-Energy Super Moves and Close-Up Cameras

    When a character’s energy meter is full, a specific directional input triggers a super move. The skill should have its own presentation logic:

    • The global time scale pauses instantly (TimeScale=0), and the game switches to a dedicated cinematic camera.
    • The screen shows the character’s half-body portrait and a pop-up animation with the skill name.
    • After the presentation ends, combat resumes, and the skill applies its area damage check.

    This “breaking the fourth wall” style of presentation can noticeably increase players’ anticipation and visual satisfaction. However, the presentation should be kept under 3 seconds so it does not interrupt the pace of combat.

    6.2 Pause Menu

    The pause menu should include three options: Continue, Restart, and Return to Main Menu. While paused, combat logic freezes and audio pauses, but the character portraits stay on screen as a background display. In local two-player mode, the pause menu should also show the current round score and each player’s remaining energy, so players can review the match.

    6.3 Win and Loss Results Screen

    When a match ends, the system should show the winner’s portrait and K.O. effect. If the match uses the best-of-three rule, the screen should also show the score for each round. The results screen should support returning to the main menu or entering Revenge Mode, which is a quick rematch with the same characters on the same stage. This keeps matches flowing and encourages repeat play.

    7. Development Practice: Framework First, Details Later

    From a development standpoint, the project should move forward in the following order:

    1. Framework stage: Build the basic match loop (enter combat, input handling, physics and hit detection, animation, state management, frame output).
    2. Core combat mechanics stage: Implement the five basic actions of attack, block, throw, jump, and dash.
    3. Combo and resource stage: Add the energy meter, airborne states, and cancel mechanics.
    4. AI logic stage: Implement the three-tier AI logic and tune its reaction frames.
    5. Modes and interface stage: Add character select, match results, and the pause menu.
    6. Presentation and immersion stage: Add close-up animations, super move cameras, and visual effects last.

    This order ensures that each layer rests on a stable foundation and reduces rework later. For independent developers, it is strongly recommended to keep a “frame debug panel” throughout development. The panel shows all of a character’s current frame data in real time, which makes it faster to locate problems.

    8. Conclusion

    Fighting games are among the most tightly coupled systems in the action game genre. Every part, from character modeling to AI decisions and from frame data to cinematic cameras, requires developers to coordinate with battleship-level rigor. The “battleship-style architecture” described in this article treats each module as a subsystem within a ship. Mechanics that constrain and support one another form a fighting vessel that runs smoothly.

    For developers who want to build a 3D fighting game with competitive depth and strong visuals, reviewing these design principles and applying them flexibly can significantly improve the odds of project success. As cloud computing and AI models continue to advance, the intelligence of AI opponents may keep improving, and fighting games may also gain richer single-player formats.