基于entity-component-system(ECS)模式实现的宝石三消例子。
- git clone https://github.com/sb-baifeng-sb/match3.git
- brew install cmake (Linux: sudo apt install cmake)
- brew install sfml (Linux: sudo apt install libsfml-dev)
- cd match3
- sh init.sh (首次运行时需要使用)
- sh build.sh
- sh run.sh
如果已经安装了cmake可以跳过第2步
如果想要重新编译项目,使用 sh build.sh -clean