From 91ce0df1b46c052e5c74fa78ee8fe6edd072ff70 Mon Sep 17 00:00:00 2001 From: Syo Date: Mon, 25 Apr 2022 15:27:15 +0800 Subject: [PATCH] =?UTF-8?q?7.=E6=97=A0=E9=99=90=E5=BE=AA=E7=8E=AF=E7=9A=84?= =?UTF-8?q?=E5=9C=B0=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config.json" | 11 +++++++ .../learn.json" | 7 ++++ .../learn.md" | 32 +++++++++++++++++++ data/tree.json | 10 ++++++ 4 files changed, 60 insertions(+) create mode 100644 "data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/config.json" create mode 100644 "data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/learn.json" create mode 100644 "data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/learn.md" diff --git "a/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/config.json" "b/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/config.json" new file mode 100644 index 0000000..3d74633 --- /dev/null +++ "b/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/config.json" @@ -0,0 +1,11 @@ +{ + "node_id": "game-500198d650804137a10e34bf9e07ed8d", + "keywords": [], + "children": [], + "export": [ + "learn.json" + ], + "keywords_must": [], + "keywords_forbid": [], + "group": 0 +} \ No newline at end of file diff --git "a/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/learn.json" "b/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/learn.json" new file mode 100644 index 0000000..cbb56d0 --- /dev/null +++ "b/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/learn.json" @@ -0,0 +1,7 @@ +{ + "type": "code_options", + "author": "hello_tute", + "source": "learn.md", + "notebook_enable": false, + "exercise_id": "33d770d84c7f45ae96cab88c0b711bb6" +} \ No newline at end of file diff --git "a/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/learn.md" "b/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/learn.md" new file mode 100644 index 0000000..3e4ec2d --- /dev/null +++ "b/data/1.\346\270\270\346\210\217\345\274\200\345\217\221\345\205\245\351\227\250\345\210\235\351\230\266/1.Godot Engine\345\205\245\351\227\250/7.\346\227\240\351\231\220\345\276\252\347\216\257\347\232\204\345\234\260\351\235\242/learn.md" @@ -0,0 +1,32 @@ +# 6.无限循环的地面 + +请先阅读本节讲义⬇ + +无限循环的地面使用了三种完全不同的方法实现: + +- [**Godot青年版**](https://orzgame.blog.csdn.net/article/details/104709354)主要是想展示一下方便好用的 AnimationPlayer,并且此方法一行代码也不用写; +- [**普通青年版**](https://orzgame.blog.csdn.net/article/details/104717644)是比较常规的方法,用 Godot的脚本语言实现(初级阶段最推荐的方法); +- [**文艺青年版**](https://orzgame.blog.csdn.net/article/details/104703946)使用了自定义Shader实现,无需新建多余的节点,并且方便复用,是实现该效果的最佳方法。不过该方法需要着色器知识,目前略有超纲; + + + +使用Godot青年版实现无限循环地面的时候在_process方法中判断`offset.x <= -530.0`的意义是? + + +## 答案 + +当地面向左移动到-530.0个像素位置时,将其位置归零 + +## 选项 + +### A + +地面移动速度不能大于530.0像素/帧 + +### B + +地面移动速度不能小于-530.0像素/帧 + +### C + +地面移动速度不能大于200.0像素/帧 diff --git a/data/tree.json b/data/tree.json index 679353c..1ffd545 100644 --- a/data/tree.json +++ b/data/tree.json @@ -91,6 +91,16 @@ "keywords_forbid": [], "group": 0 } + }, + { + "无限循环的地面": { + "node_id": "game-500198d650804137a10e34bf9e07ed8d", + "keywords": [], + "children": [], + "keywords_must": [], + "keywords_forbid": [], + "group": 0 + } } ], "keywords_must": [], -- GitLab