Game Modes
Overview
Game modes in NeoFPS are intended to control the flow of a game. This means creating a player object, spawning and respawning characters and attaching them to the player. They are derived from the FpsGameMode
base behaviour which is an abstract class and therefore cannot be placed in the scene without a specific implementation.
In this version of NeoFPS the only implementation available is called FpsSoloGameMinimal. This implementation simply spawns both a player and character from prefabs on start. On a character's death, the FpsSoloGameMinimal can be set to either spawn a new character, reload the scene, return to the main menu, or load the last valid save game (for more information on save games, see Save Games. The minimal implementation is designed for testing and development of prototypes and as a template for implementing a custom game mode for your own game.
The game mode also handles persisting data such as player health and inventory between scenes, also using the save game system. This can be toggled on or off.
Game modes will be expanded in future versions of NeoFPS to provide a simple starting point when developing common types of FPS games.