Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: f1a56a6cb166b20e3f40f8a548bf102ed534babf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
<?xml version="1.0" standalone="no"?>
<svg viewBox="-150 -150 600 800" xmlns="http://www.w3.org/2000/svg">
  <link xmlns="http://www.w3.org/1999/xhtml" rel="stylesheet" href="http://localhost:8080/assets/css/map.css" type="text/css" />
  <style>
    #image-maps image {
      transform: none;
    }

    g[data-edge="north"] { --i: -2; }
    g[data-edge="south"] { --i: 78; }
  </style>
  <defs>
    <polygon id="hex" points="0,10 8.66,5 8.66,-5 0,-10 -8.66,-5 -8.66,5"/>

    <circle id="counter-base" cx="0" cy="0" r="5"/>

    <g id="t-1" class="troop-counter-template"><use href="#counter-base"/><text>1</text></g>
    <g id="t-2" class="troop-counter-template"><use href="#counter-base"/><text>2</text></g>
    <g id="t-3" class="troop-counter-template"><use href="#counter-base"/><text>3</text></g>
    <g id="t-4" class="troop-counter-template"><use href="#counter-base"/><text>4</text></g>
    <g id="t-5" class="troop-counter-template"><use href="#counter-base"/><text>5</text></g>
    <g id="t-6" class="troop-counter-template"><use href="#counter-base"/><text>6</text></g>
    <g id="t-7" class="troop-counter-template"><use href="#counter-base"/><text>7</text></g>

    <image id="counter-prone" href="counter_prone.jpg" width="10"/>
    <image id="counter-grenade" href="counter_grenade.jpg" width="10"/>

    <g id="tree">
      <circle class="branches" r="6.5" />
      <circle class="trunk" r="2" />
    </g>

    <path id="bush" d="m -4.8419646,1.6815712 c -0.2224,-0.58797 0.0373,-1.22438 -0.11465,-1.82718 -0.13335,-0.57348 -0.0486,-1.19322 0.31662,-1.6677 0.37485,-0.58981 0.9292504,-1.02199 1.5203804,-1.37775 0.37791,-0.29058 0.8322,-0.69438 1.3447,-0.48093 0.52883,0.22124 1.11777002,0.36526 1.69168002,0.27538 0.45164,-0.13122 0.78493,-0.50193 1.10890998,-0.82213 0.23823,-0.4706 0.79876,-0.76529 1.26021,-0.37753 0.75174,0.33698 1.53457,0.94104 1.60186,1.82553 0.009,0.47845 0.33305,0.83858 0.6865,1.11902 0.3949,0.43049 0.5194497,1.08616 0.39622,1.64816 -0.12486,0.51765 -0.59592,0.79391 -1.00538,1.0662 -0.3993,0.35161 -0.92629,0.72761 -0.88679,1.32791 0.0351,0.43819 -0.044,0.93411 -0.4491,1.18369 -0.75886,0.59794 -1.65352998,1.04869 -2.62829997769,1.12983 C -0.59642418,4.8046512 -1.2461242,4.8453312 -1.7811342,4.5051412 c -0.38949,-0.19045 -0.66499,-0.546 -0.75306,-0.96928 -0.19955,-0.51044 -0.67924,-0.93234 -1.24126,-0.95844 -0.4601204,-0.10269 -0.8649404,-0.47575 -1.0665104,-0.89585 z"/>
  </defs>

  <rect id="background"/>

  <g id="image-maps">
    <image id="map2" class="map-scans" href="scans/map2.jpg" width="2284" height="1518"/>
    <image class="map-scans" href="row.jpg" width="2284" height="55" y="1505" />
    <image id="map1" class="map-scans" href="scans/map1.jpg" width="2284" height="1518" y="1565"/>
    <image class="map-scans" href="row.jpg" width="2284" height="55" y="3065" />
    <image id="map3" class="map-scans" href="scans/map3.jpg" width="2284" height="1518" y="3125"/>
  </g>

  <g class="gameboard">
    <g id="terrain">
      <use x="251" y="524" href="#tree"/>
      <use x="237.75" y="531.25" href="#tree"/>
      <use x="268.5" y="523.75" href="#tree"/>
      <use x="290" y="516" href="#tree"/>
      <use x="302.75" y="523.75" href="#tree"/>
      <use x="277.25" y="538.75" href="#tree"/>
      <use x="298.5" y="546.25" href="#tree"/>
      <use x="320.25" y="554" href="#tree"/>
      <use x="246.75" y="561" href="#tree"/>
      <use x="273" y="561.25" href="#tree"/>
      <use x="255.25" y="575.75" href="#tree"/>
      <use x="289.75" y="576.25" href="#tree"/>
      <use x="237.75" y="590.25" href="#tree"/>
      <use x="272.5" y="590.75" href="#tree"/>
      <use x="307" y="590.75" href="#tree"/>
      <use x="272.75" y="606" href="#tree"/>
      <use x="298.5" y="605.5" href="#tree"/>
      <use x="238.5" y="621.5" href="#tree"/>
      <use x="264.25" y="621" href="#tree"/>
      <use x="315.5" y="620.75" href="#tree"/>

      <use style="transform: translate(245px, 514px) rotate(28deg)" href="#bush"/>
      <use style="transform: translate(243.5px, 542px) rotate(-145deg)" href="#bush"/>
      <use style="transform: translate(278px, 513px) rotate(110deg)" href="#bush"/>
      <use style="transform: translate(308.5px, 513.5px) rotate(-140deg)" href="#bush"/>
      <use style="transform: translate(317.5px, 520.75px) rotate(110deg)" href="#bush"/>
      <use style="transform: translate(324.5px, 531px) rotate(-150deg)" href="#bush"/>
      <use style="transform: translate(311.5px, 543.5px) rotate(100deg)" href="#bush"/>
      <use style="transform: translate(240.5px, 571.5px) rotate(-110deg)" href="#bush"/>
      <use style="transform: translate(260.25px, 561px) rotate(165deg)" href="#bush"/>
      <use style="transform: translate(312.5px, 562.75px) rotate(-175deg)" href="#bush"/>
      <use style="transform: translate(325px, 574.5px) rotate(110deg)" href="#bush"/>
      <use style="transform: translate(268.25px, 578.5px) rotate(-130deg)" href="#bush"/>
      <use style="transform: translate(277.25px, 572.75px) rotate(-70deg)" href="#bush"/>
      <use style="transform: translate(308.75px, 573.5px) rotate(-80deg)" href="#bush"/>
      <use style="transform: translate(318.5px, 587px) rotate(120deg)" href="#bush"/>
      <use style="transform: translate(234px, 605.25px) rotate(170deg)" href="#bush"/>
      <use style="transform: translate(244.25px, 600.5px) rotate(145deg)" href="#bush"/>
      <use style="transform: translate(255px, 605.5px) rotate(-170deg)" href="#bush"/>
      <use style="transform: translate(259.5px, 592.75px) rotate(100deg)" href="#bush"/>
      <use style="transform: translate(285px, 615px) rotate(0deg)" href="#bush"/>
      <use style="transform: translate(295.5px, 629.25px) rotate(0deg)" href="#bush"/>
      <use style="transform: translate(303px, 620px) rotate(0deg)" href="#bush"/>
      <use style="transform: translate(311.5px, 605px) rotate(-70deg)" href="#bush"/>
    </g>
    <g id="firing-arcs">
      <g id="shapes"/>
      <g id="lines"/>
    </g>
    <g class="start-locations">
      <g data-edge="north">
        <g data-x="13">
          <g class="counter" data-allegiance="attacker" data-number="1"><use href="#t-1"/></g>
        </g>
        <g data-x="14">
          <g class="counter" data-allegiance="attacker" data-number="2"><use href="#t-2"/></g>
        </g>
        <g data-x="15">
          <g class="counter" data-allegiance="attacker" data-number="3"><use href="#t-3"/></g>
        </g>
        <g data-x="16">
          <g class="counter" data-allegiance="attacker" data-number="4"><use href="#t-4"/></g>
        </g>
        <g data-x="17">
          <g class="counter" data-allegiance="attacker" data-number="5"><use href="#t-5"/></g>
        </g>
        <g data-x="18">
          <g class="counter" data-allegiance="attacker" data-number="6"><use href="#t-6"/></g>
        </g>
        <g data-x="19">
          <g class="counter" data-allegiance="attacker" data-number="7"><use href="#t-7"/></g>
        </g>
      </g>
      <g data-edge="south">
        <g data-x="13">
          <g class="counter" data-allegiance="defender" data-number="1"><use href="#t-1"/></g>
        </g>
        <g data-x="14">
          <g class="counter" data-allegiance="defender" data-number="2"><use href="#t-2"/></g>
        </g>
        <g data-x="15">
          <g class="counter" data-allegiance="defender" data-number="3"><use href="#t-3"/></g>
        </g>
        <g data-x="16">
          <g class="counter" data-allegiance="defender" data-number="4"><use href="#t-4"/></g>
        </g>
        <g data-x="17">
          <g class="counter" data-allegiance="defender" data-number="5"><use href="#t-5"/></g>
        </g>
        <g data-x="18">
          <g class="counter" data-allegiance="defender" data-number="6"><use href="#t-6"/></g>
        </g>
        <g data-x="19">
          <g class="counter" data-allegiance="defender" data-number="7"><use href="#t-7"/></g>
        </g>
      </g>
    </g>
    <g class="grid"/>
  </g>
  <script data-cols="33" data-rows="77" href="http://localhost:8080/map.js"/>
</svg>