Skip to content

Commit 34de829

Browse files
committed
stage1,2を整備
1 parent 1602f8b commit 34de829

File tree

4 files changed

+254
-0
lines changed

4 files changed

+254
-0
lines changed

public/assets/home-block.png renamed to public/assets/Screenshot From 2025-05-23 14-52-24.png

File renamed without changes.

src/stages.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import { stage6 } from "./stages/6.ts";
88
import { stage7 } from "./stages/7.ts";
99
import { stage8 } from "./stages/8.ts";
1010
import type { StageDefinition } from "./stages/type.ts";
11+
import { world1 } from "./stages/world1.ts";
12+
import { world2 } from "./stages/world2.ts";
1113
import { world3 } from "./stages/world3.ts";
1214
import { world4 } from "./stages/world4.ts";
1315

@@ -20,6 +22,14 @@ export const stages = new Map<string, StageDefinition>([
2022
["6", stage6],
2123
["7", stagePreprocess(stage7)],
2224
["8", stage8],
25+
["1-1", world1.stage1],
26+
["1-2", world1.stage2],
27+
["1-3", world1.stage3],
28+
["1-4", world1.stage4],
29+
["2-1", world2.stage1],
30+
["2-2", world2.stage2],
31+
["2-3", world2.stage3],
32+
["2-4", world2.stage4],
2333
["3-1", world3.stage1],
2434
["3-2", world3.stage2],
2535
["3-3", world3.stage3],

src/stages/world1.ts

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
import { stagePreprocess } from "@/stage-preprocessor.ts";
2+
import type { StageDefinition } from "./type.ts";
3+
4+
export namespace world1 {
5+
export const stage1: StageDefinition = {
6+
stage: [
7+
"bbbbbbbbbbbbbbbbbb",
8+
"..................",
9+
"..................",
10+
"...............g..",
11+
"............bbbbbb",
12+
"......bbbbbbbbbbbb",
13+
"bbbbbbbbbbbbbbbbbb",
14+
],
15+
isTutorial: false,
16+
initialPlayerX: 1,
17+
initialPlayerY: 6,
18+
inventoryIsInfinite: false,
19+
blockGroups: [],
20+
switchGroups: [],
21+
usage: {
22+
copy: 0,
23+
cut: Number.POSITIVE_INFINITY,
24+
paste: Number.POSITIVE_INFINITY,
25+
},
26+
};
27+
export const stage2: StageDefinition = {
28+
stage: [
29+
"bbbbbbbbbbbbbbbbbb",
30+
"........b.........",
31+
"........b.........",
32+
"........b.........",
33+
"........b.........",
34+
"........m.......g.",
35+
"bbbbbbbbbbbbbbbbbb",
36+
],
37+
isTutorial: false,
38+
initialPlayerX: 2,
39+
initialPlayerY: 6,
40+
inventoryIsInfinite: false,
41+
blockGroups: [],
42+
switchGroups: [],
43+
usage: {
44+
copy: 0,
45+
cut: Number.POSITIVE_INFINITY,
46+
paste: Number.POSITIVE_INFINITY,
47+
},
48+
};
49+
export const stage3: StageDefinition = {
50+
stage: [
51+
"bbbbbbbbbbbbbbbbbb",
52+
"..................",
53+
"..................",
54+
"..................",
55+
"..................",
56+
"..................",
57+
"mmmm............g.",
58+
"bbbbbbbb....bbbbbb",
59+
],
60+
isTutorial: false,
61+
initialPlayerX: 5,
62+
initialPlayerY: 6,
63+
inventoryIsInfinite: false,
64+
blockGroups: [
65+
{
66+
x: 0,
67+
y: 6,
68+
objectId: "1",
69+
},
70+
{
71+
x: 1,
72+
y: 6,
73+
objectId: "1",
74+
},
75+
{
76+
x: 2,
77+
y: 6,
78+
objectId: "1",
79+
},
80+
{
81+
x: 3,
82+
y: 6,
83+
objectId: "1",
84+
},
85+
],
86+
switchGroups: [],
87+
usage: {
88+
copy: 0,
89+
cut: Number.POSITIVE_INFINITY,
90+
paste: Number.POSITIVE_INFINITY,
91+
},
92+
};
93+
export const stage4: StageDefinition = stagePreprocess({
94+
stage: [
95+
"bbbbbbbbbbbbbbbbbbbbb",
96+
".....................",
97+
"...g.................",
98+
"bbbbbbbbbb...........",
99+
".....................",
100+
".....................",
101+
"............bbbbbbbbb",
102+
"....m.........m......",
103+
"....mm.......mm......",
104+
"bbbbbbbbbbbbbbbbbbbbb",
105+
],
106+
overlay: [
107+
"bbbbbbbbbbbbbbbbbbbbb",
108+
".....................",
109+
"...g.................",
110+
"bbbbbbbbbb...........",
111+
".....................",
112+
".....................",
113+
"............bbbbbbbbb",
114+
"....1.........2......",
115+
".S..11.......22......",
116+
"bbbbbbbbbbbbbbbbbbbbb",
117+
],
118+
isTutorial: false,
119+
inventoryIsInfinite: false,
120+
usage: {
121+
copy: 0,
122+
cut: Number.POSITIVE_INFINITY,
123+
paste: Number.POSITIVE_INFINITY,
124+
},
125+
});
126+
}

src/stages/world2.ts

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
import { stagePreprocess } from "@/stage-preprocessor.ts";
2+
import type { StageDefinition } from "./type.ts";
3+
4+
export namespace world2 {
5+
export const stage1: StageDefinition = {
6+
stage: [
7+
"bbbbbbbbbbbbbbbbbb",
8+
"..................",
9+
"...............g..",
10+
"m............bbbbb",
11+
"bb...........bbbbb",
12+
"bb.....m.....bbbbb",
13+
"bbbbbbbbbbbbbbbbbb",
14+
],
15+
isTutorial: true,
16+
initialPlayerX: 3,
17+
initialPlayerY: 6,
18+
blockGroups: [],
19+
switchGroups: [],
20+
};
21+
export const stage2: StageDefinition = {
22+
stage: [
23+
"bbbbbbbbbbbbbbbbbb",
24+
"...b............g.",
25+
"...b....m......bbb",
26+
"...bm..........bbb",
27+
"...bbb.........bbb",
28+
"...mm..........bbb",
29+
"bbbbbbbbbbb....bbb",
30+
],
31+
initialPlayerX: 1,
32+
initialPlayerY: 6,
33+
blockGroups: [
34+
{
35+
x: 3,
36+
y: 5,
37+
objectId: "1",
38+
},
39+
{
40+
x: 4,
41+
y: 5,
42+
objectId: "1",
43+
},
44+
],
45+
switchGroups: [],
46+
};
47+
48+
export const stage3: StageDefinition = {
49+
stage: [
50+
"bbbbbbbbbbbbbbbbbbbbbb",
51+
"....b.................",
52+
"....b...............g.",
53+
"....b..............bbb",
54+
"m...b..............bbb",
55+
"bb.................bbb",
56+
"bb..........m......bbb",
57+
"bb.........mm......bbb",
58+
"bb..bb...bbbbb.....bbb",
59+
"bb..bbb............bbb",
60+
"bb..bbbb..m........bbb",
61+
"bb..bbbbbbbbbbb....bbb",
62+
],
63+
initialPlayerX: 5,
64+
initialPlayerY: 7,
65+
blockGroups: [
66+
{
67+
x: 11,
68+
y: 7,
69+
objectId: "1",
70+
},
71+
{
72+
x: 12,
73+
y: 7,
74+
objectId: "1",
75+
},
76+
{
77+
x: 12,
78+
y: 6,
79+
objectId: "1",
80+
},
81+
],
82+
switchGroups: [],
83+
};
84+
85+
export const stage4: StageDefinition = stagePreprocess({
86+
stage: [
87+
"bbbbbbbbbbbbbbbbbbbbbb",
88+
"......................",
89+
"..g...................",
90+
"bbbbb...............m.",
91+
"......................",
92+
"..m............b......",
93+
".....m.........b....m.",
94+
".............m.bm..mm.",
95+
"........m......b..mm..",
96+
"bbbbbbbbbbbbbbbbbbbbbb",
97+
],
98+
overlay: [
99+
"bbbbbbbbbbbbbbbbbbbbbb",
100+
"......................",
101+
"..g...................",
102+
"bbbbb...............m.",
103+
"......................",
104+
"..m............b......",
105+
".....m.........b....2.",
106+
".............m.bm..22.",
107+
"...S....m......b..22..",
108+
"bbbbbbbbbbbbbbbbbbbbbb",
109+
],
110+
isTutorial: false,
111+
inventoryIsInfinite: false,
112+
usage: {
113+
copy: 0,
114+
cut: Number.POSITIVE_INFINITY,
115+
paste: Number.POSITIVE_INFINITY,
116+
},
117+
});
118+
}

0 commit comments

Comments
 (0)