From 9e9ab7deea2bff31e66ec738416c50c89fdc5c72 Mon Sep 17 00:00:00 2001 From: zhangjiahao Date: Wed, 5 Aug 2026 15:18:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=20README=20=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 ++++++++++++++++++++++ main/pingpang.gdextension.uid | 1 + main/project.godot | 7 +------ 3 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 README.md create mode 100644 main/pingpang.gdextension.uid 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"