为1MGames比赛制作的太空类游戏 https://visualgmq.github.io/projects/
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.
Go to file
VisualGMQ 2de5647de5 fixed readme 2022-02-19 17:49:30 +08:00
assets add cover.png; fixed cmake 2022-02-17 17:28:26 +08:00
include add glew support; fixed cmake to pack game 2022-02-18 16:33:24 +08:00
libs move glfw as submodule, add other libs' licenses 2022-02-17 15:35:00 +08:00
licenses add glew support; fixed cmake to pack game 2022-02-18 16:33:24 +08:00
snapshot fixed readme 2022-02-17 21:23:13 +08:00
src add glew support; fixed cmake to pack game 2022-02-18 16:33:24 +08:00
tests finished basic spaceship, it can move and shoot 2022-02-07 21:38:35 +08:00
.gitignore add restart btn 2022-02-17 16:54:05 +08:00
.gitmodules move glfw as submodule, add other libs' licenses 2022-02-17 15:35:00 +08:00
CMakeLists.txt add glew support; fixed cmake to pack game 2022-02-18 16:33:24 +08:00
HowToPlay.md fixed readme 2022-02-17 21:23:13 +08:00
LICENSE add LICENSE. 2022-02-17 13:27:10 +00:00
ReadMe.md fixed readme 2022-02-19 17:49:30 +08:00

ReadMe.md

SpaceWar

一款空战类游戏。采用C++17开发。

1MGames相关

1MGames比赛相关代码在1mgames分支下。此分支在未来可能会继续开发,目前不稳定。

编译方法

依赖:

  • SDL, SDL_image, SDL_ttf

使用CMake 3.20及以上进行编译。需要拉取SDLEngine作为子工程:

git submodule update --init --recursive

然后编译:

cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

编译好后执行pack命令打包

cmake --build build --target Pack

最终的结果在output文件夹下:

  • game包含了游戏本体
  • snapshot包含了游戏的截图
  • HowToPlay.md游戏说明

游戏截图

welcome

select

gaming

gaming2

游戏操作

游戏操作