scene_loader.c
void DrawWinningScreen(SceneData* scene_data, Canvas* game_canvas){

	RGB color_black = {.R = 0, .G = 0, .B = 0};
	
	if(scene_data[CURRENT_SCENE].player_turn == PLAYER_1_TURN){
		DrawText(game_canvas, "PLAYER 1 WON", 155, 150, 5, &color_black);
	}else if(scene_data[CURRENT_SCENE].player_turn == PLAYER_2_TURN){
		DrawText(game_canvas, "PLAYER 2 WON", 155, 150, 5, &color_black);
	}
	
	return;
}
/*  This function draws name of the player that won on the canvas  */
This function draws name of the player that won on the canvas
This function draws name of the player that won on the canvas
void DrawWinningScreen(SceneData* scene_data, Canvas* game_canvas){
	RGB color_black = {.R = 0, .G = 0, .B = 0};
	if(scene_data[CURRENT_SCENE].player_turn == PLAYER_1_TURN){
		DrawText(game_canvas, "PLAYER 1 WON", 155, 150, 5, &color_black);
	}else if(scene_data[CURRENT_SCENE].player_turn == PLAYER_2_TURN){
		DrawText(game_canvas, "PLAYER 2 WON", 155, 150, 5, &color_black);
	}
	return;
}
void DrawWinningScreen ( SceneData * scene_data , Canvas * game_canvas ) { RGB color_black = { . R = 0 , . G = 0 , . B = 0 } ; if ( scene_data [ CURRENT_SCENE ] . player_turn == PLAYER_1_TURN ) { DrawText ( game_canvas , " " , 155 , 150 , 5 , & color_black ) ; } else if ( scene_data [ CURRENT_SCENE ] . player_turn == PLAYER_2_TURN ) { DrawText ( game_canvas , " " , 155 , 150 , 5 , & color_black ) ; } return ; }
This function draws name of the player that won on the canvas
This function draws name of the player that won on the canvas