Пример #1
0
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 ();
		}
	}
}
Пример #2
0
void mb_running_deff (void)
{
	extern U8 mb_targets_left;

target_change:
	dmd_map_overlay ();
	frame_draw (IMG_UFO);
	font_render_string_center (&font_mono5, 92, 5, "MULTIBALL");
	dmd_rough_copy (64, 2, 64, 6);
	if (mb_targets_left == 0)
		sprintf ("SUPER JACKPOT LIT");
	else if (mb_targets_left == 1)
		sprintf ("%d TARGET LEFT", mb_targets_left);
	else
		sprintf ("%d TARGETS LEFT", mb_targets_left);
	font_render_string_center (&font_var5, 88, 27, sprintf_buffer);

	U8 t = mb_targets_left;
score_change:
	for (;;)
	{
		dmd_map_overlay ();
		sprintf_current_score ();
		dmd_rough_erase (64, 11, 64, 10);
		font_render_string_center (&font_mono9, 92, 16, sprintf_buffer);
		dmd_rough_copy (64, 11, 64, 10);

		for (;;)
		{
			score_update_start ();
			dmd_map_overlay ();
			dmd_dup_mapped ();
			dmd_show2 ();
			task_sleep (TIME_200MS);
			if (score_update_required ())
				goto score_change;

			dmd_map_overlay ();
			dmd_dup_mapped ();
			dmd_rough_erase (64, 11, 64, 10);
			dmd_flip_low_high ();
			dmd_rough_erase (64, 11, 64, 10);
			dmd_flip_low_high ();
			dmd_show2 ();
			task_sleep (TIME_200MS);
			if (score_update_required ())
				goto score_change;
		}
	}
}
Пример #3
0
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 ();
		}
	}
}
Пример #4
0
/** Reset all scores to zero */
void scores_reset (void)
{
	score_update_start ();
	memset ((U8 *)scores, 0, sizeof (scores));
	current_score = &scores[0][0];
}