Game Screens and Flow - Aryan2929/Battleship GitHub Wiki

Basic Overview

The Game will work by splitting different areas of the game into separate "screens", these will be self contained states the game can be in which will each contain some functionality necessary for the complete game experience we are striving for. The game will contain the following scenes:

  • Splash screen
  • Main Menu
  • Options
  • Game Select
  • Gameplay
  • Pause screen
  • Result screen

Screens Diagram

These screens and the functionality they provide will be explained in greater detail in the following sections.

Splash screen

This will be a screen which appears for a short amount of time after the game is started to show logos for our group and any technologies we are using in the project. Once the screen has completed its task it will transition into the Main Menu screen. Pressing Space-Bar or Enter on this screen will end this screen early and skip immediately to the Main Menu.

Main Menu

The Main Menu can be considered the "hub screen" of the game, from here the player can select to start a new game, edit options or quit. This screens primary purpose is to allow the user to navigate around to different primary screens in an easy and intuitive way.

Pressing "Start a new game" will transition the game into the Game Select screen. Pressing Options will transition the user into the Options screen and quitting will exit the game.

Options

Options will allow the user to change the volume of the game as-well as allow them to enable or disable sound effects or background music. There will also be a back button which will return the game to the Main Menu screen.

Game Select

This screen will simply allow the player to select whether or not they want to vs the computer player or another player sitting next to them. Pressing either option will transition the game into the Gameplay screen with the relevant selection enabled.

Gameplay

This is the screen that allows the player to play the game, if the game is played to completion the player will be transitioned into the Results screen, otherwise the player can pause the game to enter the Pause Screen.

Pause Screen

This screen will pause the progress of the game and give the player the options of either un-pausing the game or quitting the game. Un-pausing the game will return the game back into the Gameplay screen while quitting will return the game back to the Main Menu screen.

Result Screen

The result screen will appear after a game has been complete, it will display which player won and which player lost. It will give the player two options, either play again which will reset the game and return the game back to the gameplay screen. Otherwise the player can select return to main menu which will return the game back to the Main Menu screen.