void main(void){ time_t t1,t2; time(&t1); gamestart(); time(&t2); printf("かかった時間は%.0f秒です\n",difftime(t2,t1)); }
void Start::handleButton3() { //this->close(); mainwindow.flag = 2; //this->setWindowTitle( QString::number(flag) ); gamestart(); mainwindow.setWindowTitle(QString("AI mode")); }
void Start::handleButton2() { //this->close(); //this->setWindowTitle( QString::number(mainwindow.flag) ); mainwindow.flag = 1; gamestart(); mainwindow.setWindowTitle(QString("PVP mode")); }
int main() { gamestart(); gamecircle(); endgame(); return 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; } } } }
void game::on_pushButton_clicked() { gamestart(); trigger=true; }