Exemplo n.º 1
0
void main(void){
	time_t t1,t2;

	time(&t1);
	gamestart();
	time(&t2);
	printf("かかった時間は%.0f秒です\n",difftime(t2,t1));
}
Exemplo n.º 2
0
void Start::handleButton3()
{
    //this->close();
    mainwindow.flag = 2;
    //this->setWindowTitle( QString::number(flag) );
    gamestart();
    mainwindow.setWindowTitle(QString("AI mode"));
}
Exemplo n.º 3
0
void Start::handleButton2()
{

    //this->close();

    //this->setWindowTitle( QString::number(mainwindow.flag) );
    mainwindow.flag = 1;
    gamestart();
    mainwindow.setWindowTitle(QString("PVP mode"));
}
Exemplo n.º 4
0
int main()

{
	gamestart();

	gamecircle();

	endgame();

	return 0;

}
Exemplo n.º 5
0
//ゲーム開始画面
void start_menu()
{
	if(change_jikiflag == false)
	{
		DrawGraph(120,80,g_tytle,true);
	}
	else
	{
		DrawGraph(120,80,g_tytle2,true);
	}
	DrawGraph(130,240,g_coment,true);//つぶやき機能付き
	DrawGraph(80,270,g_start,true);
	DrawGraph(464,270,g_exit,true);

	for(int i = 0;i<maxshot;i++)
	{
		if(shot_used3[i] == true)
		{
			if(80 < shot_s[i].x+33 && 270 < shot_s[i].y+33 && shot_s[i].x < 176 && shot_s[i].y < 334)
			{
				
				gamestart();
			}
			if(464 < shot_s[i].x+33 && 270 < shot_s[i].y+33 && shot_s[i].x < 560 && shot_s[i].y < 334)
			{
				
				shot_used2[i] = false;
				shot_used3[i] = false;
				PlaySoundMem(se_combo_miss,DX_PLAYTYPE_NORMAL);
				exitflag = true;
				

			}
		}
	}

}
Exemplo n.º 6
0
void game::on_pushButton_clicked()
{
    gamestart();
    trigger=true;
}