个人学习练手项目
-
安装好git和cmake,然后敲命令
git clone --recursive https://github.com/oceancx/SimpleEngine
-
编译之前将Environment.h中WORK_DIR宏设置为SimpleEngine的路径,例如:
#define WORK_DIR "/Users/oceancx/SimpleEngine"
-
下载资源压缩包:百度云盘,直接在SimpleEngine/下解压即可,你会看到Data/文件夹被创建
-
然后:
cd SimpleEngine/ mkdir build cd build cmake .. make -j8 ./SimpleEngine
用CMake生成VisualStudio项目文件,打开VS编译即可,同样需要设置Environment.h的WORK_DIR
在线聊天~ (progress:0.01%)
未整理,不过里面东西很多。https://pan.baidu.com/s/1kV9qrEB
- main函数在program.cpp中
- Window负责初始化Game,Game负责初始化Engine,Engine负责初始化Sence,Sence就是游戏的内容了。
- 此Repo暂时还不稳定,稳定之后会发布相关文档,包括资源文件的id对应表,以及显示资源文件的工具,还有资源读取的相关源码,还有各种参考资料,汗。。。。
Fantasy Westward Journey, individual learning and training project.
-
install cmake and git,then:
git clone --recursive https://github.com/oceancx/SimpleEngine
-
before build,in file "Environment.h",set WORK_DIR as SimpleEngine's path,for instance:
#define WORK_DIR "/Users/oceancx/SimpleEngine"
-
download resource zip file :baidu pan , and extract to SimpleEngine/ , you will see a new dir Data/ was created.
-
then,happy to build:
cd SimpleEngine/ mkdir build cd build cmake .. make -j8 ./SimpleEngine
Use CMake to generate Visual Studio Project file, Open it by VS and build.