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