diff --git a/HowToPlay.md b/HowToPlay.md index e0bdb23..84010f0 100644 --- a/HowToPlay.md +++ b/HowToPlay.md @@ -1,4 +1,10 @@ -在命令行中运行`SpaceWar`即可(确保`assets`文件夹在同一目录下) +游戏平台是MacOS。在MacOS BigSur 11.6上可以正常运行。 + +游戏本体在`game`文件夹下。通过命令行进入`game`文件夹运行`SpaceWar`程序即可开始游戏。 + +开发语言是C++,此游戏开源,地址[在这里](https://gitee.com/VisualGMQ/space-war.git) + +游戏内容说明: ![welcome](./snapshot/welcome.png) @@ -9,14 +15,13 @@ 选择飞船和配置阵营界面。左边选择你的飞船(目前只有两架),右边可以配置阵营: * `Group Number`:要参战的队伍(最少2队,最多4队) -* `Plane Number`:每队的飞船数目 +* `FightShips`:每队的战斗机数目 +* `FreightShips`:每队的防御机数目 机种: -* 防御机(圆圆的那个):血量高,但是速度慢,攻击频率慢,且只有炮弹武器,但是可以360度射击。 -* 战斗机(看上去就像战斗机的那个):血量少,但是速度快,攻击频率高,有炮弹和导弹两种武器,炮弹只可以向飞行方向射击。 - -战斗机和防御机的起始数量是随机的(总数为Plane Number)。 +* 防御机(圆圆的,上图显示的那个):血量高,但是速度慢,攻击频率慢,且只有炮弹武器,但是可以360度射击和飞行。 +* 战斗机(尖的):血量少,但是速度快,攻击频率高,有炮弹和导弹两种武器,只能向前飞行(可以转向),炮弹只可以向飞行方向射击。 ![gaming](./snapshot/gaming.png) @@ -30,7 +35,7 @@ 飞机的操作: * 防御机,按下w,a,s,d进行上下左右的移动,按下鼠标左键进行攻击。 -* 战斗机,按下a,d进行左右转向,w,s进行加速和减速(不能向后倒着飞),鼠标左键使用炮弹,鼠标右键发射导弹(导弹有数量限制)。 +* 战斗机,按下a,d进行左右转向,w,s进行加速和减速(不能向后倒着飞),鼠标左键使用炮弹,鼠标右键发射导弹(导弹有数量限制),如果导弹瞄准了敌人可以自动跟踪。 切换飞机: diff --git a/ReadMe.md b/ReadMe.md index e11fca7..5d6d223 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -4,7 +4,7 @@ ## 编译方法 -使用CMake 3.20及以上进行编译。 +使用CMake 3.20及以上进行编译。目前只能在Mac平台下编译(因为我用的glad是Mac专属,你也可以将你平台的glad替换`libs/glad`文件夹来编译,glad指定OpenGL3.3 Core版本) ```bash cmake -S . -B build -DCMAKE_BUILD_TYPE=Release diff --git a/snapshot/end.png b/snapshot/end.png new file mode 100644 index 0000000..a596f67 Binary files /dev/null and b/snapshot/end.png differ diff --git a/snapshot/gaming.png b/snapshot/gaming.png index e265647..6868329 100644 Binary files a/snapshot/gaming.png and b/snapshot/gaming.png differ diff --git a/snapshot/gaming2.png b/snapshot/gaming2.png new file mode 100644 index 0000000..aba6224 Binary files /dev/null and b/snapshot/gaming2.png differ diff --git a/snapshot/select_ship.png b/snapshot/select_ship.png index 313142e..144926e 100644 Binary files a/snapshot/select_ship.png and b/snapshot/select_ship.png differ