index : btroops | |
Virtual board game-aid for BattleTroops, an infantry combat simulator wargame published by FASA in 1989. |
aboutsummaryrefslogtreecommitdiff |
diff options
Diffstat (limited to 'public')
-rw-r--r-- | public/radial.html | 128 |
1 files changed, 79 insertions, 49 deletions
diff --git a/public/radial.html b/public/radial.html index e1dec38..a654979 100644 --- a/public/radial.html +++ b/public/radial.html @@ -23,6 +23,12 @@ /* display: none; */ } + use[href="#hex"] { + stroke: #666; + fill: wheat; + /* fill: url(#asterisk); */ + } + .elevation-basement { fill: lightgray; display: none; @@ -30,18 +36,15 @@ .elevation-1 { /* filter: blur(.5px); */ - /* opacity: 1; */ + /* opacity: 0.5; */ display: none; } - .buildings .elevation-1, - .building .elevation-1 { - /* display: none; */ - fill: lightgreen; - } + .elevation-1 use[href="#hex"] { + /* fill: green; */ + } .elevation-2 { - /* fill: rgb(240, 216, 172); */ opacity: 0.5; /* display: none; */ @@ -55,6 +58,12 @@ display: none; } + .buildings .elevation-1, + .building .elevation-1 { + /* display: none; */ + fill: lightgreen; + } + .building .doors { display: inline; fill: none; @@ -87,44 +96,42 @@ stroke-linecap: square; } - .building.view-elevation-roof .doors, - .building.view-elevation-roof .inner-wall, - .building.view-elevation-roof .outer-wall { + .view-elevation-roof .doors, + .view-elevation-roof .inner-wall, + .view-elevation-roof .outer-wall { display: none; } - .building .elevation-1 { - display: none; + .building .elevation-1 use { + fill: green; } - .building.view-elevation-roof .floor { + .view-elevation-roof .floor { fill: darkgray; } - .building.view-elevation-1 .elevation-1 { - display: inline; + .building .elevation-2 { + display: none; } - .building.view-elevation-2 .elevation-2 { + .view-elevation-1 .elevation-1 { display: inline; } - .building.view-elevation-roof .elevation-roof { + .view-elevation-2 .elevation-2 { display: inline; } - .building.view-elevation-basement .elevation-basement { + .view-elevation-roof .elevation-roof { display: inline; } - .building.view-elevation-basement .doors { - display: none; + .view-elevation-basement .elevation-basement { + display: inline; } - use[href="#hex"] { - stroke: #666; - fill: wheat; - /* fill: url(#asterisk); */ + .view-elevation-basement .doors { + display: none; } .building [class*="elevation"] use { @@ -136,7 +143,6 @@ /* display: none; */ /* opacity: 0.2 */ } - </style> </head> @@ -157,35 +163,59 @@ <use y="-15" x="15" transform="rotate(-60, 15, -15)" href="#ast-line" /> <use y="15" x="-15" transform="rotate(-60, -15, 15)" href="#ast-line" /> </pattern> - </defs> - <g id="building1" style="display: none" class="building view-elevation-1"> - <g transform="translate(-60.62, 105)"> - <path class="floor" d="M -38.969999,-67.499999 H 38.969999 V 67.499999 h -77.939998 z" /> - <path class="outer-wall" - d="m 38.969998,-7.500001 h -12.99 v 12.5 m -21.6499995,32.5 H 38.969998 m -34.6399995,30 v -60 h -8.66 v -45 m -8.6600005,105 v -45 h -25.979997 m 0,-89.999998 H 38.969999 V 67.499999 h -77.939998 z" /> - <path class="inner-wall" - d="m 38.969998,-7.500001 h -12.99 v 12.5 m -21.6499995,32.5 H 38.969998 m -34.6399995,30 v -60 h -8.66 v -45 m -8.6600005,105 v -45 h -25.979997 m 0,-89.999998 H 38.969999 V 67.499999 h -77.939998 z" /> + <g class="building2"> + <g data-grid-footprint="0,0,0:1,0,-1:-1,0,1:1,-1,0:-1,1,0:0,1,-1:0,-1,1:2,0,-2:2,-1,-1:1,1,-2:-2,0,2:-2,1,1:-1,-1,2:2,-2,0:1,-2,1:-2,2,0:-1,2,-1:0,2,-2:0,-2,2:3,-2,-1:1,2,-3:-3,2,1:-1,-2,3:3,-3,0:2,-3,1:1,-3,2:-3,3,0:-2,3,-1:-1,3,-2:0,3,-3:0,-3,3:4,-4,0:3,-4,1:2,-4,2:1,-4,3:-4,4,0:-3,4,-1:-2,4,-2:-1,4,-3:0,4,-4:0,-4,4:3,0,-3:2,1,-3:3,-1,-2:2,2,-4:1,3,-4:-3,0,3:-2,-1,3:-3,1,2:-4,2,2:-4,3,1"> + <path id="building2-floor" class="floor" + d="m 38.786985,67.5 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> + <path id="building2-outer-wall" class="outer-wall" + d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> + <path id="building2-inner-wall" class="inner-wall" + d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> + <path id="building2-doors" class="doors" + d="m 3.698745,-67.5 h 9.55648 m 7.76351,30 h 9.55648 M -4.9612546,67.5 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648 m 33.74353,-75 h 9.55648 m -35.53648,30 h 9.55648 m 7.7635204,105 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648" /> + </g> </g> - </g> + </defs> - <g id="building2" class="building view-elevation-1"> - <!-- <g transform="translate(-181.86, 105)"> --> - <g> - <path class="floor" - d="m 38.786985,67.5 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> - <path class="outer-wall" - d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> - <path class="inner-wall" - d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> - <path class="doors" - d="m 3.698745,-67.5 h 9.55648 m 7.76351,30 h 9.55648 M -4.9612546,67.5 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648 m 33.74353,-75 h 9.55648 m -35.53648,30 h 9.55648 m 7.7635204,105 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648" /> + <g class="gameboard view-elevation-1 view-elevation-2"> + <!-- <g class="grid"> --> + <!-- <g id="mapsheet2"> + <g class="grid"></g> + <g class="building building2" data-placement="7,7,-14"></g> + </g> + <g id="mapsheet3"> + <g class="grid"></g> + <g class="building building2" data-placement="0,0,0"></g> + </g> --> + <!-- <g id="mapsheet1" transform="translate(600)"></g> --> + <!-- <g id="mapsheet2" transform="translate(600, -394)"></g> --> + <!-- <g id="mapsheet3" transform="translate(600, 394)"></g> --> + <!-- </g> --> + + <!-- <g id="building1" style="display: none" class="building view-elevation-1"> + <g transform="translate(-60.62, 105)"> + <path class="floor" d="M -38.969999,-67.499999 H 38.969999 V 67.499999 h -77.939998 z" /> + <path class="outer-wall" + d="m 38.969998,-7.500001 h -12.99 v 12.5 m -21.6499995,32.5 H 38.969998 m -34.6399995,30 v -60 h -8.66 v -45 m -8.6600005,105 v -45 h -25.979997 m 0,-89.999998 H 38.969999 V 67.499999 h -77.939998 z" /> + <path class="inner-wall" + d="m 38.969998,-7.500001 h -12.99 v 12.5 m -21.6499995,32.5 H 38.969998 m -34.6399995,30 v -60 h -8.66 v -45 m -8.6600005,105 v -45 h -25.979997 m 0,-89.999998 H 38.969999 V 67.499999 h -77.939998 z" /> + </g> </g> - </g> - <!-- <g id="mapsheet1" transform="translate(600)"></g> - <g id="mapsheet2" transform="translate(600, -394)"></g> - <g id="mapsheet3" transform="translate(600, 394)"></g> --> + <g id="building2" style="display: none;" class="building"> + <g data-grid-footprint="0,0,0:1,0,-1:-1,0,1:1,-1,0:-1,1,0:0,1,-1:0,-1,1:2,0,-2:2,-1,-1:1,1,-2:-2,0,2:-2,1,1:-1,-1,2:2,-2,0:1,-2,1:-2,2,0:-1,2,-1:0,2,-2:0,-2,2:3,-2,-1:1,2,-3:-3,2,1:-1,-2,3:3,-3,0:2,-3,1:1,-3,2:-3,3,0:-2,3,-1:-1,3,-2:0,3,-3:0,-3,3:4,-4,0:3,-4,1:2,-4,2:1,-4,3:-4,4,0:-3,4,-1:-2,4,-2:-1,4,-3:0,4,-4:0,-4,4:3,0,-3:2,1,-3:3,-1,-2:2,2,-4:1,3,-4:-3,0,3:-2,-1,3:-3,1,2:-4,2,2:-4,3,1"> + <path class="floor" + d="m 38.786985,67.5 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> + <path class="outer-wall" + d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> + <path class="inner-wall" + d="m -21.833015,67.5 v -60 m 17.3200004,-75 v 30 M 17.136985,15 4.146985,7.5 m 51.96,30 -12.99,-7.5 m -38.97,-67.5 v 45 h -60.62 m 17.32,-45 h 77.94 m -69.28,105 h 69.28 l 17.32,-30 v -45 l -17.32,-30 v -30 h -77.94 v 30 l -17.32,30 v 45 l 17.32,30 z" /> + <path class="doors" + d="m 3.698745,-67.5 h 9.55648 m 7.76351,30 h 9.55648 M -4.9612546,67.5 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648 m 33.74353,-75 h 9.55648 m -35.53648,30 h 9.55648 m 7.7635204,105 H 4.595225 m -18.71725,-60 h 9.5564804 m -35.0357204,0 h 9.55648" /> + </g> + </g> --> + </g> </svg> <script src="radial.js"></script> </body> |