Remove comments
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg viewBox="-200 -150 400 300" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<style>
|
||||
circle, rect {
|
||||
/* fill-opacity: 0.9; */
|
||||
}
|
||||
|
||||
#frames {
|
||||
position: absolute;
|
||||
right: 0px;
|
||||
@@ -15,20 +11,10 @@
|
||||
box-size: border-box;
|
||||
}
|
||||
|
||||
/* div { */
|
||||
/* background-color: maroon; */
|
||||
/* } */
|
||||
|
||||
rect#bg {
|
||||
fill: gray;
|
||||
}
|
||||
|
||||
/* .rotate { */
|
||||
/* transform: rotate(90deg); */
|
||||
/* animation-duration: 1s; */
|
||||
/* animation-name: rotate; */
|
||||
/* } */
|
||||
|
||||
.tank rect {
|
||||
fill: green;
|
||||
transform: translate(-7.5px, -5px);
|
||||
@@ -43,37 +29,21 @@
|
||||
}
|
||||
|
||||
circle.bullet {
|
||||
fill: orangered;
|
||||
fill: yellow;
|
||||
}
|
||||
|
||||
/* @keyframes rotate { */
|
||||
/* from { */
|
||||
/* transform: rotate(0); */
|
||||
/* } */
|
||||
/* to { */
|
||||
/* transform: rotate(90deg); */
|
||||
/* } */
|
||||
/* } */
|
||||
</style>
|
||||
|
||||
<g>
|
||||
<!-- <circle id="pointer" cx="0" cy="0" r="5" fill="red" stroke="maroon"/> -->
|
||||
<rect id="bg" x="-200" y="-150" width="400" height="300"/>
|
||||
|
||||
<g class="hitbox">
|
||||
<g class="tank">
|
||||
<!-- <rect width="15" height="10"/> -->
|
||||
<circle cx="0" cy="0" r="5"/>
|
||||
<line x1="0" y1="0" x2="0" y2="8" stroke="black"/>
|
||||
</g>
|
||||
</g>
|
||||
|
||||
<g id="bullets"></g>
|
||||
|
||||
<!-- <circle id="bullet" cx="0" cy="0" r="1"/> -->
|
||||
|
||||
<!-- <g id="crosshair"> -->
|
||||
<!-- <line x1="-2" y1="0" x2="2" y2="0" stroke="red"/> -->
|
||||
<!-- <line x1="0" y1="-2" x2="0" y2="2" stroke="red"/> -->
|
||||
<!-- </g> -->
|
||||
</g>
|
||||
|
||||
<foreignObject x="-200" y="-150" width="100%" height="100%">
|
||||
@@ -315,12 +285,6 @@
|
||||
const [x, y] = getTranslate(hitbox);
|
||||
fireBullet(x, y);
|
||||
});
|
||||
|
||||
|
||||
// tankTurn.addEventListener("finish", function (e) {
|
||||
// const duration = tankTurn.effect.getComputedTiming().activeDuration;
|
||||
// tankTurn.currentTime = tankTurn.currentTime > 0 ? 0 : duration;
|
||||
// });
|
||||
//]]></script>
|
||||
</svg>
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 8.1 KiB |
Reference in New Issue
Block a user