Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
blob: 171e2c9d64b3b37195c99c9c5dfdb6fda33e2d97 (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
<?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="../css/map.css" type="text/css"/>
  <style>
    #image-maps image {
      transform: translate(-10px, 0px);
    }

    g[data-edge="north"] { --i: -2; }
    g[data-edge="south"] { --i: 26; }
  </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"/>
  </defs>

  <rect id="background"/>

  <g id="image-maps">
    <image id="map4" class="map-scans" href="scans/map4.jpg" width="2284" height="1518"/>
    <image id="map4" class="map-scans" href="column.jpg" width="24" height="1518" x="2268"/>
  </g>

  <g class="gameboard">
    <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="25"></script>
</svg>