Skip to content

Commit fb3725b

Browse files
committed
world6の整備・ステージ追加
1 parent bbcdfe8 commit fb3725b

File tree

2 files changed

+71
-4
lines changed

2 files changed

+71
-4
lines changed

src/stages.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ export const stages = new Map<string, StageDefinition>([
4646
["5-4", world5.stage4],
4747
["6-1", world6.stage1],
4848
["6-2", world6.stage2],
49-
// ["6-3", world6.stage3],
50-
// ["6-4", world6.stage4],
49+
["6-3", world6.stage3],
50+
["6-4", world6.stage4],
5151
]);

src/stages/world6.ts

Lines changed: 69 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,35 @@ import type { StageDefinition } from "./type.ts";
33

44
export namespace world6 {
55
export const stage1: StageDefinition = {
6+
stage: [
7+
"bbbbbbbbbbbbbbbbbbbbb",
8+
"bbbbbbbbbbbbbbbbbbbbb",
9+
"bbbbbbbbbbbbzbbbbbbbb",
10+
".....................",
11+
"..................g..",
12+
"................bbbbb",
13+
".f..............bbbbb",
14+
".m..............bbbbb.",
15+
"bbbbbbbb.bbbbbbbbbbbb",
16+
"bbbbbbbbzbbbbbbbbbbbb",
17+
"bbbbbbbbbbbbbbbbbbbbb",
18+
],
19+
initialPlayerX: 4,
20+
initialPlayerY: 7,
21+
inventoryIsInfinite: false,
22+
usage: {
23+
copy: 0,
24+
cut: Number.POSITIVE_INFINITY,
25+
paste: Number.POSITIVE_INFINITY,
26+
},
27+
blockGroups: [],
28+
switchGroups: [],
29+
laserDirections: [
30+
{ x: 8, y: 9, direction: "up" },
31+
{ x: 12, y: 2, direction: "down" },
32+
],
33+
};
34+
export const stage2: StageDefinition = {
635
stage: [
736
"bbbbbbbbbbbbbbbbbbbbb",
837
"bbbbbbbbbbb..........",
@@ -22,8 +51,46 @@ export namespace world6 {
2251
switchGroups: [],
2352
laserDirections: [{ x: 10, y: 3, direction: "down" }],
2453
};
25-
26-
export const stage2: StageDefinition = {
54+
export const stage3: StageDefinition = {
55+
stage: [
56+
"bbbbbbbbbbbbbbbbbbbbbbb",
57+
".......................",
58+
".......................",
59+
"f......................",
60+
"ff.............g.......",
61+
"bbb...........bbb......",
62+
"bz..................w..",
63+
"bbb...............m.w..",
64+
"bz................m.w.m",
65+
"bbbbbbbbbbzbbbb.bbbbbbb",
66+
"bbbbbbbbbbbbbbbsbbbbbbb",
67+
"bbbbbbbbbbbbbbbSbbbbbbb",
68+
],
69+
initialPlayerX: 2,
70+
initialPlayerY: 5,
71+
inventoryIsInfinite: false,
72+
usage: {
73+
copy: 0,
74+
cut: Number.POSITIVE_INFINITY,
75+
paste: Number.POSITIVE_INFINITY,
76+
},
77+
blockGroups: [
78+
{ x: 18, y: 7, objectId: "1" },
79+
{ x: 18, y: 8, objectId: "1" },
80+
],
81+
switchGroups: [
82+
{ x: 15, y: 10, switchId: "1" },
83+
{ x: 20, y: 6, switchId: "1" },
84+
{ x: 20, y: 7, switchId: "1" },
85+
{ x: 20, y: 8, switchId: "1" },
86+
],
87+
laserDirections: [
88+
{ x: 1, y: 6, direction: "right" },
89+
{ x: 1, y: 8, direction: "right" },
90+
{ x: 10, y: 9, direction: "up" },
91+
],
92+
};
93+
export const stage4: StageDefinition = {
2794
stage: [
2895
"bbbbbbbbbbbbbbbbbbbbb",
2996
"..........g..........",

0 commit comments

Comments
 (0)