This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
space-war/ReadMe.md

53 lines
913 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# SpaceWar
一款空战类游戏。采用C++17开发。
## 1MGames相关
1MGames比赛相关代码在`1mgames`分支下。此分支在未来可能会继续开发,目前不稳定。
## 编译方法
依赖:
* SDL, SDL\_image, SDL\_ttf
使用CMake 3.20及以上进行编译。需要拉取`SDLEngine`作为子工程:
```bash
git submodule update --init --recursive
```
然后编译:
```bash
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build
```
编译好后执行pack命令打包
```bash
cmake --build build --target Pack
```
最终的结果在`output`文件夹下:
* game包含了游戏本体
* snapshot包含了游戏的截图
* HowToPlay.md游戏说明
## 游戏截图
![welcome](./snapshot/welcome.png)
![select](./snapshot/select_ship.png)
![gaming](./snapshot/gaming.png)
![gaming2](./snapshot/gaming2.png)
## 游戏操作
[游戏操作](./HowToPlay.md)