Skip to content

Commit 061c511

Browse files
committed
fix: かいだんもワープ同様「つくる」コードが2つ出るようにする
1 parent f529315 commit 061c511

File tree

7 files changed

+30
-19
lines changed

7 files changed

+30
-19
lines changed

src/assets/かいだん/index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,21 @@ const scopeCreate = [
4040
// スコープの参照を配列で指定する. null の場合は常に表示
4141
sco.ゲームがはじまったとき
4242
]
43-
/*
43+
4444
const scopeSummon = [
4545
// スコープの参照を配列で指定する. null の場合は常に表示
4646
sco.こうげきされたとき,
4747
sco.たおされたとき,
48-
sco.ふまれたとき,sco.どかれたとき,
48+
sco.ふまれたとき,
49+
sco.どかれたとき,
4950
sco.ぶつかったとき,
50-
sco.メッセージされたとき
51+
sco.メッセージされたとき,
52+
sco.へんすうがかわったとき,
53+
sco.みつけたとき,
54+
sco.こうげきするとき,
55+
sco.あるいたとき,
56+
sco.タップされたとき
5157
]
52-
*/
5358

5459
module.exports = [
5560
// 「ステージ」ファイルに入るコード
@@ -76,8 +81,7 @@ module.exports = [
7681
scopes: scopeCreate,
7782
insert: './stairs-secret-create.js',
7883
thumbnail: 'https://i.gyazo.com/7f7fda0b85ee4278a65dc5fa11045e47.gif' // サムネイル画像
79-
}
80-
/*
84+
},
8185
// 「◯◯を改造する」ファイルに入るコード
8286
{
8387
...stone,
@@ -101,5 +105,4 @@ module.exports = [
101105
scopes: scopeSummon,
102106
insert: './stairs-secret-summon.js'
103107
}
104-
*/
105108
]
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
this.しょうかんする('土のかいだん', 0, 0)
1+
つくる('土のかいだん', this.mapX, this.mapY, this.map.name)
2+
つくる('土のかいだん', 0, 5, 'map2')
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
this.しょうかんする('かくしかいだん', 0, 0)
1+
つくる('かくしかいだん', this.mapX, this.mapY, this.map.name)
2+
つくる('かくしかいだん', 1, 5, 'map2')
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
this.しょうかんする('石のかいだん', 0, 0)
1+
つくる('石のかいだん', this.mapX, this.mapY, this.map.name)
2+
つくる('石のかいだん', 2, 5, 'map2')
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
this.しょうかんする('木のかいだん', 0, 0)
1+
つくる('木のかいだん', this.mapX, this.mapY, this.map.name)
2+
つくる('木のかいだん', 3, 5, 'map2')
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
this.しょうかんする('くだりかいだん', 0, 0)
1+
つくる('くだりかいだん', this.mapX, this.mapY, this.map.name)
2+
つくる('くだりかいだん', 4, 5, 'map2')

src/assets/くだりかいだん/index.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,20 @@ const scopeCreate = [
1919
// スコープの参照を配列で指定する. null の場合は常に表示
2020
sco.ゲームがはじまったとき
2121
]
22-
/*
22+
const scopeSummon = [
2323
// スコープの参照を配列で指定する. null の場合は常に表示
2424
sco.こうげきされたとき,
2525
sco.たおされたとき,
26-
sco.ふまれたとき,sco.どかれたとき,
26+
sco.ふまれたとき,
27+
sco.どかれたとき,
2728
sco.ぶつかったとき,
28-
sco.メッセージされたとき
29+
sco.メッセージされたとき,
30+
sco.へんすうがかわったとき,
31+
sco.みつけたとき,
32+
sco.こうげきするとき,
33+
sco.あるいたとき,
34+
sco.タップされたとき
2935
]
30-
*/
3136

3237
module.exports = [
3338
// 「ステージ」ファイルに入るコード
@@ -37,14 +42,12 @@ module.exports = [
3742
insert: './down-stairs-create.js',
3843
thumbnail: 'https://i.gyazo.com/4c045b6ab37a333cd8cf6b172a6c562b.gif', // サムネイル画像
3944
children: []
40-
}
41-
/*
45+
},
4246
// 「◯◯を改造する」ファイルに入るコード
4347
{
4448
...down,
4549
scopes: scopeSummon,
4650
insert: './down-stairs-summon.js',
4751
children: []
4852
}
49-
*/
5053
]

0 commit comments

Comments
 (0)