scene_loader.c
void DrawProjectile(SceneData* scene_data, Canvas* game_canvas, RGB* color){
	
	// Load projectile
	Projectile* projectile = &(scene_data[SCENE_GAME_MAP].projectile);
	
	// Get the data about position and type of projectile
	short int x = (projectile->parabola)->parabolic_path[(projectile->projectile_path_pairs_index)*2];
	short int y = DISPLAY_HEIGHT-(projectile->parabola)->parabolic_path[(projectile->projectile_path_pairs_index)*2 + 1];
	int radius = PROJECTILE_ATTRIBUTES[projectile->type][PROJECTILE_RADIUS];
	CanvasCircle(x, y, radius, color, game_canvas);
	
	printf("Drawing projectile!\n");

	return;
}
/*  This function draws current position of projectile onto canvas.
	Draws a circle and arguments are color and radius of the circle  */
This function draws current position of projectile onto canvas.
Draws a circle and arguments are color and radius of the circle
This function draws current position of projectile onto canvas . Draws a circle and arguments are color and radius of the circle
void DrawProjectile(SceneData* scene_data, Canvas* game_canvas, RGB* color){
	Projectile* projectile = &(scene_data[SCENE_GAME_MAP].projectile);
	short int x = (projectile->parabola)->parabolic_path[(projectile->projectile_path_pairs_index)*2];
	short int y = DISPLAY_HEIGHT-(projectile->parabola)->parabolic_path[(projectile->projectile_path_pairs_index)*2 + 1];
	int radius = PROJECTILE_ATTRIBUTES[projectile->type][PROJECTILE_RADIUS];
	CanvasCircle(x, y, radius, color, game_canvas);
	printf("Drawing projectile!\n");
	return;
}
void DrawProjectile ( SceneData * scene_data , Canvas * game_canvas , RGB * color ) { Projectile * projectile = & ( scene_data [ SCENE_GAME_MAP ] . projectile ) ; short int x = ( projectile -> parabola ) -> parabolic_path [ ( projectile -> projectile_path_pairs_index ) * 2 ] ; short int y = DISPLAY_HEIGHT - ( projectile -> parabola ) -> parabolic_path [ ( projectile -> projectile_path_pairs_index ) * 2 + 1 ] ; int radius = PROJECTILE_ATTRIBUTES [ projectile -> type ] [ PROJECTILE_RADIUS ] ; CanvasCircle ( x , y , radius , color , game_canvas ) ; printf ( " \n " ) ; return ; }
This function draws current position of projectile onto canvas.
This function draws current position of projectile onto canvas .
// Load projectile // Get the data about position and type of projectile