sakura57 / so4

Spaced Out 4, an open-source 2D space shooter game
GNU General Public License v2.0
1 stars 0 forks source link

Loading screens, main menu title graphic #30

Closed sakura57 closed 4 years ago

sakura57 commented 4 years ago

Added loading screen game state, which the state manager keeps one instance of internally. Loading screen is triggered by calling CGameStateManager::notify_initiate_loading() and ended by calling CGameStateManager::notify_loading_finished().

The loading screen state doesn't replace the state manager's current held state, but "interrupts" it, during which time the game is considered paused and world and UI rendering is disabled. This way, loading screens can be triggered in the middle of gameplay without the need to recreate an entire state.

Long loading operations (loading data files when the game first starts, savegame operations) are now performed in a separate thread and trigger the loading screen.

A main menu title graphic was added.