void CharacterCreateSeane::inputCharacterName(void){
	SetMouseDispFlag( TRUE );
	SetUseIMEFlag( TRUE );
INPUT_RETRY:
	DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, NameEdit);
	if(strcmp(copystring,"") == 0 ) goto INPUT_RETRY;
	this->inputName = copystring;
	SetMouseDispFlag( FALSE );
	SetUseIMEFlag( FALSE );
}
示例#2
0
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ){
	ChangeWindowMode(TRUE);
	gFPS.SetDefaultFPS(60);
	if( DxLib_Init() == -1 ){
		 return -1;	// エラーが起きたら直ちに終了
	}
	ChangeFontType(DX_FONTTYPE_ANTIALIASING_EDGE);
	SetMouseDispFlag(TRUE);
	gameManager.SetStage(gameManager.Load);
	for(;;){ //メインループ
		ClearDrawScreen();
		if(ProcessMessage()==-1 || GameMain()==1){break;} //ゲーム本体を実行
		//FPS描画
		int NowFPS = gFPS.Get();
		int Col = (int)(255 * NowFPS / gFPS.GetDefaultFPS());
		//DrawFormatString(500,450,GetColor(255,Col,Col),"FPS: %d",NowFPS);
		ScreenFlip();
		if((GetJoypadInputState( DX_INPUT_KEY_PAD1 ) & PAD_INPUT_10) !=0){
			GetDateTime( &Date );
			std::stringstream fname;
			fname <<"img" << Date.Year << Date.Mon << Date.Day <<Date.Hour <<Date.Min <<GetNowCount() << ".png";
			SaveDrawScreenToPNG( 0 , 0 , 480 , 480 ,fname.str().c_str()) ;
		}
		gFPS.Fix();
	}

	DxLib_End() ;		// DXライブラリ使用の終了処理

	return 0 ;		// ソフトの終了
}
示例#3
0
MusicApple::MusicApple(int x, int y, int num)
{
	this->x = x;
	this->y = y;
	this->num = num;
	if(this->num == 0){
		this->graphic_h_s = LoadGraph("picture/small_onestar.bmp");
		this->graphic_h_b = LoadGraph("picture/ultrasoul_apple2.bmp");
		this->sound_h = LoadSoundMem("music/ultrasoul.mp3");
		this->sound_h_demo = LoadSoundMem("music/ultrasoul_mini.mp3");
		this->musicfile = "ultrasoul_score.txt";
	}
	else if(this->num == 1){
		this->graphic_h_s = LoadGraph("picture/small_twostar.bmp");
		this->graphic_h_b = LoadGraph("picture/koi_apple.bmp");
		this->sound_h = LoadSoundMem("music/koi.mp3");
		this->sound_h_demo = LoadSoundMem("music/koi_mini.mp3");
		this->musicfile = "koi_score.txt";
	}
	else if(this->num == 2){
		this->graphic_h_s = LoadGraph("picture/small_threestar.bmp");
		this->graphic_h_b = LoadGraph("picture/johnetsu_apple.bmp");
		this->sound_h = LoadSoundMem("music/johnetsu.mp3");
		this->sound_h_demo = LoadSoundMem("music/johnetsu_mini.mp3");
		this->musicfile = "johnetsu_score.txt";
	}
	this->hit_area = MUSICAPPLE_HIT_AREA;
	SetMouseDispFlag( TRUE );

	this->color = GetColor(0, 0, 255);

	once = false;
}
示例#4
0
InputMouse::Impl::Impl( int is_visible_cursor )
: m_x( 0 )
, m_y( 0 )
{
	if( SetMouseDispFlag( is_visible_cursor ) == FunctionFailure )
	{
		exit( DxLib_Failure );
	}
}
示例#5
0
FallingObject::FallingObject(void)
{
	this->speed = SPEED;
	this->starttime = GetNowCount();
	this->sound_h = LoadSoundMem("music/bomb.mp3");
	this->hit_area = HIT_AREA;
	this->color = GetColor(0, 255, 0);
	SetMouseDispFlag( TRUE );
	exist=true;
	once=false;
}