How to implement solid state game style score queues in MPF
Related Config File Sections:
When scoring in solid state games the game will typically play chimes while adding the player score and wait after each digit. You can use score_queues: and score_queue_player: to implement this in MPF.
coils:
c_chime_1000:
number:
c_chime_100:
number:
c_chime_10:
number:
score_queues:
score:
chimes: c_chime_1000, c_chime_100, c_chime_10, None
##! mode: my_mode
# in your mode
score_queue_player:
score_2k:
score: 2000
score_200:
score: 200
##! test
#! start_game
#! assert_player_variable 0 score
#! start_mode my_mode
#! post score_2k
#! post score_200
#! advance_time_and_run .1
#! assert_player_variable 1000 score
#! advance_time_and_run .2
#! assert_player_variable 2000 score
#! advance_time_and_run .2
#! assert_player_variable 2100 score
#! advance_time_and_run .2
#! assert_player_variable 2200 score
Something missing or wrong? You can fix it!
This website is edited by people like you! Is something wrong or missing? Is something out of date, or can you explain it better?
Please help us! You can fix it yourself and be an official "open source" contributor!
It's easy! See our Beginner's guide to editing the docs.
Page navigation via the keyboard: < >
You can navigate this site via the keyboard. There are two modes:
General navigation, when search is not focused:
- F , S , / : open search dialog
- P , , : go to previous page
- N , . : go to next page
While using the search function:
- Down , Up : select next / previous result
- Esc , Tab : close search
- Enter : go to highlighted page in the results