Files
space_shoot/README.md
2025-05-27 20:05:53 +08:00

31 lines
708 B
Markdown
Raw Permalink 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.

# Space_Shoot
## 介绍
这是一个基于SDL2 SDL2_Image SDL2_Mixer SDL2_TTF 的小项目。
整体实现了一个非常简单的飞机大战小游戏。
## 构建
项目仅可以在Window平台使用MinGW进行构建暂未做MSVC适配(可自行修改CmakeLists.txt和lib里的库来进行使用其他编译器构建)
### 1. 使用Cmake
* 生成cmake构建文件
```bash
cmake -B build -G "MinGW Makefiles"
```
* 开始构建
```bash
cmake --build build --config Release -j18
```
构建好的文件全部在`bin/`目录中
### 2. 使用Clion
直接选择打开项目到此项目目录即可clion会自动识别`CmakeLists.txt`, 之后添加`Debug``Release` 项目进行构建即可.