3D Fighting Game Development with a Warship Theme: From a Polished Main Menu to Solid Combat

    This article presents a practical engineering approach to building a 3D fighting game around a warship setting. It explains why a game can look impressive on the main menu yet feel stiff in actual matches, then walks through the full pipeline: turning warship elements into gameplay, an ECS plus state machine plus fixed-timestep architecture, character modeling and animation states, hitbox design and hit feedback, layered stage construction, parameterized AI difficulty, local two-player flow, camera work, and performance debugging. The goal is to help the visual quality of the menu carry over into real-time combat.

    1. Introduction: Why “Great Menu, Weak Combat” Is the Norm

    When developing a 3D fighting game around a warship theme, many teams run into a familiar problem: the character showcase and scene atmosphere on the main menu look excellent and grab players immediately, but once the actual match starts, the movement feels stiff, hit detection is inaccurate, and the pacing drags, so the experience drops fast. The situation described in the source material—two characters looking great on the menu but underwhelming in-game—is not an isolated case. It is the result of misallocated resource investment in 3D fighting game development.

    The main menu is essentially “offline rendering” or a high-fidelity static/semi-static presentation. It can use high-poly models, complex materials, pre-baked lighting, and close-up cameras, with a high tolerance for cost. Actual combat is “real-time interaction,” constrained by frame budget, physics timestep, input latency, and state machine complexity. This article therefore lays out a complete engineering plan that carries a warship-themed game from the menu all the way to combat.

    2. Theme and Worldbuilding: Making the Warship a Playable Element

    The warship should not be a mere backdrop; it should take part in the gameplay. A good choice is to set the stage on a warship deck or bridge on a rainy night, using the following elements to reinforce the theme:

    • Slippery deck: alters the friction parameters for dashes and slides, creating a distinct feel.
    • Ship sway: a low-frequency sine wave simulates ocean motion and applies slight offsets to airborne and landing detection.
    • Deck guns and masts: serve as scene colliders, forming destructible or bouncy boundaries.
    • Rain and searchlights: used for atmosphere, and also as trigger points for close-up camera lighting effects.

    For the worldbuilding layer, you can design two independent characters—original names such as “Yin Shilin” and “Jiang Yina” (generic examples here; replace them with your own IP names)—corresponding to a carrier-based pilot and a ship’s officer fighting style, tying the characters tightly to the theme.

    3. Technical Architecture Overview

    A recommended combination is “ECS + state machine + fixed-timestep physics”:

    1. Rendering layer: high-fidelity menu scene / real-time combat scene (LOD tiers)
    2. Logic layer: fixed 60Hz logic frames, input sampling and state machine driving
    3. Physics layer: capsule bodies + raycasts, avoiding complex rigid-body chains
    4. Presentation layer: animation state tree, camera controller, VFX and audio

    Key principle: decouple logic from rendering. The menu can take a “high-quality offline path,” while combat must take a “low-latency real-time path.” Both share character data but use different presentation assets.

    4. Character and Animation Systems

    4.1 Modeling and Rigging

    Combat characters should use mid-poly models (around 15,000 to 30,000 triangles) with normal maps to compensate for detail; keep the bone count under 60 to avoid excessive skinning cost. The menu showcase can use a separate high-poly model loaded through a scene switch.

    4.2 Animation State Machine

    The core of a fighting game is the state machine. At minimum, include idle, walk, dash, jump, guard, hitstun, juggle, knockdown, throw, special, super, victory, and defeat. Each state must define: cancel windows, invincibility frames, hitstun frames, and input buffering.

    Sample state configuration:

    1. state = {
    2. "name": "standing",
    3. "frame": 0,
    4. "cancel_into": ["walk", "dash", "jump", "guard", "special"],
    5. "invincible": False,
    6. "hitbox_active": (3, 6),
    7. }

    4.3 Hit Detection and Impact Feel

    Use a separated design of “attack hitbox + hurtbox,” checking overlap within logic frames. Impact feel comes from three sources: hit stop, screen shake, and audio plus particles. All three should be configurable so that not everyone is stuck with the same parameter set.

    5. Stage and Scene Construction

    A rainy-night rooftop or warship deck stage should be layered:

    1. Background: ship silhouette, sea horizon, and rain, using low-poly models with textures.
    2. Midground: deck, railings, and deck guns that participate in collision.
    3. Foreground: puddle reflections and searchlights, using screen-space reflections or simplified reflection probes.

    Dynamic elements (rain, lightning, ship sway) need performance switches; low-end devices can fall back to static textures.

    6. Layered AI Difficulty Design

    The source mentions three tiers—easy, normal, and hard—which is a common approach. In implementation, prefer “behavior parameterization” over “multiple separate AIs”:

    • Easy: high reaction delay, short combos, low guard probability.
    • Normal: uses directional special inputs, guards occasionally.
    • Hard: reads inputs, uses combo cancels, spends full meter on supers, and counterattacks on defense.

    Parameter example:

    1. reaction_frame: easy 24 / normal 12 / hard 6
    2. combo_length: easy 2 / normal 4 / hard 6
    3. guard_rate: easy 0.1 / normal 0.4 / hard 0.7

    Note: difficulty should come from “decision quality,” not pure stat inflation, which would otherwise break balance.

    7. Local Two-Player Mode and Interaction Flow

    Local versus play must handle character select, best-of-three rounds, pause, and match results. It helps to abstract the match flow into a “session state machine”:

    1. boot -> title -> select -> round_intro -> fight -> round_end -> match_end

    On the input side, when two players share a keyboard or gamepad, add input debouncing and key-conflict detection. Pause must freeze the logic frames and timers; on resume, reset the input buffer to avoid “moves firing the instant play resumes.”

    8. Camera and Presentation

    Close-up cameras are key to achieving “menu-grade” visuals, but they should not be overused in combat. Recommended:

    • Switch briefly to a close-up when a super is triggered, then smoothly interpolate back to the combat camera.
    • Tie shake magnitude to hit type: throws shake more, light hits shake less.
    • Provide quality options when using motion blur and depth of field.

    9. Performance and Debugging

    Common issues and fixes:

    • Frame drops on entering the game: the menu’s high-poly model was not unloaded; load assets per scene.
    • Inaccurate hit detection: logic frames and render frames are not interpolated consistently; use a fixed timestep and input snapshots.
    • AI “freezing”: the state machine lacks a timeout exit; add a watchdog.
    • Lost two-player input: polling frequency is too low; use a separate thread or interrupt-driven sampling.

    It is worth building a “frame budget table” that spells out the upper limits for logic, physics, rendering, and AI, and raises an alert whenever any of them is exceeded.

    10. Conclusion

    For a warship-themed 3D fighting game, the key is not how flashy the main menu is, but the engineering rigor of real-time combat. Get the character state machine, hitboxes, AI parameterization, session flow, and camera control right, and the menu’s visual appeal can carry through into actual play. If a team needs cloud builds, asset distribution, or log monitoring, it can adopt the industry-standard categories of container platforms, object storage, and monitoring/alerting, without binding to any proprietary interface.