Oakfolks Gold_1.14
Oakfolks coop game
|
Main game mode for cooperative gameplay. More...
#include <MainGamemode.h>
Public Member Functions | |
AMainGamemode () | |
Initializes the game mode with default pawn class. | |
virtual void | BeginPlay () override |
Configures multiplayer and creates the second player. | |
virtual void | Tick (float DeltaTime) override |
Updates the game mode each frame. | |
void | CreateLocalPlayer () |
Creates a second local player for split-screen cooperation. | |
Main game mode for cooperative gameplay.
Manages local multiplayer setup and camera configuration for two-player sessions
AMainGamemode::AMainGamemode | ( | ) |
Initializes the game mode with default pawn class.
Sets up the blueprinted character class as the default pawn
|
overridevirtual |
Configures multiplayer and creates the second player.
Sets maximum splitscreen players and initializes local co-op
void AMainGamemode::CreateLocalPlayer | ( | ) |
Creates a second local player for split-screen cooperation.
PLAYER MANAGEMENT //////// Local multiplayer setup
Spawns the second player and configures the camera system
|
overridevirtual |
Updates the game mode each frame.
Handles any per-frame game mode logic
DeltaTime | Time elapsed since the last frame in seconds |