From 0c56a8f747d67f5b7672d398d934ee5205ea5d58 Mon Sep 17 00:00:00 2001 From: strawberry42271 <2806566736@qq.com> Date: Thu, 13 Mar 2025 17:24:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=9C=BA=E6=95=99=E7=A8=8B=E6=8A=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/data.js | 57 ++++++++++++++++++----------------- project/floors/jiaocheng01.js | 11 ++++++- project/floors/jiaocheng02.js | 26 ++++++++++++++++ 3 files changed, 66 insertions(+), 28 deletions(-) diff --git a/project/data.js b/project/data.js index 5326837..9047933 100644 --- a/project/data.js +++ b/project/data.js @@ -1916,28 +1916,22 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = ], "startText": [ { - "type": "if", - "condition": "false", - "true": [ - { - "type": "setText" - }, - { - "type": "setHeroOpacity", - "opacity": 0 - }, - { - "type": "setCurtain", - "color": [ - 0, - 0, - 0, - 1 - ], - "time": 500, - "keep": true - } - ] + "type": "setText" + }, + { + "type": "setHeroOpacity", + "opacity": 0 + }, + { + "type": "setCurtain", + "color": [ + 0, + 0, + 0, + 1 + ], + "time": 500, + "keep": true }, { "type": "function", @@ -1952,12 +1946,21 @@ var data_a1e2fb4a_e986_4524_b0da_9b7ba7c0874d = "name": "强制横屏" }, { - "type": "if", - "condition": "false", - "true": [ + "type": "insert", + "name": "chapter0" + }, + { + "type": "confirm", + "text": "要进行教程内容吗", + "yes": [], + "no": [ { - "type": "insert", - "name": "chapter0" + "type": "changeFloor", + "floorId": "guangchang", + "loc": [ + 6, + 10 + ] } ] } diff --git a/project/floors/jiaocheng01.js b/project/floors/jiaocheng01.js index 7e78739..ee12147 100644 --- a/project/floors/jiaocheng01.js +++ b/project/floors/jiaocheng01.js @@ -11,7 +11,16 @@ main.floors.jiaocheng01= "images": [], "ratio": 1, "defaultGround": "X90078", - "firstArrive": [], + "firstArrive": [ + { + "type": "setHeroOpacity", + "opacity": 1 + }, + { + "type": "setCurtain", + "time": 1000 + } + ], "eachArrive": [], "parallelDo": "", "events": { diff --git a/project/floors/jiaocheng02.js b/project/floors/jiaocheng02.js index 9d5616e..78b800f 100644 --- a/project/floors/jiaocheng02.js +++ b/project/floors/jiaocheng02.js @@ -23,6 +23,32 @@ main.floors.jiaocheng02= ], "12,0": [ "法杖:魔攻比例10%,魔防比例0%" + ], + "6,0": [ + { + "type": "setCurtain", + "color": [ + 0, + 0, + 0, + 1 + ], + "time": 1000, + "keep": true + }, + { + "type": "setValue", + "name": "flag:__visited__", + "value": "{}" + }, + { + "type": "changeFloor", + "floorId": "guangchang", + "loc": [ + 6, + 10 + ] + } ] }, "changeFloor": {