From aaa4c8a9dde7c3029ef46f5b22a2ac52e39147a7 Mon Sep 17 00:00:00 2001 From: peauxh9ov <1757486528@qq.com> Date: Tue, 18 Jun 2024 00:09:01 +0800 Subject: [PATCH] Update Genshin Impact main.cpp --- Genshin Impact main.cpp | 56 ++++++++++++++++++++--------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/Genshin Impact main.cpp b/Genshin Impact main.cpp index 2fe08e0..6c0d968 100644 --- a/Genshin Impact main.cpp +++ b/Genshin Impact main.cpp @@ -1,29 +1,29 @@ -#include -#include "ChessGame.h" -int main() -{ - Player player; - Chess chess(15,12,13,27); - AI ai; - ChessGame game(&player,&ai,&chess); - //创建游戏窗口 - initgraph(400, 400); - while (1) - { - //显示初始页面 - loadimage(0, "graphics/start.jpg", 400, 400, true); - while (1) - { - //获取鼠标点击信息,并判断点击情况 - - MOUSEMSG msg = GetMouseMsg(); - if (msg.uMsg == WM_LBUTTONDOWN) - break; - if (msg.uMsg == WM_RBUTTONDOWN) - exit(0); - } - game.play(); - } - return 0; - +#include +#include "ChessGame.h" +int main() +{ + Player player; + Chess chess(15,12,13,27); + AI ai; + ChessGame game(&player,&ai,&chess); + //������Ϸ���� + initgraph(400, 400); + while (1) + { + //��ʾ��ʼҳ�� + loadimage(0, "start.jpg", 400, 400, true);//更改路径 + while (1) + { + //��ȡ�������Ϣ,���жϵ����� + + MOUSEMSG msg = GetMouseMsg(); + if (msg.uMsg == WM_LBUTTONDOWN) + break; + if (msg.uMsg == WM_RBUTTONDOWN) + exit(0); + } + game.play(); + } + return 0; + } \ No newline at end of file