feat: 更新 IntoHole 的球体、滑槽和环境资产
- 为铁球、陶瓷球和木球制作风格化材质,归档 CC0 原始参考 - 更新方形球洞和实心滑槽,统一 90° 弯槽并兼容旧存档 - 用顺流泡沫表示水流方向,为冰块制作三种交错的裂纹 - 同步 Blender 源资产、Godot 加载、工坊和试玩预览
This commit is contained in:
@@ -0,0 +1,93 @@
|
||||
# 等级一:滑槽入门
|
||||
|
||||
五个由易到难的可操作教学关,属于 `playtest/` 的非正式关卡。玩家从未完成的布局开始,用限量滑槽补齐路线;固定地图、出生球和球洞不可编辑。使用现有实心底座滑槽和铁球。所有路线悬空,下面没有承托墙;每关铁球从加速方块顶面静止释放,由真实接触获得 +5 m/s。
|
||||
|
||||
## 启动
|
||||
|
||||
```sh
|
||||
./scripts/tutorial.zsh
|
||||
# 作者直接查看某一关:
|
||||
./scripts/tutorial.zsh --lesson 4
|
||||
```
|
||||
|
||||
也可双击 [Tutorial.command](../../scripts/Tutorial.command)。Godot 的统一工程入口仍为 [project.godot](../../godot_engine/project.godot),默认工坊保持原用途。
|
||||
|
||||
| 关卡 / 场景 | 学习目标 | 玩家搭建 | 难度设计 |
|
||||
| --- | --- | --- | --- |
|
||||
| 01 [接上第一条路](scenes/tutorial.tscn) | 摆放缓坡与直槽入洞 | 缓坡 ×1、直槽 ×1 | 预设朝向,认识放置与 0.5 m 落差衔接;起步由固定加速方块负责。 |
|
||||
| 02 [在路口转弯](scenes/lesson_02.tscn) | 认识 90°弯槽 | 弯槽 ×1、直槽 ×1 | 用一个弯槽把固定路线接向侧面洞口。 |
|
||||
| 03 [旋转,接通折线](scenes/lesson_03.tscn) | 用 90° 旋转改变朝向 | 90°弯槽 ×2、直槽 ×2 | 素材从默认 0° 开始;参考解使用 90°、270° 的弯槽和 90° 的直槽。 |
|
||||
| 04 [读懂两种坡度](scenes/lesson_04.tscn) | 按 0.5 m / 1 m 落差搭配缓坡和急坡 | 缓坡 ×1、急坡 ×1、直槽 ×2 | 空中格高度不同,需比较槽口并正确旋转;交换两种坡会受阻。 |
|
||||
| 05 [山间长路](scenes/lesson_05.tscn) | 综合前四关,规划较长路线 | 直槽 ×5、90°弯槽 ×3、缓坡 ×1、急坡 ×1 | 参考路线包含三次转弯和两种下降坡段,玩家可在配额内探索其他路线。 |
|
||||
|
||||
前两关提供便于起步的初始朝向,五关均采用相同的缩略图旋转操作;第三关开始必须主动调整朝向。每关提供概念提示,不自动填入参考解,也不按排列与参考解一致来判胜;**真实穿过球洞底部截面才算成功**,其他物理解法同样有效。
|
||||
|
||||
## 操作
|
||||
|
||||
1. 点击屏幕正下方的**模型缩略图**选块,再点击已有方块旁的虚线格**立即放置**。虚线格按当前布局生成,每铺一块都可以从它继续向外延伸。放置后保留类型和朝向,可从已有轨道或洞口旁连续点格铺设;悬停显示预览,不消耗库存。
|
||||
2. **再次点击当前缩略图**,待放滑槽顺时针旋转 90°;缩略图同步旋转,四次回到原方向。切换类型保留各自朝向。此操作不改动已经放置的滑槽。
|
||||
3. 点击底部**擦除 / 回收**进入持续擦除状态,再点已放滑槽立即回收。可以连续擦除;点方块缩略图返回放置。固定地图、起点和洞口受保护,擦空格不会增加库存。
|
||||
4. 点击自己铺的滑槽可替换它,库存按替换后的用量检查。要在同一块上继续叠放,按住 **Shift** 点击它的顶面。
|
||||
5. 点击“释放小球”或按空格。运行与暂停期间锁定放置和擦除;再次空格暂停/继续。`T` 局内重试保留布局。真实入洞后解锁下一关,第五关完成后显示等级完成按钮。
|
||||
|
||||
选中滑槽后,周围的虚线标出可依附且无重叠的位置,包括上下相邻的位置。放置高度由与工坊共用的 [槽面连接算法](../../designer/scripts/placement.gd) 根据已有相邻槽口求解。预览、重复点击缩略图后的旋转和实际提交使用同一结果;第四、五关的高度标签显示实际**槽底**高度。算法不读取参考解、不自动纠正坡型或朝向,也不修改已放置的方块。Y 不再半米取整,避免陡坡与平顶起点之间出现 0.18 m 台阶。
|
||||
|
||||
右键拖动转视角,中键平移,滚轮缩放,`F` 回全景。默认俯角经过实际点选验证,使低处空中格不被相邻固定轨道遮住。第四、五关悬停时标出待放滑槽两端高度。玩家界面没有“放置确认”或独立旋转按钮。
|
||||
|
||||
采用已确认的 5 分钟挑战时限与累计 5 次局内重试失败规则。失败后“从第一关重新挑战”清空本轮进度;“重新挑战本关”清除当前搭建并恢复该关初始状态。未接入 IAA 广告或正式发布系统;作者可用 `--lesson` 或独立场景直接检查某关。
|
||||
|
||||
初版教学关采用补路练习。生成器把参考路线挖去的格子写入 `slots`,第五关另外放了三个干扰格。原点选逻辑只遍历这张表,导致路线外的合法位置无法选取。现行五关根据场上方块实时计算可搭建位置。
|
||||
|
||||
## 验收与证据
|
||||
|
||||
```sh
|
||||
./scripts/run.zsh test-tutorial
|
||||
./scripts/run.zsh test-player-controls
|
||||
./scripts/run.zsh test-turn-merge
|
||||
./scripts/run.zsh capture-tutorial
|
||||
```
|
||||
|
||||
[validate_tutorial.gd](../checks/validate_tutorial.gd) 使用 `Viewport.push_input` 注入真实输入:点底部缩略图、重复点击旋转、点格直接放置、点击释放,成功后点下一关。这轮不会直接写入完成布局。`test-player-controls` 仅检查新交互、库存和保护边界;`capture-tutorial` 在原生窗口用新操作完成五关并截图;完整 `test-tutorial` 额外包含每关 5 次重复试跑、空布局及典型错误布局,按需运行。
|
||||
|
||||
- [完整专项报告](../artifacts/tutorial/acceptance.json):逐项结果、引擎、120 Hz 频率及每关接触记录。
|
||||
- [原生窗口报告](../artifacts/tutorial/gui_acceptance.json):渲染窗口中的完整搭建与通关流程。
|
||||
- [玩家操作专项](../artifacts/tutorial/controls_acceptance.json):点格即放、重复缩略图旋转、连续擦除、库存返还、固定地图保护与运行锁定。
|
||||
- `playtest/artifacts/tutorial/01_accepted.json` 至 `05_accepted.json`:实际成功布局、输入记录、接触积木、入洞事件与运动轨迹。
|
||||
- 同目录 `01_initial.png` 至 `05_completed.png`:每关初始、搭建及真实入洞后的画面。
|
||||
|
||||
检查要求真实入洞,并实际接触参考路线中每一块玩家放置的滑槽。错误弯向、未旋转的弯槽、急缓坡交换、综合关中段缺失均通过物理运行确认不能通关;五个空布局也不能直接获胜。重复通过不代表任意摆法均有效。
|
||||
|
||||
2026-11-16 初版验收:123/123 项专项检查、76/76 项窗口操作检查通过,包含各关 5 次参考解重复成功。该轮统计作为历史记录保留,链接报告随后续复测更新。操作简化后的本轮验收使用玩家操作专项及五关原生窗口流程,不为界面改动重复整套物理实验;当前结果见上方两份专项报告。
|
||||
|
||||
操作简化后的最终结果:**28/28 项玩家操作检查、76/76 项原生窗口流程检查通过**。五关均使用底部真实模型缩略图选择/旋转,并直接点格放置后入洞;最终运行日志无脚本错误或警告。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 文件与调整
|
||||
|
||||
- [data](data):教学文字、固定地图、类型配额和出生配置。
|
||||
- [solutions](solutions):作者参考解,仅验收工具读取,玩家场景不自动加载。
|
||||
- [tutorial.gd](scripts/tutorial.gd):教学交互、配额、进度与挑战状态;复用共享球物理和工坊基础渲染。
|
||||
- [maps.gd](scripts/maps.gd):根据加速方块的顶面高度与球半径计算预设球心。
|
||||
- [build_lessons.py](authoring/build_lessons.py):数据制作源;运行 `python3 playtest/tutorial/authoring/build_lessons.py` 重建 JSON 后须重新验收,不重建模型。
|
||||
|
||||
路线下方的基座墙已全部移除,仅保留终点后方的可见挡墙。滑槽通过与相邻滑槽、起点或洞口的一面接触满足搭建规则;物理上不需要承托。空中虚线格使用数学平面选取,没有碰撞体;辅助线不投射阴影。没有底孔、隐藏导轨、持续推力、吸附或按参考路线改写球坐标。急坡沿用当前 1×1×1.5 m 试验模型,本实验不改变正式单格设定。
|
||||
|
||||
弯槽合并后,第二关认识弯槽连接相邻两侧的作用,第三关学习同一弯槽的不同朝向,第五关的三次转弯共用 3 块弯槽配额。现用类型统一为 `turn_90`,旧左弯对应的解法已顺时针增加 90°,通道位置保持一致。
|
||||
|
||||
[弯槽合并专项报告](../artifacts/tutorial/turn_merge_report.json) 检查新旧类型转换、旧关卡文件往返、全部四个朝向与教学配额;旧独立球心不移动,旧槽上球心与来向误差须小于 0.00001 m / 对应向量容差。
|
||||
|
||||
本轮合并验收:**55/55 项合并检查、28/28 项玩家操作检查,以及五关原生窗口的 76 项流程检查和 15 张截图检查全部通过**。五关均从初始布局用统一弯槽菜单实际搭建并入洞,操作记录与成功布局已更新。独立 [源模型核对](../artifacts/tutorial/turn_source_report.json) 确认新弯槽与原右弯的顶点和面完全一致,且只有一个规范命名的物理模型。
|
||||
|
||||
|
||||
## 悬空与加速起点验收
|
||||
|
||||
`./scripts/run.zsh test-floating` 检查五种滑槽在离地 5 m、没有任何承托体的独立试验中持续 10 秒,并分别承受真实球接触;同时用自由落体球确认全局重力仍正常。随后检查五关无底座/隐藏网格碰撞,小球位于加速块顶面,每关重复 3 次加速起步并真实入洞。
|
||||
|
||||
结果见 [floating_report.json](../artifacts/tutorial/floating_report.json)。原生玩家流程仍由 `capture-tutorial` 验收,并记录每关恰好一次来自 `launcher` 的真实加速事件。初始速度为 0,接触时固定增加 5 m/s;场景没有额外起跑坡或脚本初速。第一关和第四、五关仍保留承担高差衔接的教学坡段。
|
||||
|
||||
本轮悬空专项 43/43 项、玩家操作专项 28/28 项、五关原生流程与截图 96/96 项通过。独立悬空试验中五种滑槽持续 10 秒、受球接触后最大位移为 0 m,朝向不变;对照球在正常 9.81 m/s² 重力下 1 秒下落约 4.945 m。每个教学关另做 3 次重复试跑,均只触发一次 +5 m/s 并入洞。
|
||||
|
||||
由于起步动能改变,本轮还复测了完整教学检查:128/128 项通过,含每关 5 次重复运行、空布局、错误转向、坡型交换、缺段,以及重试和运行锁定。上述原生截图使用当前悬空/加速布局。
|
||||
@@ -0,0 +1,71 @@
|
||||
"""Author the five teaching maps; only data, never asset geometry or physics."""
|
||||
import json
|
||||
from collections import Counter
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
ELEVATION = 2.0 # Leave visible open space beneath every route block.
|
||||
|
||||
|
||||
def piece(kind, x, y, z=0, q=0):
|
||||
return dict(kind=kind, position=[x, y, z], quarter=q)
|
||||
|
||||
|
||||
def make(index, title, objective, hint, route, editable, goal, stop, defaults=None,
|
||||
extra_inventory=None):
|
||||
fixed, solution, entities = [], [], []
|
||||
for i, item in enumerate(route):
|
||||
item = dict(item, id=f"route_{i}")
|
||||
if i in editable:
|
||||
item['id'] = f"built_{len(solution)}"
|
||||
solution.append(item)
|
||||
else:
|
||||
fixed.append(item)
|
||||
entities += [dict(id='goal', kind='goal_hole', position=goal, quarter=0),
|
||||
dict(id='stop', kind='wall', position=stop, quarter=0)]
|
||||
# Launch from the real +5 m/s top-contact mechanism, not an authored velocity.
|
||||
first = route[0]['position']
|
||||
launcher = dict(id='launcher', kind='directional_boost',
|
||||
position=[first[0]-1, first[1], first[2]], quarter=0)
|
||||
entities.append(launcher)
|
||||
for record in fixed + solution + entities:
|
||||
record['position'] = [record['position'][0], record['position'][1]+ELEVATION,
|
||||
record['position'][2]]
|
||||
initial = dict(schemaVersion=2, assetFamily='railbound_inspired', title=title,
|
||||
pieces=fixed, entities=entities, balls=[])
|
||||
inventory = dict(Counter(p['kind'] for p in solution))
|
||||
inventory.update(extra_inventory or {})
|
||||
data = dict(number=index, title=title, objective=objective, hint=hint,
|
||||
initial=initial, spawn=dict(entityId='launcher', localX=-.15),
|
||||
inventory=inventory, defaults=defaults or {},
|
||||
solution=f"res://playtest/tutorial/solutions/{index:02d}.json")
|
||||
(ROOT/'data'/f'{index:02d}.json').write_text(json.dumps(data, ensure_ascii=False, indent=2)+'\n')
|
||||
(ROOT/'solutions'/f'{index:02d}.json').write_text(json.dumps(solution, ensure_ascii=False, indent=2)+'\n')
|
||||
|
||||
|
||||
make(1, '接上第一条路', '接上悬空的缓坡与直槽,把加速后的球引入洞口。',
|
||||
'起点箭头方块会给球初速度。缓坡负责衔接落差,低端接直槽;从已有轨道或洞口旁开始搭建。',
|
||||
[piece('straight',-2,1.5),piece('straight',-1,1.5),piece('gentle',0,1.5,q=2),piece('straight',1,1),piece('straight',2,1)],
|
||||
[2,3],[3,1.68,0],[4,1,0],{'gentle':2})
|
||||
make(2, '在路口转弯', '用一块 90°弯槽,让球转向侧面的洞口。',
|
||||
'90°弯槽连接相邻两侧。看清固定路线和洞口的位置,再点缩略图可旋转朝向。',
|
||||
[piece('straight',-2,1),piece('straight',-1,1),piece('turn_90',0,1),
|
||||
piece('straight',0,1,1,1),piece('straight',0,1,2,1)],
|
||||
[2,3],[0,1.68,3],[0,1,4],{'straight':1})
|
||||
make(3, '旋转,接通折线', '用同一种弯槽的不同朝向,搭出两次转弯。',
|
||||
'再点当前缩略图,每次顺时针转 90°,然后点格子放置;直槽也需要对准方向。擦除工具可回收摆错的滑槽。',
|
||||
[piece('straight',-2,1),piece('straight',-1,1),piece('turn_90',0,1,0,1),
|
||||
piece('straight',0,1,-1,1),piece('turn_90',0,1,-2,3),piece('straight',1,1,-2)],
|
||||
[2,3,4,5],[2,1.68,-2],[3,1,-2])
|
||||
make(4, '读懂两种坡度', '按接口高度搭配缓坡与急坡,接通两级落差。',
|
||||
'缓坡两端相差 0.5 m,急坡相差 1 m。看槽口高度,不只看方块底面;高端朝来球方向。',
|
||||
[piece('straight',-2,2.5),piece('straight',-1,2.5),piece('gentle',0,2.5,q=2),
|
||||
piece('straight',1,2),piece('steep',2,1.5,q=2),piece('straight',3,1),piece('straight',4,1)],
|
||||
[2,3,4,5],[5,1.68,0],[6,1,0])
|
||||
make(5, '山间长路', '综合直行、转弯、旋转与两种坡度,独立搭完路线。',
|
||||
'先规划转弯,再核对两个坡段的高低端。可从已有滑槽或洞口旁向外铺设,留意库存和终点方向。',
|
||||
[piece('straight',-3,2),piece('straight',-2,2),piece('straight',-1,2),
|
||||
piece('turn_90',0,2,q=1),piece('straight',0,2,-1,1),piece('turn_90',0,2,-2,3),
|
||||
piece('gentle',1,2,-2,2),piece('straight',2,1.5,-2),piece('steep',3,1,-2,2),
|
||||
piece('straight',4,.5,-2),piece('turn_90',5,.5,-2),piece('straight',5,.5,-1,1)],
|
||||
list(range(2,12)),[5,1.18,0],[5,.5,1])
|
||||
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"number": 1,
|
||||
"title": "接上第一条路",
|
||||
"objective": "接上悬空的缓坡与直槽,把加速后的球引入洞口。",
|
||||
"hint": "起点箭头方块会给球初速度。缓坡负责衔接落差,低端接直槽;从已有轨道或洞口旁开始搭建。",
|
||||
"initial": {
|
||||
"schemaVersion": 2,
|
||||
"assetFamily": "railbound_inspired",
|
||||
"title": "接上第一条路",
|
||||
"pieces": [
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-2,
|
||||
3.5,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-1,
|
||||
3.5,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_1"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
2,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_4"
|
||||
}
|
||||
],
|
||||
"entities": [
|
||||
{
|
||||
"id": "goal",
|
||||
"kind": "goal_hole",
|
||||
"position": [
|
||||
3,
|
||||
3.6799999999999997,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "stop",
|
||||
"kind": "wall",
|
||||
"position": [
|
||||
4,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "launcher",
|
||||
"kind": "directional_boost",
|
||||
"position": [
|
||||
-3,
|
||||
3.5,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
}
|
||||
],
|
||||
"balls": []
|
||||
},
|
||||
"spawn": {
|
||||
"entityId": "launcher",
|
||||
"localX": -0.15
|
||||
},
|
||||
"inventory": {
|
||||
"gentle": 1,
|
||||
"straight": 1
|
||||
},
|
||||
"defaults": {
|
||||
"gentle": 2
|
||||
},
|
||||
"solution": "res://playtest/tutorial/solutions/01.json"
|
||||
}
|
||||
@@ -0,0 +1,88 @@
|
||||
{
|
||||
"number": 2,
|
||||
"title": "在路口转弯",
|
||||
"objective": "用一块 90°弯槽,让球转向侧面的洞口。",
|
||||
"hint": "90°弯槽连接相邻两侧。看清固定路线和洞口的位置,再点缩略图可旋转朝向。",
|
||||
"initial": {
|
||||
"schemaVersion": 2,
|
||||
"assetFamily": "railbound_inspired",
|
||||
"title": "在路口转弯",
|
||||
"pieces": [
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-2,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-1,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_1"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
0,
|
||||
3.0,
|
||||
2
|
||||
],
|
||||
"quarter": 1,
|
||||
"id": "route_4"
|
||||
}
|
||||
],
|
||||
"entities": [
|
||||
{
|
||||
"id": "goal",
|
||||
"kind": "goal_hole",
|
||||
"position": [
|
||||
0,
|
||||
3.6799999999999997,
|
||||
3
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "stop",
|
||||
"kind": "wall",
|
||||
"position": [
|
||||
0,
|
||||
3.0,
|
||||
4
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "launcher",
|
||||
"kind": "directional_boost",
|
||||
"position": [
|
||||
-3,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
}
|
||||
],
|
||||
"balls": []
|
||||
},
|
||||
"spawn": {
|
||||
"entityId": "launcher",
|
||||
"localX": -0.15
|
||||
},
|
||||
"inventory": {
|
||||
"turn_90": 1,
|
||||
"straight": 1
|
||||
},
|
||||
"defaults": {
|
||||
"straight": 1
|
||||
},
|
||||
"solution": "res://playtest/tutorial/solutions/02.json"
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"number": 3,
|
||||
"title": "旋转,接通折线",
|
||||
"objective": "用同一种弯槽的不同朝向,搭出两次转弯。",
|
||||
"hint": "再点当前缩略图,每次顺时针转 90°,然后点格子放置;直槽也需要对准方向。擦除工具可回收摆错的滑槽。",
|
||||
"initial": {
|
||||
"schemaVersion": 2,
|
||||
"assetFamily": "railbound_inspired",
|
||||
"title": "旋转,接通折线",
|
||||
"pieces": [
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-2,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-1,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_1"
|
||||
}
|
||||
],
|
||||
"entities": [
|
||||
{
|
||||
"id": "goal",
|
||||
"kind": "goal_hole",
|
||||
"position": [
|
||||
2,
|
||||
3.6799999999999997,
|
||||
-2
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "stop",
|
||||
"kind": "wall",
|
||||
"position": [
|
||||
3,
|
||||
3.0,
|
||||
-2
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "launcher",
|
||||
"kind": "directional_boost",
|
||||
"position": [
|
||||
-3,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
}
|
||||
],
|
||||
"balls": []
|
||||
},
|
||||
"spawn": {
|
||||
"entityId": "launcher",
|
||||
"localX": -0.15
|
||||
},
|
||||
"inventory": {
|
||||
"turn_90": 2,
|
||||
"straight": 2
|
||||
},
|
||||
"defaults": {},
|
||||
"solution": "res://playtest/tutorial/solutions/03.json"
|
||||
}
|
||||
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"number": 4,
|
||||
"title": "读懂两种坡度",
|
||||
"objective": "按接口高度搭配缓坡与急坡,接通两级落差。",
|
||||
"hint": "缓坡两端相差 0.5 m,急坡相差 1 m。看槽口高度,不只看方块底面;高端朝来球方向。",
|
||||
"initial": {
|
||||
"schemaVersion": 2,
|
||||
"assetFamily": "railbound_inspired",
|
||||
"title": "读懂两种坡度",
|
||||
"pieces": [
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-2,
|
||||
4.5,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-1,
|
||||
4.5,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_1"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
4,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_6"
|
||||
}
|
||||
],
|
||||
"entities": [
|
||||
{
|
||||
"id": "goal",
|
||||
"kind": "goal_hole",
|
||||
"position": [
|
||||
5,
|
||||
3.6799999999999997,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "stop",
|
||||
"kind": "wall",
|
||||
"position": [
|
||||
6,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "launcher",
|
||||
"kind": "directional_boost",
|
||||
"position": [
|
||||
-3,
|
||||
4.5,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
}
|
||||
],
|
||||
"balls": []
|
||||
},
|
||||
"spawn": {
|
||||
"entityId": "launcher",
|
||||
"localX": -0.15
|
||||
},
|
||||
"inventory": {
|
||||
"gentle": 1,
|
||||
"straight": 2,
|
||||
"steep": 1
|
||||
},
|
||||
"defaults": {},
|
||||
"solution": "res://playtest/tutorial/solutions/04.json"
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"number": 5,
|
||||
"title": "山间长路",
|
||||
"objective": "综合直行、转弯、旋转与两种坡度,独立搭完路线。",
|
||||
"hint": "先规划转弯,再核对两个坡段的高低端。可从已有滑槽或洞口旁向外铺设,留意库存和终点方向。",
|
||||
"initial": {
|
||||
"schemaVersion": 2,
|
||||
"assetFamily": "railbound_inspired",
|
||||
"title": "山间长路",
|
||||
"pieces": [
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-3,
|
||||
4.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-2,
|
||||
4.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "route_1"
|
||||
}
|
||||
],
|
||||
"entities": [
|
||||
{
|
||||
"id": "goal",
|
||||
"kind": "goal_hole",
|
||||
"position": [
|
||||
5,
|
||||
3.1799999999999997,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "stop",
|
||||
"kind": "wall",
|
||||
"position": [
|
||||
5,
|
||||
2.5,
|
||||
1
|
||||
],
|
||||
"quarter": 0
|
||||
},
|
||||
{
|
||||
"id": "launcher",
|
||||
"kind": "directional_boost",
|
||||
"position": [
|
||||
-4,
|
||||
4.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0
|
||||
}
|
||||
],
|
||||
"balls": []
|
||||
},
|
||||
"spawn": {
|
||||
"entityId": "launcher",
|
||||
"localX": -0.15
|
||||
},
|
||||
"inventory": {
|
||||
"straight": 5,
|
||||
"turn_90": 3,
|
||||
"gentle": 1,
|
||||
"steep": 1
|
||||
},
|
||||
"defaults": {},
|
||||
"solution": "res://playtest/tutorial/solutions/05.json"
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://playtest/tutorial/scripts/tutorial.gd" id="1"]
|
||||
|
||||
[node name="Lesson02" type="Node3D"]
|
||||
script = ExtResource("1")
|
||||
lesson_index = 1
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://playtest/tutorial/scripts/tutorial.gd" id="1"]
|
||||
|
||||
[node name="Lesson03" type="Node3D"]
|
||||
script = ExtResource("1")
|
||||
lesson_index = 2
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://playtest/tutorial/scripts/tutorial.gd" id="1"]
|
||||
|
||||
[node name="Lesson04" type="Node3D"]
|
||||
script = ExtResource("1")
|
||||
lesson_index = 3
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://playtest/tutorial/scripts/tutorial.gd" id="1"]
|
||||
|
||||
[node name="Lesson05" type="Node3D"]
|
||||
script = ExtResource("1")
|
||||
lesson_index = 4
|
||||
@@ -0,0 +1,7 @@
|
||||
[gd_scene load_steps=2 format=3]
|
||||
|
||||
[ext_resource type="Script" path="res://playtest/tutorial/scripts/tutorial.gd" id="1"]
|
||||
|
||||
[node name="Lesson01" type="Node3D"]
|
||||
script = ExtResource("1")
|
||||
lesson_index = 0
|
||||
@@ -0,0 +1,61 @@
|
||||
extends Button
|
||||
|
||||
# Live thumbnails use the same visible GLB as the track, without colliders.
|
||||
var viewport: SubViewport
|
||||
var model: Node3D
|
||||
var caption: Label
|
||||
var counter: Label
|
||||
var artwork: TextureRect
|
||||
var shown_quarter := -1
|
||||
var state_key := ""
|
||||
|
||||
func configure(title: String, model_path: String, height: float, text_font: Font) -> void:
|
||||
focus_mode=Control.FOCUS_NONE;custom_minimum_size=Vector2(112,128)
|
||||
var content:=VBoxContainer.new();content.set_anchors_and_offsets_preset(Control.PRESET_FULL_RECT)
|
||||
content.offset_left=6;content.offset_right=-6;content.offset_top=5;content.offset_bottom=-5
|
||||
content.add_theme_constant_override("separation",1);content.mouse_filter=Control.MOUSE_FILTER_IGNORE;add_child(content)
|
||||
artwork=TextureRect.new();artwork.custom_minimum_size=Vector2(100,76)
|
||||
artwork.expand_mode=TextureRect.EXPAND_IGNORE_SIZE;artwork.stretch_mode=TextureRect.STRETCH_KEEP_ASPECT_CENTERED
|
||||
artwork.mouse_filter=Control.MOUSE_FILTER_IGNORE;content.add_child(artwork)
|
||||
for text in [title,""]:
|
||||
var line:=Label.new();line.text=text;line.horizontal_alignment=HORIZONTAL_ALIGNMENT_CENTER
|
||||
line.add_theme_font_override("font",text_font);line.add_theme_font_size_override("font_size",13)
|
||||
line.add_theme_color_override("font_color",Color("343143"));line.mouse_filter=Control.MOUSE_FILTER_IGNORE;content.add_child(line)
|
||||
if caption==null:caption=line
|
||||
else:counter=line
|
||||
if model_path.is_empty():
|
||||
artwork.texture=load("res://playtest/tutorial/ui/eraser.svg")
|
||||
return
|
||||
viewport=SubViewport.new();viewport.size=Vector2i(200,152);viewport.own_world_3d=true
|
||||
viewport.transparent_bg=true;viewport.gui_disable_input=true
|
||||
viewport.render_target_update_mode=SubViewport.UPDATE_ONCE;add_child(viewport)
|
||||
var world:=Node3D.new();viewport.add_child(world)
|
||||
var environment:=Environment.new();environment.background_mode=Environment.BG_COLOR
|
||||
environment.ambient_light_source=Environment.AMBIENT_SOURCE_COLOR
|
||||
environment.ambient_light_color=Color.WHITE;environment.ambient_light_energy=.65
|
||||
var world_environment:=WorldEnvironment.new();world_environment.environment=environment;world.add_child(world_environment)
|
||||
var light:=DirectionalLight3D.new();light.rotation_degrees=Vector3(-55,-30,0);light.light_energy=.7;world.add_child(light)
|
||||
model=load(model_path).instantiate();world.add_child(model)
|
||||
var camera:=Camera3D.new();camera.projection=Camera3D.PROJECTION_ORTHOGONAL
|
||||
camera.size=1.95;world.add_child(camera)
|
||||
var target:=Vector3(0,height*.5,0);camera.position=target+Vector3(3,4,4)
|
||||
camera.look_at(target);camera.current=true
|
||||
artwork.texture=viewport.get_texture()
|
||||
|
||||
func set_state(remaining: int, quarter: int, selected: bool, locked: bool, eraser:=false) -> void:
|
||||
var signature:="%d/%d/%s/%s"%[remaining,quarter,selected,locked]
|
||||
if signature==state_key:return
|
||||
state_key=signature;disabled=locked
|
||||
counter.text=("擦除中" if selected else "点选后回收") if eraser else ("×%d · %d°"%[remaining,quarter*90])
|
||||
if model!=null and quarter!=shown_quarter:
|
||||
shown_quarter=quarter;model.rotation.y=-quarter*PI/2
|
||||
viewport.render_target_update_mode=SubViewport.UPDATE_ONCE
|
||||
var normal:=StyleBoxFlat.new();normal.bg_color=Color("f1cf91") if selected else Color("fff4d9")
|
||||
normal.border_color=Color("ad5a43") if selected else Color("6e685b")
|
||||
normal.set_border_width_all(3 if selected else 1);normal.set_corner_radius_all(12)
|
||||
add_theme_stylebox_override("normal",normal)
|
||||
var hover:StyleBoxFlat=normal.duplicate();hover.bg_color=Color("f5dfb5")
|
||||
add_theme_stylebox_override("hover",hover);add_theme_stylebox_override("pressed",normal)
|
||||
var inactive:StyleBoxFlat=normal.duplicate();inactive.bg_color=Color("dcd9c8")
|
||||
add_theme_stylebox_override("disabled",inactive)
|
||||
artwork.modulate=Color(1,1,1,.45 if locked else 1.0)
|
||||
@@ -0,0 +1 @@
|
||||
uid://b6gh5f4tsf78n
|
||||
@@ -0,0 +1,19 @@
|
||||
extends RefCounted
|
||||
|
||||
static func read_lesson(index: int) -> Dictionary:
|
||||
return JSON.parse_string(FileAccess.get_file_as_string("res://playtest/tutorial/data/%02d.json" % (index+1)))
|
||||
|
||||
static func initial_level(lesson: Dictionary, lib) -> Dictionary:
|
||||
var data: Dictionary = lesson.initial.duplicate(true)
|
||||
var launcher:Dictionary={}
|
||||
for entity in data.entities:
|
||||
if entity.id==lesson.spawn.entityId:launcher=entity;break
|
||||
assert(not launcher.is_empty(),"Missing launch block")
|
||||
var basis:=Basis(Vector3.UP,-int(launcher.quarter)*PI/2)
|
||||
var top:float=lib.catalog[launcher.kind].boundsBlender.max[2]
|
||||
var pos:Vector3=lib.vector(launcher.position)+basis*Vector3(float(lesson.spawn.get("localX",0)),top+lib.ball_radius()+.02,0)
|
||||
data.balls = [{"id":"student_ball","ballTypeId":"iron_ball","position":[pos.x,pos.y,pos.z]}]
|
||||
return data
|
||||
|
||||
static func solution(lesson: Dictionary) -> Array:
|
||||
return JSON.parse_string(FileAccess.get_file_as_string(lesson.solution))
|
||||
@@ -0,0 +1 @@
|
||||
uid://fvk4sw78ok5w
|
||||
@@ -0,0 +1,495 @@
|
||||
extends "res://designer/scripts/studio.gd"
|
||||
|
||||
const Thumbnail = preload("res://playtest/tutorial/scripts/block_thumbnail.gd")
|
||||
const CELL_OVERLAY_Y := 0.014
|
||||
const Maps = preload("res://playtest/tutorial/scripts/maps.gd")
|
||||
const NAMES = {"straight":"直行滑槽","gentle":"缓坡 · 0.5 m","steep":"急坡 · 1 m","turn_90":"90°弯槽","y_merge":"Y 汇流"}
|
||||
@export_range(0,4) var lesson_index := 0
|
||||
var lesson: Dictionary = {}
|
||||
# Legal empty positions for the currently oriented piece, keyed by its bottom.
|
||||
var build_cells: Dictionary = {}
|
||||
var hover_candidate: Dictionary = {}
|
||||
var hover_screen := Vector2.INF
|
||||
var erase_mode := false
|
||||
var orientations: Dictionary = {}
|
||||
var palette_row: HBoxContainer
|
||||
var toolbar: PanelContainer
|
||||
var erase_button: Thumbnail
|
||||
var slots_view := Node3D.new()
|
||||
var preview_view := Node3D.new()
|
||||
var palette_buttons: Dictionary = {}
|
||||
var lesson_buttons: Array = []
|
||||
var heading: Label
|
||||
var objective_label: Label
|
||||
var selection_label: Label
|
||||
var hint_label: Label
|
||||
var timer_label: Label
|
||||
var retry_button: Button
|
||||
var restart_button: Button
|
||||
var next_button: Button
|
||||
var hint_button: Button
|
||||
var unlocked := 0
|
||||
var completed: Dictionary = {}
|
||||
var solved := false
|
||||
var failed := false
|
||||
var attempt_done := false
|
||||
var retries := 0
|
||||
var challenge_seconds := 0.0
|
||||
var still_seconds := 0.0
|
||||
var contact_ids: Dictionary = {}
|
||||
var hint_open := false
|
||||
var interface_events: Array = []
|
||||
|
||||
func _ready() -> void:
|
||||
super._ready()
|
||||
get_window().title = "IntoHole · " + series_title()
|
||||
|
||||
func series_title() -> String:
|
||||
return "等级一 / 滑槽入门"
|
||||
|
||||
func read_lesson(index: int) -> Dictionary:
|
||||
return Maps.read_lesson(index)
|
||||
|
||||
func initial_layout(data: Dictionary) -> Dictionary:
|
||||
return Maps.initial_level(data, lib)
|
||||
|
||||
func setup_environment() -> void:
|
||||
super.setup_environment()
|
||||
camera.h_offset = 0
|
||||
camera.v_offset = -.65
|
||||
yaw = .95; pitch = 1.12
|
||||
add_child(slots_view); add_child(preview_view)
|
||||
|
||||
func button(text: String, action: Callable, primary:=false, lock:=false) -> Button:
|
||||
var b:Button=super.button(text,action,primary,lock)
|
||||
b.focus_mode=Control.FOCUS_NONE
|
||||
return b
|
||||
|
||||
func setup_ui() -> void:
|
||||
var layer:=CanvasLayer.new();add_child(layer)
|
||||
var info:=PanelContainer.new();info.position=Vector2(18,18);info.custom_minimum_size.x=316
|
||||
info.add_theme_stylebox_override("panel",style(PAPER));layer.add_child(info)
|
||||
var col:=VBoxContainer.new();col.add_theme_constant_override("separation",7);info.add_child(col)
|
||||
col.add_child(label("INTO / HOLE",25))
|
||||
var steps:=row(col)
|
||||
for i in range(5):
|
||||
var b:=button(str(i+1),func():open_lesson(i));b.custom_minimum_size.x=48
|
||||
steps.add_child(b);lesson_buttons.append(b)
|
||||
heading=label("",20);col.add_child(heading)
|
||||
objective_label=label("",14);objective_label.custom_minimum_size.x=290
|
||||
objective_label.autowrap_mode=TextServer.AUTOWRAP_WORD_SMART;col.add_child(objective_label)
|
||||
hint_label=label("",14,Color("7a7366"));hint_label.custom_minimum_size.x=290
|
||||
hint_label.autowrap_mode=TextServer.AUTOWRAP_WORD_SMART;col.add_child(hint_label)
|
||||
var actions:=PanelContainer.new();layer.add_child(actions)
|
||||
actions.set_anchors_and_offsets_preset(Control.PRESET_TOP_RIGHT)
|
||||
actions.offset_left=-368;actions.offset_right=-18;actions.offset_top=18
|
||||
actions.add_theme_stylebox_override("panel",style(PAPER))
|
||||
var controls:=VBoxContainer.new();controls.add_theme_constant_override("separation",6);actions.add_child(controls)
|
||||
timer_label=label("",14,Color("7a7366"));controls.add_child(timer_label)
|
||||
var line:=row(controls)
|
||||
run_button=button("▶ 释放小球",toggle_run,true);run_button.custom_minimum_size.x=108;line.add_child(run_button)
|
||||
retry_button=button("局内重试",retry_attempt);line.add_child(retry_button)
|
||||
hint_button=button("提示",toggle_hint);line.add_child(hint_button)
|
||||
status_label=label("",14);status_label.custom_minimum_size.x=320
|
||||
status_label.autowrap_mode=TextServer.AUTOWRAP_WORD_SMART;controls.add_child(status_label)
|
||||
next_button=button("下一关 →",next_lesson,true);controls.add_child(next_button)
|
||||
restart_button=button("重新挑战本关",restart_challenge);controls.add_child(restart_button)
|
||||
toolbar=PanelContainer.new();layer.add_child(toolbar)
|
||||
toolbar.set_anchors_and_offsets_preset(Control.PRESET_CENTER_BOTTOM)
|
||||
toolbar.add_theme_stylebox_override("panel",style(PAPER))
|
||||
var bottom:=VBoxContainer.new();bottom.add_theme_constant_override("separation",6);toolbar.add_child(bottom)
|
||||
selection_label=label("",14);selection_label.horizontal_alignment=HORIZONTAL_ALIGNMENT_CENTER
|
||||
selection_label.autowrap_mode=TextServer.AUTOWRAP_WORD_SMART;bottom.add_child(selection_label)
|
||||
palette_row=row(bottom);palette_row.alignment=BoxContainer.ALIGNMENT_CENTER;palette_row.add_theme_constant_override("separation",8)
|
||||
for panel in [info,actions,toolbar]:panel.mouse_entered.connect(clear_hover)
|
||||
|
||||
func clear_hover() -> void:
|
||||
hover_screen=Vector2.INF
|
||||
if hover_candidate.is_empty():return
|
||||
hover_candidate={};refresh_preview();refresh_ui()
|
||||
|
||||
func initialize_level() -> void:
|
||||
for arg in OS.get_cmdline_user_args():
|
||||
if arg.begins_with("--lesson="): lesson_index = clampi(int(arg.trim_prefix("--lesson="))-1,0,4)
|
||||
unlocked = lesson_index
|
||||
open_lesson(lesson_index)
|
||||
|
||||
func open_lesson(index: int) -> void:
|
||||
if failed and index!=0:return
|
||||
if index > unlocked or (started and not solved and not failed): return
|
||||
var next_data := read_lesson(index)
|
||||
if next_data.is_empty():
|
||||
push_error("无法载入%s第 %d 关" % [series_title(), index + 1])
|
||||
return
|
||||
lesson_index = index
|
||||
lesson = next_data
|
||||
hover_screen=Vector2.INF; hover_candidate = {}; erase_mode = false; quarter = 0; orientations.clear()
|
||||
solved = false; failed = false; attempt_done = false; retries = 0; challenge_seconds = 0; still_seconds = 0
|
||||
contact_ids.clear(); hint_open = false; interface_events.clear()
|
||||
clear_children(palette_row);palette_buttons.clear()
|
||||
for id in lesson.inventory:
|
||||
orientations[id]=int(lesson.defaults.get(id,0))
|
||||
var tile:=Thumbnail.new();palette_row.add_child(tile)
|
||||
tile.configure(NAMES[id],lib.catalog[id].path,float(lib.catalog[id].boundsBlender.size[2]),font)
|
||||
tile.pressed.connect(func():choose_kind(id));tile.mouse_entered.connect(clear_hover);palette_buttons[id]=tile
|
||||
erase_button=Thumbnail.new();palette_row.add_child(erase_button)
|
||||
erase_button.configure("擦除 / 回收","",1.0,font)
|
||||
erase_button.pressed.connect(choose_eraser);erase_button.mouse_entered.connect(clear_hover)
|
||||
var width:float=maxf(640,(palette_buttons.size()+1)*112+palette_buttons.size()*8+24)
|
||||
toolbar.offset_left=-width*.5;toolbar.offset_right=width*.5
|
||||
toolbar.offset_top=-196;toolbar.offset_bottom=-14
|
||||
kind=""
|
||||
apply_data(initial_layout(lesson))
|
||||
status = "把路线接好,再释放小球。"
|
||||
refresh_slots(); refresh_preview(); refresh_ui()
|
||||
|
||||
func next_lesson() -> void:
|
||||
if not solved:return
|
||||
if lesson_index < 4:
|
||||
started = false; open_lesson(lesson_index+1)
|
||||
else:
|
||||
status = "%s · 五关全部通过。" % series_title(); refresh_ui()
|
||||
|
||||
func encode() -> Dictionary:
|
||||
return codec.encode(records,spawn_specs,str(lesson.get("title","滑槽入门")))
|
||||
|
||||
func restart_challenge() -> void:
|
||||
started = false
|
||||
if failed:
|
||||
unlocked = 0; completed.clear(); open_lesson(0)
|
||||
else: open_lesson(lesson_index)
|
||||
|
||||
func retry_attempt() -> void:
|
||||
if not started or solved or failed:return
|
||||
retries += 1
|
||||
if retries >= 5: fail_challenge("局内重试已达 5 次。"); return
|
||||
reset_simulation(); contact_ids.clear(); still_seconds = 0; attempt_done = false
|
||||
status = "布局已保留,可以修改后再试。"
|
||||
refresh_slots(); refresh_preview(); refresh_ui()
|
||||
|
||||
func fail_challenge(reason: String) -> void:
|
||||
failed = true; paused = true
|
||||
for b in balls:b.freeze = true
|
||||
status = reason + "请从本组第一关重新挑战。"
|
||||
refresh_ui()
|
||||
|
||||
func used_count(type_id: String, ignore := "") -> int:
|
||||
var count := 0
|
||||
for r in records:
|
||||
if str(r.id).begins_with("built_") and r.id != ignore and r.kind == type_id: count += 1
|
||||
return count
|
||||
|
||||
func choose_kind(id: String) -> void:
|
||||
if started or solved or failed or not lesson.inventory.has(id):return
|
||||
if not erase_mode and kind==id:
|
||||
rotate_current();return
|
||||
erase_mode=false;kind=id;quarter=int(orientations[id])
|
||||
interface_events.append({"action":"palette","kind":id})
|
||||
refresh_slots();refresh_preview();refresh_ui()
|
||||
|
||||
func choose_eraser() -> void:
|
||||
if started or solved or failed:return
|
||||
erase_mode=true
|
||||
interface_events.append({"action":"eraser"})
|
||||
refresh_slots();refresh_preview();refresh_ui()
|
||||
|
||||
func placement_issue(candidate: Dictionary) -> String:
|
||||
if not lesson.inventory.has(candidate.kind):return "本关没有这种滑槽。"
|
||||
if used_count(candidate.kind,candidate.id) >= int(lesson.inventory[candidate.kind]): return "这种滑槽已用完,先移除或替换一块。"
|
||||
return geometry_issue(candidate)
|
||||
|
||||
func geometry_issue(candidate: Dictionary) -> String:
|
||||
for r in records:
|
||||
if r.id != candidate.id and codec.overlaps(candidate,r): return "与其他方块重叠,无法放置。"
|
||||
# Placement adjacency is a puzzle rule, not a physical support requirement.
|
||||
var a: AABB = lib.record_bounds(candidate)
|
||||
for r in records:
|
||||
if r.id == candidate.id:continue
|
||||
var b: AABB = lib.record_bounds(r)
|
||||
var extent := a.end.min(b.end)-a.position.max(b.position)
|
||||
for axis in range(3):
|
||||
if absf(extent[axis])<.002 and extent[(axis+1)%3]>.01 and extent[(axis+2)%3]>.01:return ""
|
||||
return "滑槽至少有一面需要贴住其他方块。"
|
||||
|
||||
func place_current() -> void:
|
||||
if started or solved or failed or erase_mode or kind.is_empty() or hover_candidate.is_empty():return
|
||||
var candidate := hover_candidate.duplicate()
|
||||
var issue := placement_issue(candidate)
|
||||
if not issue.is_empty():
|
||||
status=issue;refresh_ui();return
|
||||
if candidate.id == "":
|
||||
candidate.id=unique_id("built")
|
||||
records.append(candidate)
|
||||
else:
|
||||
var existing:=index_for(candidate.id)
|
||||
if existing<0 or not str(candidate.id).begins_with("built_"):return
|
||||
records[existing]=candidate
|
||||
interface_events.append({"action":"place","id":candidate.id,"position":codec.array_from(candidate.position),"kind":kind,"quarter":quarter})
|
||||
rebuild();refresh_slots();refresh_preview()
|
||||
status="已放置,可继续延伸路线。";refresh_ui()
|
||||
|
||||
func rotate_current() -> void:
|
||||
if started or solved or failed or erase_mode or kind.is_empty():return
|
||||
quarter=(quarter+1)%4;orientations[kind]=quarter
|
||||
interface_events.append({"action":"rotate","kind":kind,"quarter":quarter})
|
||||
refresh_slots()
|
||||
if hover_screen.is_finite():hover_at(hover_screen,Input.is_key_pressed(KEY_SHIFT))
|
||||
refresh_preview();refresh_ui()
|
||||
|
||||
func remove_current() -> void:
|
||||
if started or solved or failed or not erase_mode or hover_candidate.is_empty():return
|
||||
var id:=str(hover_candidate.id)
|
||||
var existing:=index_for(id)
|
||||
if existing<0 or not id.begins_with("built_"):return
|
||||
var old_kind:String=records[existing].kind
|
||||
records.remove_at(existing)
|
||||
interface_events.append({"action":"remove","id":id,"kind":old_kind})
|
||||
rebuild();refresh_slots();refresh_preview();status="已回收,可继续擦除其他滑槽。";refresh_ui()
|
||||
|
||||
func toggle_hint() -> void:
|
||||
hint_open=not hint_open;refresh_ui()
|
||||
|
||||
func refresh_slots() -> void:
|
||||
clear_children(slots_view)
|
||||
slots_view.visible=not started
|
||||
build_cells.clear()
|
||||
hover_candidate={}
|
||||
if lesson.is_empty() or kind.is_empty() or erase_mode or started:return
|
||||
var size: Vector2i=lib.footprint(kind,quarter)
|
||||
var height: float=lib.catalog[kind].boundsBlender.size[2]
|
||||
# Enumerate touching footprints around live records, including both vertical
|
||||
# faces. Piece geometry decides heights. No authored route is consulted.
|
||||
for support in records:
|
||||
var bounds: AABB = lib.record_bounds(support)
|
||||
# Grid anchors are centres of the first occupied cell. Include the outer
|
||||
# ring where exactly one horizontal edge can touch the support.
|
||||
var first_x := ceili(bounds.position.x + 0.5 - size.x - 0.001)
|
||||
var last_x := floori(bounds.end.x + 0.5 + 0.001)
|
||||
var first_z := ceili(bounds.position.z + 0.5 - size.y - 0.001)
|
||||
var last_z := floori(bounds.end.z + 0.5 + 0.001)
|
||||
for x in range(first_x, last_x + 1):
|
||||
for z in range(first_z, last_z + 1):
|
||||
var dx:=minf(x-.5+size.x,bounds.end.x)-maxf(x-.5,bounds.position.x)
|
||||
var dz:=minf(z-.5+size.y,bounds.end.z)-maxf(z-.5,bounds.position.z)
|
||||
var base:=Vector3(x,bounds.position.y,z)
|
||||
if dx>.01 and dz>.01:
|
||||
for y in [bounds.end.y,bounds.position.y-height]:
|
||||
add_build_cell(placement.record_at(kind,Vector3(x,y,z),quarter,""))
|
||||
elif (absf(dx)<.002 and dz>.01) or (absf(dz)<.002 and dx>.01):
|
||||
var candidate:Dictionary=placement.record_at(kind,base,quarter,"")
|
||||
add_build_cell(placement.align_surfaces(candidate,records,support.id))
|
||||
draw_build_cells()
|
||||
|
||||
func add_build_cell(candidate: Dictionary) -> void:
|
||||
var bottom:Vector3=placement.bottom_of(candidate)
|
||||
var key:=bottom.snapped(Vector3.ONE*.0001)
|
||||
if not build_cells.has(key) and geometry_issue(candidate).is_empty():
|
||||
build_cells[key]=candidate
|
||||
|
||||
func draw_build_cells() -> void:
|
||||
if build_cells.is_empty():return
|
||||
var mesh:=ImmediateMesh.new()
|
||||
var ink:=StandardMaterial3D.new()
|
||||
ink.shading_mode=BaseMaterial3D.SHADING_MODE_UNSHADED
|
||||
ink.albedo_color=Color("426f60")
|
||||
mesh.surface_begin(Mesh.PRIMITIVE_LINES,ink)
|
||||
for cell in build_cells.values():
|
||||
var bounds:AABB=lib.record_bounds(cell)
|
||||
var p:=bounds.get_center()
|
||||
p.y=bounds.position.y+CELL_OVERLAY_Y
|
||||
for axis in [Vector3.RIGHT,Vector3.BACK]:
|
||||
var across:=Vector3.BACK if axis==Vector3.RIGHT else Vector3.RIGHT
|
||||
for side in [-1,1]:
|
||||
for segment in [-.32,0.0,.32]:
|
||||
var edge:Vector3=p+across*side*(bounds.size.dot(across)*.5-.04)
|
||||
mesh.surface_add_vertex(edge+axis*(segment-.1)*bounds.size.dot(axis))
|
||||
mesh.surface_add_vertex(edge+axis*(segment+.1)*bounds.size.dot(axis))
|
||||
mesh.surface_end()
|
||||
var visual:=MeshInstance3D.new()
|
||||
visual.mesh=mesh
|
||||
visual.cast_shadow=GeometryInstance3D.SHADOW_CASTING_SETTING_OFF
|
||||
slots_view.add_child(visual)
|
||||
|
||||
func refresh_preview() -> void:
|
||||
clear_children(preview_view)
|
||||
if hover_candidate.is_empty() or started or solved or failed or erase_mode or kind.is_empty():return
|
||||
var candidate:=hover_candidate
|
||||
var position:Vector3=lib.record_center(candidate)
|
||||
var existing:=index_for(candidate.id)
|
||||
if existing<0 or records[existing]!=candidate:
|
||||
var visual:Node3D=load(lib.catalog[kind].path).instantiate()
|
||||
visual.position=position;visual.rotation.y=-quarter*PI/2;preview_view.add_child(visual)
|
||||
var tint:=Color(.3,.7,.55,.38) if placement_issue(candidate).is_empty() else Color(.85,.25,.2,.38)
|
||||
var mat:=material(tint)
|
||||
mat.transparency=BaseMaterial3D.TRANSPARENCY_ALPHA
|
||||
for node in visual.find_children("*","MeshInstance3D",true,false):
|
||||
node.cast_shadow=GeometryInstance3D.SHADOW_CASTING_SETTING_OFF
|
||||
if str(node.name).begins_with("ink_"):node.hide();continue
|
||||
node.material_override=mat
|
||||
if lesson_index>=3:
|
||||
var basis:=Basis(Vector3.UP,-quarter*PI/2)
|
||||
for t in [0.0,1.0]:
|
||||
var endpoint:Vector3=position+basis*(lib.path_point(kind,t)-Vector3.UP*float(lib.catalog[kind].grooveRadius))
|
||||
var tag:=Label3D.new();tag.text="槽底 %.2f m"%endpoint.y;tag.font=font;tag.font_size=36
|
||||
tag.pixel_size=.005;tag.billboard=BaseMaterial3D.BILLBOARD_ENABLED;tag.position=endpoint+Vector3.UP*.2
|
||||
tag.modulate=INK;tag.outline_modulate=PAPER;preview_view.add_child(tag)
|
||||
|
||||
func pick_candidate(screen: Vector2, attach: bool=false) -> Dictionary:
|
||||
var origin:=camera.project_ray_origin(screen)
|
||||
var direction:=camera.project_ray_normal(screen)
|
||||
var query:=PhysicsRayQueryParameters3D.create(origin,origin+direction*300,11)
|
||||
query.collide_with_areas=true
|
||||
var hit:=get_world_3d().direct_space_state.intersect_ray(query)
|
||||
var hit_record:Dictionary={}
|
||||
var nearest:=300.0
|
||||
if not hit.is_empty():
|
||||
nearest=origin.distance_to(hit.position)
|
||||
var node:Node=hit.collider
|
||||
while node!=null and not node.has_meta("record_id"):node=node.get_parent()
|
||||
if node!=null:
|
||||
var index:=index_for(node.get_meta("record_id"))
|
||||
if index>=0:hit_record=records[index]
|
||||
var is_built:=str(hit_record.get("id","")).begins_with("built_")
|
||||
var hit_bounds:AABB=lib.record_bounds(hit_record) if is_built else AABB()
|
||||
if erase_mode:return hit_record if is_built else {}
|
||||
if kind.is_empty():return {}
|
||||
if attach and not hit_record.is_empty():
|
||||
return face_candidate(hit_record,hit)
|
||||
var picked:Dictionary={}
|
||||
for cell in build_cells.values():
|
||||
var bounds:AABB=lib.record_bounds(cell)
|
||||
# Use the visible grid outline's plane, clipped by actual scene geometry.
|
||||
var crossing=Plane(Vector3.UP,bounds.position.y+CELL_OVERLAY_Y).intersects_ray(origin,direction)
|
||||
if crossing==null:continue
|
||||
var distance:=origin.distance_to(crossing)
|
||||
if distance>=nearest:continue
|
||||
if crossing.x<bounds.position.x or crossing.x>bounds.end.x or crossing.z<bounds.position.z or crossing.z>bounds.end.z:continue
|
||||
# Keep a player's visible piece clickable for replacement; Shift explicitly stacks.
|
||||
if is_built and absf(bounds.position.y-hit_bounds.end.y)<.002 and hit_bounds.grow(.02).has_point(crossing):continue
|
||||
picked=cell;nearest=distance
|
||||
if not picked.is_empty():return picked
|
||||
if is_built:
|
||||
var candidate:Dictionary=placement.record_at(kind,placement.bottom_of(hit_record),quarter,hit_record.id)
|
||||
return placement.align_surfaces(candidate,records)
|
||||
if not hit_record.is_empty():return face_candidate(hit_record,hit)
|
||||
return {}
|
||||
|
||||
func face_candidate(support:Dictionary,hit:Dictionary) -> Dictionary:
|
||||
var bottom:Vector3=placement.on_face(support,hit.position,hit.normal,kind,quarter,records)
|
||||
return placement.record_at(kind,bottom,quarter,"")
|
||||
|
||||
func hover_at(screen:Vector2,attach:bool=false) -> void:
|
||||
hover_screen=screen
|
||||
var candidate:=pick_candidate(screen,attach)
|
||||
if candidate==hover_candidate:return
|
||||
hover_candidate=candidate
|
||||
refresh_preview();refresh_ui()
|
||||
|
||||
func select_at(screen:Vector2) -> void:
|
||||
use_pointer(screen,Input.is_key_pressed(KEY_SHIFT))
|
||||
|
||||
func use_pointer(screen:Vector2,attach:bool) -> void:
|
||||
if started or solved or failed:return
|
||||
hover_at(screen,attach)
|
||||
if erase_mode:remove_current()
|
||||
elif kind.is_empty():status="先点击下方缩略图选择滑槽。";refresh_ui()
|
||||
elif hover_candidate.is_empty():status="请选择贴住已有方块的空位。";refresh_ui()
|
||||
else:place_current()
|
||||
|
||||
func toggle_run() -> void:
|
||||
if failed or solved or attempt_done:return
|
||||
if not started:
|
||||
contact_ids.clear();still_seconds=0
|
||||
interface_events.append({"action":"release","placed":records.filter(func(r):return str(r.id).begins_with("built_")).size()})
|
||||
clear_children(preview_view)
|
||||
slots_view.hide()
|
||||
super.toggle_run()
|
||||
refresh_ui()
|
||||
|
||||
func _physics_process(delta: float) -> void:
|
||||
if solved or failed or attempt_done:return
|
||||
super._physics_process(delta)
|
||||
if not started or paused:return
|
||||
var all_remaining_still := true
|
||||
for i in range(balls.size()):
|
||||
var body: RigidBody3D = balls[i]
|
||||
for collider in body.get_colliding_bodies():
|
||||
var node: Node = collider
|
||||
while node != null and not node.has_meta("record_id"):
|
||||
node = node.get_parent()
|
||||
if node != null:
|
||||
contact_ids[str(node.get_meta("record_id"))] = true
|
||||
if not entered.has(i) and not lost.has(i) and body.linear_velocity.length() >= .035:
|
||||
all_remaining_still = false
|
||||
if entered.size()==balls.size():
|
||||
solved=true;completed[lesson_index]=true;unlocked=maxi(unlocked,mini(4,lesson_index+1))
|
||||
status="通关!全部小球已入洞。"
|
||||
elif not lost.is_empty():
|
||||
finish_attempt("小球掉落了。局内重试可保留布局再调整。")
|
||||
else:
|
||||
still_seconds=still_seconds+delta if all_remaining_still else 0.0
|
||||
if still_seconds>2.5 or elapsed>25:
|
||||
finish_attempt("仍有小球未到达洞口。局内重试可保留布局再调整。")
|
||||
refresh_ui()
|
||||
|
||||
func finish_attempt(message: String) -> void:
|
||||
attempt_done = true
|
||||
for body in balls:
|
||||
body.freeze = true
|
||||
status = message
|
||||
|
||||
func refresh_ui() -> void:
|
||||
if status_label==null or lesson.is_empty():return
|
||||
heading.text="%02d %s"%[lesson_index+1,lesson.title]
|
||||
objective_label.text=lesson.objective
|
||||
var remaining:=maxi(0,300-int(challenge_seconds))
|
||||
timer_label.text="%02d:%02d · 局内重试 %d / 5"%[remaining/60,remaining%60,retries]
|
||||
if balls.size()>1:
|
||||
timer_label.text+=" · %d/%d 入洞" % [entered.size(), balls.size()]
|
||||
status_label.text=status
|
||||
for i in range(5):
|
||||
lesson_buttons[i].disabled=failed or i>unlocked or (started and not solved)
|
||||
lesson_buttons[i].text=("✓" if completed.has(i) else str(i+1))
|
||||
var locked:=started or solved or failed
|
||||
for id in palette_buttons:
|
||||
var left:int=int(lesson.inventory[id])-used_count(id)
|
||||
palette_buttons[id].set_state(left,int(orientations[id]),kind==id and not erase_mode,locked)
|
||||
erase_button.set_state(0,0,erase_mode,locked,true)
|
||||
if erase_mode:selection_label.text="擦除中 · 点击滑槽回收 · 点击方块缩略图退出"
|
||||
elif kind.is_empty():selection_label.text="选缩略图 → 点格放置 · 再点同一缩略图旋转"
|
||||
else:selection_label.text="%s · %d° | 点邻格放置 · 点已铺槽替换 · Shift+点面叠放"%[NAMES[kind],quarter*90]
|
||||
if not hover_candidate.is_empty() and lesson_index>=3 and not erase_mode and not kind.is_empty():
|
||||
var y:float=hover_candidate.position.y-lib.catalog[kind].grooveRadius
|
||||
selection_label.text+=" | 槽底 %.2f / %.2f m"%[y+lib.path_point(kind,0).y,y+lib.path_point(kind,1).y]
|
||||
run_button.disabled=solved or failed or attempt_done
|
||||
run_button.text="继续" if paused else ("暂停" if started else "▶ 释放小球")
|
||||
retry_button.disabled=not started or solved or failed
|
||||
next_button.visible=solved;next_button.text="下一关 →" if lesson_index<4 else "本组完成 ✓"
|
||||
restart_button.text="从第一关重新挑战" if failed else "重新挑战本关(清空搭建)"
|
||||
hint_label.visible=hint_open;hint_label.text=lesson.hint
|
||||
|
||||
func _unhandled_input(event: InputEvent) -> void:
|
||||
if event is InputEventMouseButton and event.button_index==MOUSE_BUTTON_LEFT and event.pressed:
|
||||
use_pointer(event.position,event.shift_pressed)
|
||||
return
|
||||
if event is InputEventKey and event.keycode==KEY_SHIFT and hover_screen.is_finite() and not started:
|
||||
hover_at(hover_screen,event.pressed)
|
||||
if event is InputEventKey and event.pressed and not event.echo:
|
||||
match event.keycode:
|
||||
KEY_SPACE:toggle_run()
|
||||
KEY_T:retry_attempt()
|
||||
KEY_R:rotate_current()
|
||||
KEY_E:choose_eraser()
|
||||
KEY_F:frame_level()
|
||||
return
|
||||
if event is InputEventMouseMotion and not orbiting and not panning and not started:
|
||||
hover_at(event.position,event.shift_pressed)
|
||||
# Orbit, pan and zoom use the shared camera controls.
|
||||
super._unhandled_input(event)
|
||||
|
||||
func _process(delta: float) -> void:
|
||||
if not lesson.is_empty() and not solved and not failed:
|
||||
challenge_seconds+=delta
|
||||
if challenge_seconds>=300:fail_challenge("本轮挑战已满 5 分钟。")
|
||||
else:refresh_ui()
|
||||
super._process(delta)
|
||||
@@ -0,0 +1 @@
|
||||
uid://bfrpo1g60q7l6
|
||||
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"kind": "gentle",
|
||||
"position": [
|
||||
0,
|
||||
3.5,
|
||||
0
|
||||
],
|
||||
"quarter": 2,
|
||||
"id": "built_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
1,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_1"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,22 @@
|
||||
[
|
||||
{
|
||||
"kind": "turn_90",
|
||||
"position": [
|
||||
0,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
0,
|
||||
3.0,
|
||||
1
|
||||
],
|
||||
"quarter": 1,
|
||||
"id": "built_1"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"kind": "turn_90",
|
||||
"position": [
|
||||
0,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 1,
|
||||
"id": "built_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
0,
|
||||
3.0,
|
||||
-1
|
||||
],
|
||||
"quarter": 1,
|
||||
"id": "built_1"
|
||||
},
|
||||
{
|
||||
"kind": "turn_90",
|
||||
"position": [
|
||||
0,
|
||||
3.0,
|
||||
-2
|
||||
],
|
||||
"quarter": 3,
|
||||
"id": "built_2"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
1,
|
||||
3.0,
|
||||
-2
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_3"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,42 @@
|
||||
[
|
||||
{
|
||||
"kind": "gentle",
|
||||
"position": [
|
||||
0,
|
||||
4.5,
|
||||
0
|
||||
],
|
||||
"quarter": 2,
|
||||
"id": "built_0"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
1,
|
||||
4.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_1"
|
||||
},
|
||||
{
|
||||
"kind": "steep",
|
||||
"position": [
|
||||
2,
|
||||
3.5,
|
||||
0
|
||||
],
|
||||
"quarter": 2,
|
||||
"id": "built_2"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
3,
|
||||
3.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_3"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,102 @@
|
||||
[
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
-1,
|
||||
4.0,
|
||||
0
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_0"
|
||||
},
|
||||
{
|
||||
"kind": "turn_90",
|
||||
"position": [
|
||||
0,
|
||||
4.0,
|
||||
0
|
||||
],
|
||||
"quarter": 1,
|
||||
"id": "built_1"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
0,
|
||||
4.0,
|
||||
-1
|
||||
],
|
||||
"quarter": 1,
|
||||
"id": "built_2"
|
||||
},
|
||||
{
|
||||
"kind": "turn_90",
|
||||
"position": [
|
||||
0,
|
||||
4.0,
|
||||
-2
|
||||
],
|
||||
"quarter": 3,
|
||||
"id": "built_3"
|
||||
},
|
||||
{
|
||||
"kind": "gentle",
|
||||
"position": [
|
||||
1,
|
||||
4.0,
|
||||
-2
|
||||
],
|
||||
"quarter": 2,
|
||||
"id": "built_4"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
2,
|
||||
3.5,
|
||||
-2
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_5"
|
||||
},
|
||||
{
|
||||
"kind": "steep",
|
||||
"position": [
|
||||
3,
|
||||
3.0,
|
||||
-2
|
||||
],
|
||||
"quarter": 2,
|
||||
"id": "built_6"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
4,
|
||||
2.5,
|
||||
-2
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_7"
|
||||
},
|
||||
{
|
||||
"kind": "turn_90",
|
||||
"position": [
|
||||
5,
|
||||
2.5,
|
||||
-2
|
||||
],
|
||||
"quarter": 0,
|
||||
"id": "built_8"
|
||||
},
|
||||
{
|
||||
"kind": "straight",
|
||||
"position": [
|
||||
5,
|
||||
2.5,
|
||||
-1
|
||||
],
|
||||
"quarter": 1,
|
||||
"id": "built_9"
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,5 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="76" viewBox="0 0 100 76">
|
||||
<path d="M22 45 52 13q4-4 8 0l22 20q4 4 0 8L57 66H43Z" fill="#ca7963" stroke="#343143" stroke-width="3" stroke-linejoin="round"/>
|
||||
<path d="m22 45 14-15 28 27-7 9H43Z" fill="#fff4d9" stroke="#343143" stroke-width="3" stroke-linejoin="round"/>
|
||||
<path d="M53 66h34" fill="none" stroke="#343143" stroke-width="3" stroke-linecap="round"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 432 B |
@@ -0,0 +1,43 @@
|
||||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bbl3lgjumkymf"
|
||||
path="res://.godot/imported/eraser.svg-60cc7d7761b3c890b194cf549bd3d1a1.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://playtest/tutorial/ui/eraser.svg"
|
||||
dest_files=["res://.godot/imported/eraser.svg-60cc7d7761b3c890b194cf549bd3d1a1.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
svg/scale=1.0
|
||||
editor/scale_with_editor_scale=false
|
||||
editor/convert_colors_with_editor_theme=false
|
||||
Reference in New Issue
Block a user