diff --git a/README.md b/README.md new file mode 100644 index 0000000..f68abf4 --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +# Marry 乒乓球游戏 + +基于 Godot 4.6 + C++ GDExtension 的双人乒乓球游戏。 + +## 项目结构 +- `main/` — Godot 项目(场景、GDScript) +- `src/` — C++ 源码(GDExtension) +- `godot-cpp/` — Godot C++ 绑定库(git 子模块,4.5 分支) + +## 构建 C++ 扩展 +Windows 下运行 `build-marry.bat`,或使用 Visual Studio 打开 `CMakeLists.txt` 编译。 +编译产物输出到 `bin/marry.dll`。 + +## 克隆与初始化 +```bash +git clone https://git.onxiou.cn/ProMax-Marry/Marry.git +cd Marry +git submodule update --init +``` + +## 运行 +用 Godot 4.6 打开 `main/project.godot` 即可。 diff --git a/main/pingpang.gdextension.uid b/main/pingpang.gdextension.uid new file mode 100644 index 0000000..400fa9f --- /dev/null +++ b/main/pingpang.gdextension.uid @@ -0,0 +1 @@ +uid://b6i8s2sq8m8lc diff --git a/main/project.godot b/main/project.godot index 5b9d403..48ba3df 100644 --- a/main/project.godot +++ b/main/project.godot @@ -11,15 +11,10 @@ config_version=5 [application] config/name="Pingpang" +run/main_scene="res://scenes/main.tscn" config/features=PackedStringArray("4.6", "Forward Plus") config/icon="res://icon.svg" -run/main_scene="res://scenes/main.tscn" - [physics] common/enable_2d_physics=true - -[rendering] - -renderer/rendering_method="forward_plus"