How to design a game in MPF using Modes

This section assumes that you already configured all your hardware devices (especially all your ball device). If you did not configure your hardware please do that first. You can go through the tutorial or have a look a the mechs section.

This section is about laying out your modes and actually designing your game logic. It is structured into the following subsections:

Mode Selection

Questions answered in this section:

  • How does a player qualify for a mode?
  • How to start the mode?
  • Can multiple modes run at once?

Game Mode

Questions answered in this section:

  • How to track progress inside a mode?
  • How does it end?
  • Will it always succeed?
  • Can it timeout?
  • Can it restart if it failed?
  • Where will it contine on restart?

Game Startup

Questions answered in this section:

  • How to select modes/players during start?
  • How to implement a (timed) skill shot?

Wizard Modes

Questions answered in this section:

  • How to track achievements towards one or multiple wizard modes?
  • How to start a wizard mode?
  • What to do after wizard mode?

Other modes

Questions answered in this section:

  • How to implement roll over lanes in a mode?
  • How to implement a mystery award mode?
  • How to implement a standup target bank mode?

Layering Modes Example

Examples given in this section:

  • How to define mode categories and helper modes
  • How to move in and out of game and wizard modes
  • How to track and persist progress outside of modes