We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac2bb44 commit 5e94f31Copy full SHA for 5e94f31
src/stages.ts
@@ -1,5 +1,18 @@
1
+/**
2
+ Stage Grid, expressed as list of row from x=0 to x=max(x).
3
+ All rows are expected to equal in length. (but there's no runtime check afaik)
4
+ Example:
5
+ [
6
+ "bbbbbbbbbbb", // b stands for block
7
+ "...........", // . stands for air
8
+ ".....m..bbb", // m stands for movable block
9
+ "bbbbbbbbbbb"
10
+ ]
11
+ */
12
+type Stage = string[];
13
+
14
export type StageDefinition = {
- stage: string[];
15
+ stage: Stage;
16
initialPlayerX: number; // 左端から0-indexed
17
initialPlayerY: number; // 上端から0-indexed +1すると浮かずに地面に立つ
18
blockGroups: {
0 commit comments