Skip to content

Commit 5bd6386

Browse files
committed
5~8をstage3として整備
1 parent 34de829 commit 5bd6386

File tree

4 files changed

+370
-122
lines changed

4 files changed

+370
-122
lines changed

src/stages.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { world1 } from "./stages/world1.ts";
1212
import { world2 } from "./stages/world2.ts";
1313
import { world3 } from "./stages/world3.ts";
1414
import { world4 } from "./stages/world4.ts";
15+
import { world5 } from "./stages/world5.ts";
1516

1617
export const stages = new Map<string, StageDefinition>([
1718
["1", stage1],
@@ -36,4 +37,10 @@ export const stages = new Map<string, StageDefinition>([
3637
["3-4", world3.stage4],
3738
["4-1", world4.stage1],
3839
["4-2", world4.stage2],
40+
["4-3", world4.stage3],
41+
["4-4", world4.stage4],
42+
["5-1", world5.stage1],
43+
["5-2", world5.stage2],
44+
// ["5-3", world5.stage3],
45+
// ["5-4", world5.stage4],
3946
]);

src/stages/world3.ts

Lines changed: 217 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -6,103 +6,236 @@ export namespace world3 {
66
stage: [
77
"bbbbbbbbbbbbbbbbbb",
88
".........b........",
9-
".........b......g.",
10-
".........b...bbbbb",
11-
".........b...bbbbb",
12-
".........m...bbbbb",
13-
"bbbbbbbbbbbbbbbbbb",
9+
".........b........",
10+
".........w........",
11+
".s....m..w.....g..",
12+
"bSbbbbbbbbbbbbbbbb",
1413
],
15-
isTutorial: false,
16-
initialPlayerX: 1,
17-
initialPlayerY: 6,
18-
inventoryIsInfinite: true,
14+
initialPlayerX: 3,
15+
initialPlayerY: 5,
1916
blockGroups: [],
20-
switchGroups: [],
21-
usage: {
22-
copy: Number.POSITIVE_INFINITY,
23-
cut: Number.POSITIVE_INFINITY,
24-
paste: Number.POSITIVE_INFINITY,
25-
},
26-
};
27-
export const stage2: StageDefinition = {
28-
stage: [
29-
"bbbbbbbbbbbbbbbbbb",
30-
"..................",
31-
"................g.",
32-
".............bbbbb",
33-
"......f......bbbbb",
34-
"......f......bbbbb",
35-
"......f......bbbbb",
36-
"bbbbbbbbb.bb.bbbbb",
17+
switchGroups: [
18+
{
19+
x: 1,
20+
y: 4,
21+
switchId: "1",
22+
},
23+
{
24+
x: 9,
25+
y: 3,
26+
switchId: "1",
27+
},
28+
{
29+
x: 9,
30+
y: 4,
31+
switchId: "1",
32+
},
3733
],
38-
isTutorial: false,
39-
initialPlayerX: 1,
40-
initialPlayerY: 6,
41-
inventoryIsInfinite: true,
42-
blockGroups: [],
43-
switchGroups: [],
44-
usage: {
45-
copy: Number.POSITIVE_INFINITY,
46-
cut: Number.POSITIVE_INFINITY,
47-
paste: Number.POSITIVE_INFINITY,
48-
},
4934
};
50-
export const stage3: StageDefinition = {
35+
export const stage2: StageDefinition = {
5136
stage: [
52-
"bbbbbbbbbbbbbbbbb",
53-
"g...W........w..b",
54-
"b...bb..bb..bb..b",
55-
"b...bb..bb..bb..b",
56-
"b....bf..bs..bm.b",
57-
"b..bbbbbbbSbbbbbb",
37+
"bbbbbbbbbbbbbbbbbbbbbbbbb",
38+
".........................",
39+
"......................g..",
40+
"................bbbbbbbbb",
41+
"...............wbbbbbbbbb",
42+
"m...............bbbbbbbbb",
43+
"bb..............w.....m..",
44+
"bb..............b....mm..",
45+
"bb.w....m..s...bb...mmm..",
46+
"bbbbbbbbbbbSbbbbbbbbbbbbb",
5847
],
59-
isTutorial: false,
6048
initialPlayerX: 5,
61-
initialPlayerY: 1,
62-
inventoryIsInfinite: true,
63-
blockGroups: [],
49+
initialPlayerY: 8,
50+
blockGroups: [
51+
{
52+
x: 20,
53+
y: 8,
54+
objectId: "1",
55+
},
56+
{
57+
x: 21,
58+
y: 8,
59+
objectId: "1",
60+
},
61+
{
62+
x: 21,
63+
y: 7,
64+
objectId: "1",
65+
},
66+
{
67+
x: 22,
68+
y: 6,
69+
objectId: "1",
70+
},
71+
{
72+
x: 22,
73+
y: 7,
74+
objectId: "1",
75+
},
76+
{
77+
x: 22,
78+
y: 8,
79+
objectId: "1",
80+
},
81+
],
6482
switchGroups: [
65-
{ x: 4, y: 1, switchId: "1" },
66-
{ x: 13, y: 1, switchId: "1" },
67-
{ x: 10, y: 4, switchId: "1" },
83+
{
84+
x: 3,
85+
y: 8,
86+
switchId: "1",
87+
},
88+
{
89+
x: 11,
90+
y: 8,
91+
switchId: "1",
92+
},
93+
{
94+
x: 15,
95+
y: 4,
96+
switchId: "1",
97+
},
98+
{
99+
x: 16,
100+
y: 6,
101+
switchId: "1",
102+
},
68103
],
69-
usage: {
70-
copy: Number.POSITIVE_INFINITY,
71-
cut: Number.POSITIVE_INFINITY,
72-
paste: Number.POSITIVE_INFINITY,
73-
},
74104
};
75-
export const stage4: StageDefinition = stagePreprocess({
105+
export const stage3: StageDefinition = stagePreprocess({
76106
stage: [
77-
"bbbbbbbbbbbbbbbbbbbbbbbb",
78-
"bbbb..W..w.....bmmmmW...",
79-
"bbbb..bb.w.........W....",
80-
".......b.bbbbbbbbbbb....",
81-
".s............w....w....",
82-
"bSbbb.........w..m.w....",
83-
"bbbbb.........bbbbbb...b",
84-
"bbbbb.........bg......bb",
85-
"bbbbbssss...f.b......bbb",
86-
"bbbbbSSSSbbbbbb.....bbbb",
107+
"bbbbbbbbbbbbbbbbbb",
108+
"..................",
109+
"................g.",
110+
"........w......bbb",
111+
"........w.....wbbb",
112+
".....bm.w....w.bbb",
113+
".....bbb...bbbbbbb",
114+
"...m.bbb...bbbbbbb",
115+
"...mm...s.........",
116+
"bbbbbbbbSbbbbbbbbb",
87117
],
88118
overlay: [
89-
"bbbbbbbbbbbbbbbbbbbbbbbb",
90-
"bbbb..1..1.....b33332...",
91-
"bbbb..bb.1.........2....",
92-
".......b.bbbbbbbbbbb....",
93-
".2............2....2....",
94-
"b-bbb.........2..m.2....",
95-
"bbbbb.........bbbbbb...b",
96-
"bbbbb.........bg......bb",
97-
"bbbbb1111.S.f.b......bbb",
98-
"bbbbb----bbbbbb.....bbbb",
119+
"bbbbbbbbbbbbbbbbbb",
120+
"..................",
121+
"................g.",
122+
"........1......bbb",
123+
"........1.....1bbb",
124+
".....bm.1....1.bbb",
125+
".....bbb...bbbbbbb",
126+
"...3 bbb...bbbbbbb",
127+
".S.33...1.........",
128+
"bbbbbbbbbbbbbbbbbb",
99129
],
100-
isTutorial: false,
101-
inventoryIsInfinite: true,
102-
usage: {
103-
copy: Number.POSITIVE_INFINITY,
104-
cut: Number.POSITIVE_INFINITY,
105-
paste: Number.POSITIVE_INFINITY,
106-
},
107130
});
131+
export const stage4: StageDefinition = {
132+
stage: [
133+
"bbbbbbbbbbbbbbbbbbbbbbb",
134+
".........w...b.........",
135+
".........w.g.b...m.....",
136+
".........bbbbb.........",
137+
"m.......w.....w......m.",
138+
"mm.....w.......w.....mm",
139+
"bbb..bb.........bb..bbb",
140+
".......w.......w.......",
141+
"....s.m.w.....w...s....",
142+
"bbbbSbbbbbbbbbbbbbSbbbb",
143+
],
144+
initialPlayerX: 1,
145+
initialPlayerY: 9,
146+
blockGroups: [
147+
{
148+
x: 0,
149+
y: 4,
150+
objectId: "1",
151+
},
152+
{
153+
x: 0,
154+
y: 5,
155+
objectId: "1",
156+
},
157+
{
158+
x: 1,
159+
y: 5,
160+
objectId: "1",
161+
},
162+
{
163+
x: 21,
164+
y: 4,
165+
objectId: "2",
166+
},
167+
{
168+
x: 21,
169+
y: 5,
170+
objectId: "2",
171+
},
172+
{
173+
x: 22,
174+
y: 5,
175+
objectId: "2",
176+
},
177+
],
178+
switchGroups: [
179+
{
180+
x: 4,
181+
y: 8,
182+
switchId: "1",
183+
},
184+
{
185+
x: 7,
186+
y: 5,
187+
switchId: "2",
188+
},
189+
{
190+
x: 7,
191+
y: 7,
192+
switchId: "1",
193+
},
194+
{
195+
x: 8,
196+
y: 4,
197+
switchId: "2",
198+
},
199+
{
200+
x: 8,
201+
y: 8,
202+
switchId: "1",
203+
},
204+
{
205+
x: 9,
206+
y: 1,
207+
switchId: "2",
208+
},
209+
{
210+
x: 9,
211+
y: 2,
212+
switchId: "2",
213+
},
214+
{
215+
x: 14,
216+
y: 4,
217+
switchId: "1",
218+
},
219+
{
220+
x: 14,
221+
y: 8,
222+
switchId: "2",
223+
},
224+
{
225+
x: 15,
226+
y: 5,
227+
switchId: "1",
228+
},
229+
{
230+
x: 15,
231+
y: 7,
232+
switchId: "2",
233+
},
234+
{
235+
x: 18,
236+
y: 8,
237+
switchId: "2",
238+
},
239+
],
240+
};
108241
}

0 commit comments

Comments
 (0)