digraph {
  rankdir=LR;

  node [shape=box];

  init [label="", shape=none];
  splash [label="[Z] Splash"];
  options [label="Options"];
  credits [label="Credits"];
  create_server [label="Create Multiplayer Game"];
  join_game [label="Join Multiplayer Game"];
  create_sp_game [label="Create Singleplayer Game"];
  game [label="Gameplay"];
  pause_menu [label="Pause Menu"];
  options_ingame [label="Options (Ingame)"];
  mainmenu [label="Main Menu"];

  init -> splash -> mainmenu;

  mainmenu -> options -> mainmenu;
  mainmenu -> credits -> mainmenu;

  mainmenu -> create_server -> mainmenu;
  mainmenu -> join_game -> mainmenu;
  mainmenu -> create_sp_game -> mainmenu;

  create_server -> game;
  join_game -> game;
  create_sp_game -> game;

  game -> pause_menu -> game;
  pause_menu -> mainmenu;

  pause_menu -> options_ingame -> pause_menu;

}