Skip to content

Commit bbcdfe8

Browse files
committed
stage5-3,5-4
1 parent 1920506 commit bbcdfe8

File tree

2 files changed

+50
-43
lines changed

2 files changed

+50
-43
lines changed

src/stages.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import { world2 } from "./stages/world2.ts";
1313
import { world3 } from "./stages/world3.ts";
1414
import { world4 } from "./stages/world4.ts";
1515
import { world5 } from "./stages/world5.ts";
16+
import { world6 } from "./stages/world6.ts";
1617

1718
export const stages = new Map<string, StageDefinition>([
1819
["1", stage1],
@@ -41,6 +42,10 @@ export const stages = new Map<string, StageDefinition>([
4142
["4-4", world4.stage4],
4243
["5-1", world5.stage1],
4344
["5-2", world5.stage2],
44-
// ["5-3", world5.stage3],
45-
// ["5-4", world5.stage4],
45+
["5-3", world5.stage3],
46+
["5-4", world5.stage4],
47+
["6-1", world6.stage1],
48+
["6-2", world6.stage2],
49+
// ["6-3", world6.stage3],
50+
// ["6-4", world6.stage4],
4651
]);

src/stages/world5.ts

Lines changed: 43 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -70,25 +70,23 @@ export namespace world5 {
7070
export const stage3: StageDefinition = stagePreprocess({
7171
stage: [
7272
"bbbbbbbbbbbbbbbbbbbbb",
73-
"...........f.........",
74-
"...........fmm......g",
75-
"..........bbbb.....bb",
76-
".f...................",
77-
"bbbbbb.m.............",
78-
"bbbbb..m.............",
79-
"bbbbb.mm.............",
80-
"bbbbb.^^^^^^^^^^^^^^^",
73+
".....................",
74+
".....................",
75+
"m..........f.........",
76+
"bb.........f...^^....",
77+
"..........bb..^bb....",
78+
"f.............bbb..g.",
79+
"bbbb^b^b^bbb^^bbbbbbb",
8180
],
8281
overlay: [
8382
"bbbbbbbbbbbbbbbbbbbbb",
84-
"...........f.........",
85-
"...........f22......g",
86-
"..........bbbb.....bb",
87-
".f.S.................",
88-
"bbbbbb.1.............",
89-
"bbbbb..1.............",
90-
"bbbbb.11.............",
91-
"bbbbb.^^^^^^bbbbbbbbb",
83+
".....................",
84+
".....................",
85+
"m..........f.........",
86+
"bb.........f...^^....",
87+
"..........bb..^bb....",
88+
"f.S...........bbb..g.",
89+
"bbbb^b^b^bbb^^bbbbbbb",
9290
],
9391
inventoryIsInfinite: false,
9492
usage: {
@@ -98,34 +96,38 @@ export namespace world5 {
9896
},
9997
});
10098

101-
export const stage4: StageDefinition = {
99+
export const stage4: StageDefinition = stagePreprocess({
102100
stage: [
103101
"bbbbbbbbbbbbbbbbbbbbb",
104102
".....................",
105-
".....................",
106-
".....................",
107-
".....................",
108-
".....................",
109-
".....................",
110-
".....................",
111-
"bbbbbSbbbbbbbbbbbbbbb",
103+
"..fm...........b.....",
104+
"..fm...........b.....",
105+
"mmmm...........b.....",
106+
"bbbb...........b.g...",
107+
"bbbb..^.....^..bbbb..",
108+
"bbbb..b^..^^b.^b.....",
109+
"bbbb..bb..bbb.bb.....",
110+
"bbbb..bb..bbf........",
111+
"bbbb..bb..bbbbbbbbbbb",
112112
],
113-
initialPlayerX: 4,
114-
initialPlayerY: 4,
115-
blockGroups: [
116-
{ x: 0, y: 7, objectId: "1" },
117-
{ x: 1, y: 7, objectId: "1" },
118-
{ x: 1, y: 6, objectId: "1" },
119-
{ x: 19, y: 7, objectId: "2" },
120-
{ x: 20, y: 7, objectId: "2" },
121-
{ x: 19, y: 6, objectId: "2" },
122-
],
123-
switchGroups: [
124-
{ x: 5, y: 7, switchId: "1" },
125-
{ x: 10, y: 7, switchId: "1" },
126-
{ x: 10, y: 6, switchId: "1" },
127-
{ x: 10, y: 5, switchId: "1" },
113+
overlay: [
114+
"bbbbbbbbbbbbbbbbbbbbb",
115+
".....................",
116+
"..fm...........b.....",
117+
".Sfm...........b.....",
118+
"mmmm...........b.....",
119+
"bbbb...........b.g...",
120+
"bbbb..^.....^..bbbb..",
121+
"bbbb..b^..^^b.^b.....",
122+
"bbbb..bb..bbb.bb.....",
123+
"bbbb..bb..bbf........",
124+
"bbbb..bb..bbbbbbbbbbb",
128125
],
129-
laserDirections: [{ x: 16, y: 3, direction: "left" }],
130-
};
126+
inventoryIsInfinite: false,
127+
usage: {
128+
copy: 0,
129+
cut: Number.POSITIVE_INFINITY,
130+
paste: Number.POSITIVE_INFINITY,
131+
},
132+
});
131133
}

0 commit comments

Comments
 (0)