Skip to content

Commit

Permalink
example to end game when long-pressing start
Browse files Browse the repository at this point in the history
  • Loading branch information
jabdoa2 committed Mar 11, 2020
1 parent e015481 commit ce58da4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions game_design/game_mode.rst
Expand Up @@ -225,6 +225,26 @@ This example is based on Bally's Heavy Metal Meltdown. The example below create
#! hit_and_release_switch s_top_lane_M
#! assert_player_variable 2 pf_multiplier
Ending the Current Game by Long-pressing Start
----------------------------------------------

The following snippet will end a running game by long-pressing the start
button:

.. code-block:: mpf-config
timed_switches:
game_cancel:
switch_tags: start
time: 5s
events_when_active: game_ended
Please note that this will also work on ball one and will not inhibit bonus
nor high_score mode.
Let us know in the forum if you need this.


Delay Ball Start/Stop to Show Slides/Sounds
-------------------------------------------

Expand Down

0 comments on commit ce58da4

Please sign in to comment.