Skip to content

Commit 1920506

Browse files
committed
stage5-1,5-2追加
1 parent 5bd6386 commit 1920506

File tree

2 files changed

+155
-24
lines changed

2 files changed

+155
-24
lines changed

src/stages/world5.ts

Lines changed: 99 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,113 @@
1+
import { stagePreprocess } from "@/stage-preprocessor.ts";
12
import { usages } from "./_proto.ts";
23
import type { StageDefinition } from "./type.ts";
34

45
export namespace world5 {
5-
export const stage1: StageDefinition = {
6+
export const stage1: StageDefinition = stagePreprocess({
7+
stage: [
8+
"bbbbbbbbbbbbbbbbbbbbbbbb",
9+
"....w...................",
10+
"....w...................",
11+
".g..w...................",
12+
"bbbbbbb.................",
13+
".................bb.....",
14+
"....f............bbbbb..",
15+
"bbbbbbb.bbwwwwwb.bbm....",
16+
"bbbbbbb.bbm..m.b.......m",
17+
"bbbbbbbsbbmm.mmb.....smm",
18+
"bbbbbbbSbbbbbbbb^bbbbSbb",
19+
],
20+
overlay: [
21+
"bbbbbbbbbbbbbbbbbbbbbbbb",
22+
"....2...................",
23+
"....2...................",
24+
".g..2...................",
25+
"bbbbbbb.................",
26+
".................bb.....",
27+
"..S.f............bbbbb..",
28+
"bbbbbbb.bb11111b.bbm....",
29+
"bbbbbbb.bb5..3.b.......4",
30+
"bbbbbbb1bb55.33b.....244",
31+
"bbbbbbb-bbbbbbbb^bbbb-bb",
32+
],
33+
inventoryIsInfinite: false,
34+
usage: {
35+
copy: 0,
36+
cut: Number.POSITIVE_INFINITY,
37+
paste: Number.POSITIVE_INFINITY,
38+
},
39+
});
40+
export const stage2: StageDefinition = stagePreprocess({
641
stage: [
742
"bbbbbbbbbbbbbbbbbbbbb",
8-
"bbbbbbbbbbb..........",
9-
"bbbbbbbbbbb..........",
10-
"bbbbbbbbbbz..........",
11-
".....................",
12-
".....................",
43+
"...........f.........",
44+
"...........fmm......g",
45+
"..........bbbb.....bb",
1346
".f...................",
14-
".m.................g.",
15-
"bbbbb^^^^^^......bbbb",
47+
"bbbbbb.m.............",
48+
"bbbbb..m.............",
49+
"bbbbb.mm.............",
50+
"bbbbb.^^^^^^^^^^^^^^^",
1651
],
17-
initialPlayerX: 4,
18-
initialPlayerY: 7,
19-
inventoryIsInfinite: true,
20-
usage: usages.allInf,
21-
blockGroups: [],
22-
switchGroups: [],
23-
laserDirections: [{ x: 10, y: 3, direction: "down" }],
24-
};
52+
overlay: [
53+
"bbbbbbbbbbbbbbbbbbbbb",
54+
"...........f.........",
55+
"...........f22......g",
56+
"..........bbbb.....bb",
57+
".f.S.................",
58+
"bbbbbb.1.............",
59+
"bbbbb..1.............",
60+
"bbbbb.11.............",
61+
"bbbbb.^^^^^^bbbbbbbbb",
62+
],
63+
inventoryIsInfinite: false,
64+
usage: {
65+
copy: 0,
66+
cut: Number.POSITIVE_INFINITY,
67+
paste: Number.POSITIVE_INFINITY,
68+
},
69+
});
70+
export const stage3: StageDefinition = stagePreprocess({
71+
stage: [
72+
"bbbbbbbbbbbbbbbbbbbbb",
73+
"...........f.........",
74+
"...........fmm......g",
75+
"..........bbbb.....bb",
76+
".f...................",
77+
"bbbbbb.m.............",
78+
"bbbbb..m.............",
79+
"bbbbb.mm.............",
80+
"bbbbb.^^^^^^^^^^^^^^^",
81+
],
82+
overlay: [
83+
"bbbbbbbbbbbbbbbbbbbbb",
84+
"...........f.........",
85+
"...........f22......g",
86+
"..........bbbb.....bb",
87+
".f.S.................",
88+
"bbbbbb.1.............",
89+
"bbbbb..1.............",
90+
"bbbbb.11.............",
91+
"bbbbb.^^^^^^bbbbbbbbb",
92+
],
93+
inventoryIsInfinite: false,
94+
usage: {
95+
copy: 0,
96+
cut: Number.POSITIVE_INFINITY,
97+
paste: Number.POSITIVE_INFINITY,
98+
},
99+
});
25100

26-
export const stage2: StageDefinition = {
101+
export const stage4: StageDefinition = {
27102
stage: [
28103
"bbbbbbbbbbbbbbbbbbbbb",
29-
"..........g..........",
30-
".........bbb.........",
31-
"....f...........z....",
32-
"...bbbbb^^^^^bbbbb...",
33-
"..b.......w.......b..",
34-
".m........w........m.",
35-
"mm...s....w....f...mm",
104+
".....................",
105+
".....................",
106+
".....................",
107+
".....................",
108+
".....................",
109+
".....................",
110+
".....................",
36111
"bbbbbSbbbbbbbbbbbbbbb",
37112
],
38113
initialPlayerX: 4,

src/stages/world6.ts

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
import { usages } from "./_proto.ts";
2+
import type { StageDefinition } from "./type.ts";
3+
4+
export namespace world6 {
5+
export const stage1: StageDefinition = {
6+
stage: [
7+
"bbbbbbbbbbbbbbbbbbbbb",
8+
"bbbbbbbbbbb..........",
9+
"bbbbbbbbbbb..........",
10+
"bbbbbbbbbbz..........",
11+
".....................",
12+
".....................",
13+
".f...................",
14+
".m.................g.",
15+
"bbbbb^^^^^^......bbbb",
16+
],
17+
initialPlayerX: 4,
18+
initialPlayerY: 7,
19+
inventoryIsInfinite: true,
20+
usage: usages.allInf,
21+
blockGroups: [],
22+
switchGroups: [],
23+
laserDirections: [{ x: 10, y: 3, direction: "down" }],
24+
};
25+
26+
export const stage2: StageDefinition = {
27+
stage: [
28+
"bbbbbbbbbbbbbbbbbbbbb",
29+
"..........g..........",
30+
".........bbb.........",
31+
"....f...........z....",
32+
"...bbbbb^^^^^bbbbb...",
33+
"..b.......w.......b..",
34+
".m........w........m.",
35+
"mm...s....w....f...mm",
36+
"bbbbbSbbbbbbbbbbbbbbb",
37+
],
38+
initialPlayerX: 4,
39+
initialPlayerY: 4,
40+
blockGroups: [
41+
{ x: 0, y: 7, objectId: "1" },
42+
{ x: 1, y: 7, objectId: "1" },
43+
{ x: 1, y: 6, objectId: "1" },
44+
{ x: 19, y: 7, objectId: "2" },
45+
{ x: 20, y: 7, objectId: "2" },
46+
{ x: 19, y: 6, objectId: "2" },
47+
],
48+
switchGroups: [
49+
{ x: 5, y: 7, switchId: "1" },
50+
{ x: 10, y: 7, switchId: "1" },
51+
{ x: 10, y: 6, switchId: "1" },
52+
{ x: 10, y: 5, switchId: "1" },
53+
],
54+
laserDirections: [{ x: 16, y: 3, direction: "left" }],
55+
};
56+
}

0 commit comments

Comments
 (0)