個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證A Vulkan game engine with a focus on data oriented design
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗The Fling Engine aims to be a cross platform Vulkan game engine that will experiment with the following:
There are a few basic steps to compiling Fling on your platform.
This project requires CMake 3.21 or higher, you can install it here.
GCC 13 or newer, Clang 16 or newer, or Visual Studio 2022. Older GCC and Clang are
rejected at configure time (see Skills/building.md for why).
On Ubuntu 22.04, install g++-13 and configure with CC=gcc-13 CXX=g++-13.
This project uses GLFW, so you will need to install those libraries to your machine.
Ubuntu:
sudo apt-get update
sudo apt-get install -y libglm-dev libxcb-dri3-0 libxcb-present0
sudo apt-get install -y libpciaccess0 libpng-dev libxcb-keysyms1-dev
sudo apt-get install -y libxcb-dri3-dev libx11-dev
sudo apt-get install -y libwayland-dev libxkbcommon-dev libxrandr-dev
sudo apt-get install -y libglfw3-dev
sudo apt-get install -y xorg-dev
Obviously this project is build using Vulkan, so you will need to install it before compiling or running the program.
You can download the SDK from the LunarG website here.
On Ubuntu/Debian you can alternatively install the headers, loader, and validation layers from
the system package manager instead of the LunarG SDK — this is enough for find_package(Vulkan)
in CMake to succeed:
sudo apt-get install -y libvulkan-dev vulkan-tools vulkan-validationlayers spirv-tools glslang-tools
If you are having trouble with the Vulkan SDK then check out some of these resources:
Init.bat and Init.shAfter installing the SDK, you can simply run one of the provided scripts.
Both scripts run the same thing, scripts/init.cmake: they get all
submodules and external libraries that the engine uses, install Catch2 locally for the tests,
and create a folder called build. The build folder will have your platform specific build
files (Visual Studio, Makefiles, etc). Any arguments are passed through to the build
configure, e.g. ./Init.sh -G Ninja -DCMAKE_BUILD_TYPE=Debug.
Once the system dependencies and Vulkan SDK above are installed, here's the full path from a fresh clone to a running game, on Linux/macOS:
# 1. Pull submodules, install Catch2 locally, and configure CMake into `build/`
./Init.sh
# 2. Build the Sandbox target
# --parallel $(nproc) tells the build to use all of your CPU cores at once
cmake --build build --target Sandbox --parallel $(nproc)
# 3. Run it
./build/Sandbox/bin/Sandbox
On Windows, the equivalent is:
:: 1. Pull submodules, install Catch2 locally, and configure CMake into `build/`
Init.bat
:: 2. Build the Sandbox target
cmake --build build --target Sandbox --config Debug
:: 3. Run it (path includes the build config)
build\Sandbox\bin\Debug\Sandbox.exe
See Skills/building.md for switching build types (Debug/Release/
shipping) and other day-to-day build details.
After running Init.bat/Init.sh, open FlingEngine.code-workspace
in VS Code (install the recommended CMake Tools and C/C++ extensions if prompted). The
Run and Debug panel has ready-made configurations — Debug Sandbox and Debug CoreTests,
Debug ResourcesTests, Debug EngineTests, Debug PhysicsTests, and Debug ApplicationTests —
that build the right target and launch it under the debugger. Ctrl+Shift+B runs Build All
(the engine, Sandbox, and the test executables). The Run CTest task runs every Catch2 case
and the isolation tests; per-target build tasks are also available via
Tasks: Run Task. Click the build-type entry in the bottom status bar (or run CMake: Select Variant) to switch between Debug, Release, RelWithDebInfo, and MinSizeRel — no need to
re-run Init.bat/Init.sh; the extension reconfigures automatically.
For ease of development and iteration the file paths to Assets (shaders, textures, models, etc) are all absolute paths generated by CMake. If you want to have a copy of your executeable with asset paths relative to the program, then generate your project files with CMake with this flag:
cmake -DDEFINE_SHIPPING=ON -B build .
Notice the -DDEFINE_SHIPPING option is set to ON. This sets a definiton that you can use in C++:
#ifdef FLING_SHIPPING
// Do some nice stuff
#else
// Do non-shipping code, perhaps with a lot of log messages
#endif
See Skills/coding-style.md for documentation-comment conventions and how to run the comment-style check / clang-format.
If you're using Claude Code, Cursor, Copilot, or another AI coding assistant on this project, start at AGENTS.md — it covers build/test commands, coding style, and architecture, and links into Skills/ for topic-specific detail.
We use a pretty basic branching strategy. Make a feature branch off of Main for something like "add-support-for-x", and then that feature is done and tested create a pull request to get it into Main.
We will create stable "Release" branches and tag them accordingly with stable versions of the build.
Fling Engine uses many open source libraries, and the community game controller database SDL_GameControllerDB. THIRD_PARTY_NOTICES.md lists each one, with its license.
Some great resources are the Vulkan Tutorial and SaschaWillems's repo with different Vulkan examples