void sharpe_running_deff (void) { for (;;) { score_update_start (); dmd_alloc_pair (); dmd_clean_page_low (); font_render_string_center (&font_term6, 64, 4, "SKILL MULTIBALL"); sprintf_current_score (); font_render_string_center (&font_fixed6, 64, 16, sprintf_buffer); dmd_copy_low_to_high (); sprintf ("%d RAMPS FOR SKILL SHOT", sssmb_ramps_to_divert); font_render_string_center (&font_var5, 64, 26, sprintf_buffer); dmd_show_low (); while (!score_update_required ()) { task_sleep (TIME_66MS); dmd_show_other (); } } }
/** Called from a deff when it wants to toggle between two images * on the low and high mapped pages, both in mono mode. * COUNT is the number of times to toggle. * DELAY is how long to wait between each change. */ void deff_swap_low_high (S8 count, task_ticks_t delay) { dmd_show_low (); while (--count >= 0) { dmd_show_other (); task_sleep (delay); } }
void sssmb_running_deff (void) { for (;;) { score_update_start (); dmd_alloc_pair (); dmd_clean_page_low (); font_render_string_center (&font_term6, 64, 4, "SKILL MULTIBALL"); sprintf_current_score (); font_render_string_center (&font_fixed6, 64, 16, sprintf_buffer); dmd_copy_low_to_high (); if (timer_find_gid (GID_SSSMB_DIVERT_DEBOUNCE)) { sprintf ("SKILL SHOT SCORES JACKPOT"); } else if (sssmb_ramps_to_divert == 0) { sprintf ("SHOOT LEFT RAMP NOW"); } else if (sssmb_ramps_to_divert == 1) { sprintf ("1 RAMP FOR SKILL SHOT"); } else { sprintf ("%d RAMPS FOR SKILL SHOT", sssmb_ramps_to_divert); } font_render_string_center (&font_var5, 64, 26, sprintf_buffer); dmd_show_low (); while (!score_update_required ()) { task_sleep (TIME_66MS); dmd_show_other (); } } }