]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/aos-tracker/CastleCorridor.js
add basic map
[alttp.git] / resources / js / components / aos-tracker / CastleCorridor.js
1 import PropTypes from 'prop-types';
2 import React from 'react';
3
4 import Cell from './Cell';
5 import Region from './Region';
6 import Room from './Room';
7
8 const CastleCorridor = ({ x, y }) =>
9         <Region name="castle-corridor" x={x} y={y}>
10                 <Room x={0} y={6}>
11                         <Cell x={0} y={0} left="solid" top="solid" />
12                         <Cell x={1} y={0} right="solid" top="solid" />
13                         <Cell x={0} y={1} left="solid" />
14                         <Cell x={1} y={1} right="solid" />
15                         <Cell x={0} y={2} bottom="solid" left="solid" />
16                         <Cell x={1} y={2} bottom="solid" right="door" />
17                 </Room>
18                 <Room type="teleporter" x={2} y={7}>
19                         <Cell bottom="solid" left="solid" right="door" top="solid" />
20                 </Room>
21                 <Room x={3} y={4}>
22                         <Cell x={0} y={0} left="solid" top="solid" />
23                         <Cell x={1} y={0} right="solid" top="solid" />
24                         <Cell x={0} y={1} left="solid" />
25                         <Cell x={1} y={1} right="solid" />
26                         <Cell x={0} y={2} left="solid" />
27                         <Cell x={1} y={2} right="solid" />
28                         <Cell x={0} y={3} bottom="door" left="door" />
29                         <Cell x={1} y={3} bottom="solid" right="solid" />
30                 </Room>
31                 <Room x={2} y={8}>
32                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
33                         <Cell x={1} y={0} bottom="solid" top="door" />
34                         <Cell x={2} y={0} bottom="solid" top="solid" />
35                         <Cell x={3} y={0} bottom="door" top="solid" />
36                         <Cell x={4} y={0} bottom="solid" right="door" top="solid" />
37                 </Room>
38                 <Room x={7} y={8}>
39                         <Cell x={0} y={0} left="door" top="solid" />
40                         <Cell x={1} y={0} right="door" top="solid" />
41                         <Cell x={0} y={1} bottom="solid" left="door" />
42                         <Cell x={1} y={1} bottom="solid" right="door" />
43                 </Room>
44                 <Room type="transition left" x={6} y={9}>
45                         <Cell bottom="solid" left="door" right="door" top="solid" />
46                 </Room>
47                 <Room type="save" x={9} y={9}>
48                         <Cell bottom="solid" left="door" right="solid" top="solid" />
49                 </Room>
50                 <Room x={9} y={8}>
51                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
52                         <Cell x={1} y={0} bottom="solid" top="solid" />
53                         <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
54                 </Room>
55                 <Room x={12} y={3}>
56                         <Cell x={0} y={0} left="solid" top="solid" />
57                         <Cell x={1} y={0} right="solid" top="door" />
58                         <Cell x={0} y={1} left="solid" />
59                         <Cell x={1} y={1} right="solid" />
60                         <Cell x={0} y={2} left="solid" />
61                         <Cell x={1} y={2} right="solid" />
62                         <Cell x={0} y={3} left="solid" />
63                         <Cell x={1} y={3} right="solid" />
64                         <Cell x={0} y={4} left="solid" />
65                         <Cell x={1} y={4} right="solid" />
66                         <Cell x={0} y={5} bottom="solid" left="door" />
67                         <Cell x={1} y={5} bottom="solid" right="door" />
68                 </Room>
69                 <Room type="transition left" x={12} y={2}>
70                         <Cell bottom="solid" left="door" right="door" top="solid" />
71                 </Room>
72                 <Room x={13} y={2}>
73                         <Cell bottom="door" left="door" right="solid" top="solid" />
74                 </Room>
75                 <Room x={14} y={8}>
76                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
77                         <Cell x={1} y={0} bottom="solid" right="door" top="solid" />
78                 </Room>
79                 <Room type="secret" x={15} y={9}>
80                         <Cell bottom="solid" left="solid" right="door" top="solid" />
81                 </Room>
82                 <Room x={16} y={8}>
83                         <Cell x={0} y={0} left="door" right="door" top="door" />
84                         <Cell x={0} y={1} bottom="solid" left="door" right="door" />
85                 </Room>
86                 <Room type="save" x={17} y={8}>
87                         <Cell bottom="solid" left="door" right="solid" top="solid" />
88                 </Room>
89                 <Room x={17} y={9}>
90                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
91                         <Cell x={1} y={0} bottom="solid" top="solid" />
92                         <Cell x={2} y={0} bottom="solid" top="solid" />
93                         <Cell x={3} y={0} bottom="solid" top="door" />
94                         <Cell x={4} y={0} bottom="solid" right="door" top="solid" />
95                 </Room>
96                 <Room type="transition right" x={22} y={9}>
97                         <Cell bottom="solid" left="door" right="door" top="solid" />
98                 </Room>
99                 <Room x={20} y={7}>
100                         <Cell x={0} y={0} left="solid" right="door" top="solid" />
101                         <Cell x={0} y={1} bottom="door" left="solid" right="solid" />
102                 </Room>
103                 <Room x={21} y={7}>
104                         <Cell bottom="solid" left="door" right="door" top="solid" />
105                 </Room>
106                 <Room type="transition right" x={22} y={7}>
107                         <Cell bottom="solid" left="door" right="door" top="solid" />
108                 </Room>
109                 <Room x={16} y={3}>
110                         <Cell x={0} y={0} left="solid" right="door" top="solid" />
111                         <Cell x={0} y={1} left="solid" right="solid" />
112                         <Cell x={0} y={2} left="solid" right="solid" />
113                         <Cell x={0} y={3} left="solid" right="solid" />
114                         <Cell x={0} y={4} bottom="door" left="solid" right="solid" />
115                 </Room>
116                 <Room x={17} y={3}>
117                         <Cell bottom="solid" left="door" right="door" top="solid" />
118                 </Room>
119                 <Room x={18} y={2}>
120                         <Cell x={0} y={0} left="solid" top="door" />
121                         <Cell x={1} y={0} top="solid" />
122                         <Cell x={2} y={0} right="door" top="solid" />
123                         <Cell x={0} y={1} bottom="solid" left="door" />
124                         <Cell x={1} y={1} bottom="solid" />
125                         <Cell x={2} y={1} bottom="solid" right="door" />
126                 </Room>
127                 <Room x={18} y={1}>
128                         <Cell bottom="door" left="solid" right="door" top="solid" />
129                 </Room>
130                 <Room type="transition right" x={19} y={1}>
131                         <Cell bottom="solid" left="door" right="door" top="solid" />
132                 </Room>
133                 <Room x={21} y={2}>
134                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
135                         <Cell x={1} y={0} bottom="solid" top="solid" />
136                         <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
137                 </Room>
138                 <Room x={21} y={3}>
139                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
140                         <Cell x={1} y={0} bottom="solid" top="solid" />
141                         <Cell x={2} y={0} bottom="solid" top="solid" />
142                         <Cell x={3} y={0} bottom="solid" top="solid" />
143                         <Cell x={4} y={0} bottom="solid" top="solid" />
144                         <Cell x={5} y={0} bottom="solid" top="solid" />
145                         <Cell x={6} y={0} bottom="solid" right="door" top="solid" />
146                 </Room>
147                 <Room x={24} y={1}>
148                         <Cell x={0} y={0} left="solid" top="solid" />
149                         <Cell x={1} y={0} top="solid" />
150                         <Cell x={2} y={0} right="door" top="solid" />
151                         <Cell x={0} y={1} bottom="solid" left="door" />
152                         <Cell x={1} y={1} bottom="solid" />
153                         <Cell x={2} y={1} bottom="solid" right="door" />
154                 </Room>
155                 <Room x={27} y={1}>
156                         <Cell bottom="solid" left="door" right="solid" top="solid" />
157                 </Room>
158                 <Room x={27} y={2}>
159                         <Cell bottom="solid" left="door" right="solid" top="solid" />
160                 </Room>
161                 <Room x={28} y={1}>
162                         <Cell x={0} y={0} left="solid" top="solid" />
163                         <Cell x={1} y={0} right="solid" top="door" />
164                         <Cell x={0} y={1} left="solid" />
165                         <Cell x={1} y={1} right="solid" />
166                         <Cell x={0} y={2} bottom="solid" left="door" />
167                         <Cell x={1} y={2} bottom="solid" right="door" />
168                 </Room>
169                 <Room type="transition left" x={28} y={0}>
170                         <Cell bottom="solid" left="door" right="door" top="solid" />
171                 </Room>
172                 <Room x={29} y={0}>
173                         <Cell bottom="door" left="door" right="solid" top="solid" />
174                 </Room>
175                 <Room x={30} y={3}>
176                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
177                         <Cell x={1} y={0} bottom="solid" top="solid" />
178                         <Cell x={2} y={0} bottom="solid" top="solid" />
179                         <Cell x={3} y={0} bottom="solid" top="solid" />
180                         <Cell x={4} y={0} bottom="solid" right="door" top="solid" />
181                 </Room>
182                 <Room x={35} y={2}>
183                         <Cell x={0} y={0} left="solid" right="door" top="solid" />
184                         <Cell x={0} y={1} bottom="solid" left="door" right="door" />
185                 </Room>
186                 <Room type="transition right" x={36} y={2}>
187                         <Cell bottom="solid" left="door" right="door" top="solid" />
188                 </Room>
189                 <Room x={36} y={3}>
190                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
191                         <Cell x={1} y={0} bottom="solid" top="solid" />
192                         <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
193                 </Room>
194                 <Room x={39} y={3}>
195                         <Cell x={0} y={0} left="door" right="door" top="solid" />
196                         <Cell x={0} y={1} bottom="solid" left="door" right="door" />
197                 </Room>
198                 <Room type="save" x={40} y={3}>
199                         <Cell bottom="solid" left="door" right="solid" top="solid" />
200                 </Room>
201                 <Room x={40} y={4}>
202                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
203                         <Cell x={1} y={0} bottom="solid" right="door" top="solid" />
204                 </Room>
205                 <Room type="transition right" x={42} y={4}>
206                         <Cell bottom="solid" left="door" right="door" top="solid" />
207                 </Room>
208                 <Room x={37} y={4}>
209                         <Cell x={0} y={0} left="solid" top="solid" />
210                         <Cell x={1} y={0} right="door" top="solid" />
211                         <Cell x={0} y={1} bottom="solid" left="door" />
212                         <Cell x={1} y={1} bottom="solid" right="door" />
213                 </Room>
214                 <Room x={39} y={5}>
215                         <Cell bottom="solid" left="door" right="solid" top="solid" />
216                 </Room>
217                 <Room x={34} y={5}>
218                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
219                         <Cell x={1} y={0} bottom="solid" top="solid" />
220                         <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
221                 </Room>
222                 <Room x={33} y={5}>
223                         <Cell bottom="solid" left="solid" right="door" top="solid" />
224                 </Room>
225         </Region>;
226
227 CastleCorridor.propTypes = {
228         x: PropTypes.number,
229         y: PropTypes.number,
230 };
231
232 export default CastleCorridor;