Beispiel #1
0
int main_handler(int type, int par1, int par2) {

	int i;

	if (type == EVT_SHOW) {

		ClearScreen();
		FullUpdate();
		DrawRect(10, 18, 580, 104, 0);
		for(i=0; i<16; i++) {
			FillArea(12+i*36, 20, 36, 100, i*0x111111);
		}
		FullUpdate();
		FineUpdate();

	}

	if (type == EVT_KEYPRESS) {

		CloseApp();

	}

	return 0;

}
void balda_controller_on_game_started()
{
	ClearScreen();
	FullUpdate();
	
	//balda_view_draw_all(g_balda_controller.view);
	//balda_view_reset(g_balda_controller.view);
	
	balda_field_view_reset(g_balda_controller.field_view);
	balda_field_view_load(g_balda_controller.field_view, g_balda_controller.balda);
	balda_keyboard_view_draw(g_balda_controller.kb_view);
	balda_player_view_draw(g_balda_controller.player_view[0]);
	balda_player_view_draw(g_balda_controller.player_view[1]);
	balda_title_view_show(g_balda_controller.title_view);
	
	//DrawString(0, 0, GetDeviceModel());
	
	FullUpdate();
	FineUpdate();
	
	balda_view_reset(g_balda_controller.view);
	balda_controller_next_turn(1);
}