#include "DxLib.h"

#define _USE_MATH_DEFINES 1
#include <math.h>


// vO WinMain n܂܂
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
						LPSTR lpCmdLine, int nCmdShow )
{
	if( DxLib_Init() == -1 )		// cwCu
	{
		return -1 ;			// G[N璼ɏI
	}
	int r = 100;
	double angle = M_PI /30.0 ; 
	DrawBox( 320 , 240 , 325,245, 0xffff00,1 ) ;	// _ł
	for( int i = 0 ; i<100; i++){
		DrawLine(320,240, 320 + r*cos(angle*i),240 + r*sin(angle*i),0xffff00,1);

		WaitKey() ;				// L[͑҂
	};

	DxLib_End() ;				// cwCugp̏I

	return 0 ;				// \tg̏I 
}