ReadonlycurrentCurrent round number (1-based).
Optional ReadonlygameOptional game mode (affects rules/behavior).
Optional ReadonlyheightCanvas height in pixels. Defaults to 800.
ReadonlyisWhether combat is currently paused.
ReadonlyonCallback when the match ends, with the winner's index (0 or 1).
Index of the winning player.
ReadonlyonCallback to update a player's state by index.
Index of the player to update (0 or 1).
Partial PlayerState with updated fields.
ReadonlyonCallback when the user exits to the menu.
ReadonlyplayersArray of player states (expects exactly 2 players). Each PlayerState contains all combat and status information for a player.
ReadonlytimeRemaining time in seconds for the current round.
Optional ReadonlywidthCanvas width in pixels. Defaults to 1200.
Props for the CombatScreen3D component. Provides all state and callbacks required for the 3D combat screen.