Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-06-01 11:31:35 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-06-01 11:31:58 -0700
commite8fae51b32b6ebc4ec4e16338467b7fcc41edd11 (patch)
treebaf01092df986019346c4cc606cce2584577eed5 /public/assets/images/scenario-dragon_hunting.svg
parent9a4fec27daed58272c71e163df7df216a4252127 (diff)
WIP: use scenario template to build scenarios client-side
Diffstat (limited to 'public/assets/images/scenario-dragon_hunting.svg')
-rw-r--r--public/assets/images/scenario-dragon_hunting.svg75
1 files changed, 8 insertions, 67 deletions
diff --git a/public/assets/images/scenario-dragon_hunting.svg b/public/assets/images/scenario-dragon_hunting.svg
index e456f27..878c667 100644
--- a/public/assets/images/scenario-dragon_hunting.svg
+++ b/public/assets/images/scenario-dragon_hunting.svg
@@ -1,69 +1,12 @@
-<?xml version="1.0" standalone="no"?>
-<svg viewBox="-10 -10 200 300" 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>
- g[data-edge="north"] { --i: -2; }
- g[data-edge="south"] { --i: 78; }
-
- #background {
- stroke: #304b75;
- fill: #bacae3;
- }
-
- pattern use {
- stroke: black;
- stroke-width: 0.3px;
- }
-
- .cw-60-deg {
- transform: rotate(60deg);
- }
-
- .ccw-60-deg {
- transform: rotate(-60deg);
- }
- </style>
- <defs>
- <polygon id="hex" points="0,10 8.66,5 8.66,-5 0,-10 -8.66,-5 -8.66,5"/>
-
- <line id="ast-line" x1="-1.2" y1="0" x2="1.2" y2="0"/>
-
- <pattern id="asterisk" viewBox="-8.66 -15 17.32 30" width="17.32" height="30" patternUnits="userSpaceOnUse">
- <use y="-15" href="#ast-line"/>
- <use y="-15" style="transform-origin: 0 -15px;" class="cw-60-deg" href="#ast-line"/>
- <use y="-15" style="transform-origin: 0 -15px;" class="ccw-60-deg" href="#ast-line"/>
- <use y="15" href="#ast-line"/>
- <use y="15" style="transform-origin: 0 15px;" class="cw-60-deg" href="#ast-line"/>
- <use y="15" style="transform-origin: 0 15px;" class="ccw-60-deg" href="#ast-line"/>
-
- <use x="8.66" href="#ast-line"/>
- <use x="8.66" style="transform-origin: 8.66px 0;" class="cw-60-deg" href="#ast-line"/>
- <use x="8.66" style="transform-origin: 8.66px 0;" class="ccw-60-deg" href="#ast-line"/>
- <use x="-8.66" href="#ast-line"/>
- <use x="-8.66" style="transform-origin: -8.66px 0;" class="cw-60-deg" href="#ast-line"/>
- <use x="-8.66" style="transform-origin: -8.66px 0;" class="ccw-60-deg" href="#ast-line"/>
- </pattern>
-
- <image id="counter-prone" href="counter_prone.jpg" width="10"/>
- <image id="counter-grenade" href="counter_grenade.jpg" width="10"/>
- </defs>
-
- <rect id="background"/>
-
+<?xml version="1.0" standalone="yes"?>
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="-10 -10 200 300">
<g class="gameboard">
- <use href="mapsheets.svg#map2"/>
- <use href="mapsheets.svg#map1" style="transform: translate(0, 390.25px);"/>
- <use href="mapsheets.svg#map3" style="transform: translate(0, 780.5px);"/>
-
- <rect id="dots" fill="url(#asterisk)"/>
-
- <g id="firing-arcs">
- <g id="shapes"/>
- <g id="lines"/>
- </g>
+ <use class="mapsheet" href="mapsheets.svg#map2"/>
+ <use class="mapsheet" href="mapsheets.svg#map1" style="transform: translate(0, 390.25px);"/>
+ <use class="mapsheet" href="mapsheets.svg#map3" style="transform: translate(0, 780.5px);"/>
<g class="start-locations" data-attacker-name="liao" data-defender-name="davion">
- <g data-edge="north">
+ <g data-edge="north" style="--i: -2">
<g data-x="13">
<g class="counter" data-allegiance="attacker" data-number="1">
<use class="primary-weapon" href="counters.svg#blazer"/>
@@ -114,7 +57,7 @@
</g>
</g>
</g>
- <g data-edge="south">
+ <g data-edge="south" style="--i: 78">
<g data-x="13">
<g class="counter" data-allegiance="defender" data-number="1">
<use class="primary-weapon" href="#blazer"/>
@@ -166,9 +109,7 @@
</g>
</g>
</g>
-
- <g class="grid"/>
</g>
- <script data-cols="33" data-rows="77" href="../../map.js"/>
+ <script data-cols="33" data-rows="77"/>
</svg>