]> git.localhorst.tv Git - alttp.git/blob - resources/js/components/aos-tracker/Arena.js
add basic map
[alttp.git] / resources / js / components / aos-tracker / Arena.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 Arena = ({ x, y }) =>
9         <Region name="arena" x={x} y={y}>
10                 <Room x={2} y={0}>
11                         <Cell x={0} y={0} left="solid" top="solid" />
12                         <Cell x={1} y={0} right="door" top="solid" />
13                         <Cell x={0} y={1} left="solid" />
14                         <Cell x={1} y={1} right="door" />
15                         <Cell x={0} y={2} bottom="door" left="solid" />
16                         <Cell x={1} y={2} bottom="solid" right="door" />
17                 </Room>
18                 <Room x={4} y={0}>
19                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
20                         <Cell x={1} y={0} bottom="solid" top="solid" />
21                         <Cell x={2} y={0} bottom="solid" top="solid" />
22                         <Cell x={3} y={0} bottom="solid" right="solid" top="solid" />
23                 </Room>
24                 <Room x={4} y={1}>
25                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
26                         <Cell x={1} y={0} bottom="solid" top="solid" />
27                         <Cell x={2} y={0} bottom="solid" top="solid" />
28                         <Cell x={3} y={0} bottom="solid" right="door" top="solid" />
29                 </Room>
30                 <Room x={4} y={2}>
31                         <Cell bottom="solid" left="door" right="solid" top="solid" />
32                 </Room>
33                 <Room x={8} y={0}>
34                         <Cell x={0} y={0} left="solid" right="door" top="solid" />
35                         <Cell x={0} y={1} left="door" right="solid" />
36                         <Cell x={0} y={2} bottom="door" left="solid" right="solid" />
37                 </Room>
38                 <Room x={9} y={0}>
39                         <Cell bottom="solid" left="door" right="solid" top="solid" />
40                 </Room>
41                 <Room x={2} y={3}>
42                         <Cell x={0} y={0} bottom="door" left="solid" top="door" />
43                         <Cell x={1} y={0} bottom="solid" top="solid" />
44                         <Cell x={2} y={0} bottom="solid" right="door" top="solid" />
45                 </Room>
46                 <Room x={5} y={3}>
47                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
48                         <Cell x={1} y={0} bottom="solid" right="door" top="solid" />
49                 </Room>
50                 <Room x={7} y={3}>
51                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
52                         <Cell x={1} y={0} bottom="solid" top="door" />
53                         <Cell x={2} y={0} bottom="door" right="door" top="solid" />
54                 </Room>
55                 <Room type="teleporter" x={10} y={3}>
56                         <Cell x={0} y={0} bottom="solid" left="door" right="solid" top="solid" />
57                 </Room>
58                 <Room type="save" x={1} y={4}>
59                         <Cell x={0} y={0} bottom="solid" left="solid" right="door" top="solid" />
60                 </Room>
61                 <Room x={2} y={4}>
62                         <Cell bottom="solid" left="door" right="door" top="door" />
63                 </Room>
64                 <Room x={3} y={4}>
65                         <Cell x={0} y={0} left="door" right="door" top="solid" />
66                         <Cell x={0} y={1} left="solid" right="door" />
67                         <Cell x={0} y={2} bottom="solid" left="door" right="door" />
68                 </Room>
69                 <Room x={4} y={4}>
70                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
71                         <Cell x={1} y={0} bottom="solid" top="solid" />
72                         <Cell x={2} y={0} bottom="solid" top="solid" />
73                         <Cell x={3} y={0} bottom="solid" right="door" top="solid" />
74                 </Room>
75                 <Room x={8} y={4}>
76                         <Cell bottom="solid" left="door" right="solid" top="solid" />
77                 </Room>
78                 <Room x={9} y={4}>
79                         <Cell x={0} y={0} left="solid" top="door" />
80                         <Cell x={1} y={0} right="solid" top="solid" />
81                         <Cell x={0} y={1} left="solid" />
82                         <Cell x={1} y={1} right="solid" />
83                         <Cell x={0} y={2} bottom="solid" left="solid" />
84                         <Cell x={1} y={2} bottom="solid" right="door" />
85                 </Room>
86                 <Room x={4} y={5}>
87                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
88                         <Cell x={1} y={0} bottom="solid" top="solid" />
89                         <Cell x={2} y={0} bottom="solid" top="solid" />
90                         <Cell x={3} y={0} bottom="solid" right="door" top="solid" />
91                 </Room>
92                 <Room x={8} y={5}>
93                         <Cell bottom="solid" left="door" right="solid" top="solid" />
94                 </Room>
95                 <Room x={0} y={6}>
96                         <Cell bottom="solid" left="solid" right="door" top="solid" />
97                 </Room>
98                 <Room x={1} y={6}>
99                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
100                         <Cell x={1} y={0} bottom="solid" right="door" top="solid" />
101                 </Room>
102                 <Room x={4} y={6}>
103                         <Cell x={0} y={0} bottom="solid" left="door" top="solid" />
104                         <Cell x={1} y={0} bottom="solid" top="solid" />
105                         <Cell x={2} y={0} bottom="solid" top="solid" />
106                         <Cell x={3} y={0} bottom="solid" right="door" top="solid" />
107                 </Room>
108                 <Room x={8} y={6}>
109                         <Cell bottom="solid" left="door" right="solid" top="solid" />
110                 </Room>
111                 <Room x={11} y={6}>
112                         <Cell bottom="solid" left="door" right="door" top="solid" />
113                 </Room>
114                 <Room type="transition right" x={12} y={6}>
115                         <Cell bottom="solid" left="door" right="door" top="solid" />
116                 </Room>
117         </Region>;
118
119 Arena.propTypes = {
120         x: PropTypes.number,
121         y: PropTypes.number,
122 };
123
124 export default Arena;