Update Genshin Impact main.cpp

main
peauxh9ov 5 months ago
parent 10d366fe7c
commit aaa4c8a9dd

@ -1,29 +1,29 @@
#include<iostream> #include<iostream>
#include "ChessGame.h" #include "ChessGame.h"
int main() int main()
{ {
Player player; Player player;
Chess chess(15,12,13,27); Chess chess(15,12,13,27);
AI ai; AI ai;
ChessGame game(&player,&ai,&chess); ChessGame game(&player,&ai,&chess);
//创建游戏窗口 //„1¤7„1¤7„1¤7„1¤7„1¤7„1¤7<EFBFBD>0Ð5„1¤7„1¤7„1¤7„1¤7
initgraph(400, 400); initgraph(400, 400);
while (1) while (1)
{ {
//显示初始页面 //„1¤7„1¤7<EFBFBD>0¶5„1¤7„1¤7<EFBFBD>0¶3<EFBFBD>0Ü7„1¤7„1¤7
loadimage(0, "graphics/start.jpg", 400, 400, true); loadimage(0, "start.jpg", 400, 400, true);//¸ü¸Ä·¾¶
while (1) while (1)
{ {
//获取鼠标点击信息,并判断点击情况 //„1¤7„1¤7<EFBFBD>0§0„1¤7„1¤7„1¤7„1¤7„1¤7„1¤7„1¤7<EFBFBD>0Î4,„1¤7„1¤7„1¤7§Ø<C2A7>0Ð3„1¤7„1¤7„1¤7„1¤7„1¤7
MOUSEMSG msg = GetMouseMsg(); MOUSEMSG msg = GetMouseMsg();
if (msg.uMsg == WM_LBUTTONDOWN) if (msg.uMsg == WM_LBUTTONDOWN)
break; break;
if (msg.uMsg == WM_RBUTTONDOWN) if (msg.uMsg == WM_RBUTTONDOWN)
exit(0); exit(0);
} }
game.play(); game.play();
} }
return 0; return 0;
} }
Loading…
Cancel
Save