1 Star 0 Fork 0

gite-hub / xx2dw_shooter

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

intro

xx2d web + desktop game engine

language

c++20 with coroutine

projects

web: ( all in ./CMakeLists.txt )

s*

desktop: ( single project )

d*

3rd project require

https://www.boost.org/users/download/

unzip & rename to "boost", put it in the same level directory

env

https://emscripten.org/index.html emsdk with install & activate latest version

system env add ( copy from emsdk_env.bat ):

EMSDK ???????????\emsdk EMSDK_NODE ???????????\emsdk\node??????????????64bit\bin\node.exe EMSDK_PYTHON ???????????\emsdk\python?????-nuget_64bit\python.exe JAVA_HOME ???????????\emsdk\java?????_64bit

system env path add:

???????????\emsdk ???????????\emsdk\upstream\emscripten ???????????\emsdk\upstream\bin ???????????\emsdk\node?????????64bit\bin

ide1

clion

path add for ninja64.exe: C:\Program Files\JetBrains\CLion 20????????????????????????????\bin\ninja\win\x64

path add for mingw32-make.exe: C:\Program Files\JetBrains\CLion 20????????????????????????????\bin\mingw\bin

config ( for every cmake project ): File -- Settings -- Build, Execution, Deployment -- CMake -- Debug ( default mingw ) CMake options:

-DCMAKE_TOOLCHAIN_FILE=???????????\emsdk\upstream\emscripten\cmake\Modules\Platform\Emscripten.cmake

more: ( ignore vs build dir ) mouse right click on "dir", Mark Directory As -- Excluded

build

click clion "hammer" icon

browse

clion terminal window: cd cmake-build-???????? emrun ?????.html

ide2 ( better for c++ because clion lag & keep use so many cpu )

vs22 with llvm installed

use cmake gui fill -T ClangCL generate .sln & open

after open .sln, delete CMakeCCompilerId.c & CMakeCXXCompilerId.cpp from project

build & browse

in vs22, hot key : ctrl + ` open developer powershells: mkdir ????? cd ????? emcmake cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo = Debug | Release | RelWithDebInfo emmake make -j24 emrun ?????.html

online view:

https://denghe.github.io/xx2dw_shooter/

others

aseprite build: download aseprite source code from https://github.com/aseprite/aseprite/releases download skia from https://github.com/aseprite/skia/releases extract zips run "x64 Native Tools Command Prompt for VS 2022" cd C:/Codes/Aseprite mkdir build cd build cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLAF_BACKEND=skia -DSKIA_DIR=C:/Codes/Skia-Windows-Release-x64 -DSKIA_LIBRARY_DIR=C:/Codes/Skia-Windows-Release-x64/out/Release-x64 .. ninja aseprite

空文件

简介

https://github.com/denghe/xx2dw_shooter 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Lua
1
https://gitee.com/gite-hub/xx2dw_shooter.git
git@gitee.com:gite-hub/xx2dw_shooter.git
gite-hub
xx2dw_shooter
xx2dw_shooter
main

搜索帮助