Data for copying throwing knife to Land once it hits.
authornemo
Sun, 07 Oct 2012 16:44:16 -0400
changeset 7729 c374746bb56e
parent 7728 664738870325
child 7730 2013733f9ca9
Data for copying throwing knife to Land once it hits.
hedgewars/GSHandlers.inc
share/hedgewars/Data/Graphics/knife.png
share/hedgewars/Data/Graphics/knife.svg
--- a/hedgewars/GSHandlers.inc	Sun Oct 07 23:59:55 2012 +0400
+++ b/hedgewars/GSHandlers.inc	Sun Oct 07 16:44:16 2012 -0400
@@ -5243,3 +5243,46 @@
         end;
     end;
 end;
+
+/* Yay. More incomplete code.
+This is the set of postions for the knife.
+Using FlipSurface and copyToXY the knife can be written to the Land at 32 positions.
+0deg
+2,5   (x,y offset)
+25,5  (wXh of clip area)
+2,7   (tip x,y)
+
+11.25deg
+2,15
+24,8
+2,22
+
+22.5deg
+2,27
+23,12
+2,38
+
+33.75deg
+2,43
+21,15
+2,57
+
+45deg
+29,8
+19,19
+29,26
+
+56.25deg
+29,32
+15,21
+29,52
+
+67.5deg
+51,3
+11,23
+51,25
+
+78.75deg
+51,34
+7,24
+51,57    */
Binary file share/hedgewars/Data/Graphics/knife.png has changed
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/share/hedgewars/Data/Graphics/knife.svg	Sun Oct 07 16:44:16 2012 -0400
@@ -0,0 +1,365 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   version="1.1"
+   width="88.075012"
+   height="87.070312"
+   id="svg3752">
+  <defs
+     id="defs3754" />
+  <metadata
+     id="metadata3757">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+        <dc:title></dc:title>
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     transform="translate(-2.1662407,-506.55386)"
+     id="layer1">
+    <path
+       d="M 2.1662407,543.58023 13.199835,541.19373 13.168135,543.54718 z"
+       id="path3402-7-9"
+       style="fill:#929292;fill-opacity:1;stroke:none" />
+    <path
+       d="M 2.1972407,543.59572 13.199835,545.92022 13.190305,543.47379 z"
+       id="path3402-8-4-8"
+       style="fill:#191919;fill-opacity:1;stroke:none" />
+    <path
+       d="M 16.470727,543.54525 13.168845,541.186 13.176945,543.53944 z"
+       id="path3402-9-7-0"
+       style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+    <path
+       d="M 16.387977,543.54414 13.168845,545.91247 13.176945,543.46606 z"
+       id="path3402-8-9-0-1"
+       style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+       transform="matrix(1.1667397,0,0,1.1667424,-8.6954437,341.10327)"
+       id="path4221-8-4"
+       style="fill:none;stroke:#555555;stroke-opacity:1" />
+    <rect
+       width="6.8182015"
+       height="1.4025967"
+       x="15.452051"
+       y="542.81061"
+       id="rect4268-6"
+       style="fill:#555555;fill-opacity:1;stroke:none" />
+    <rect
+       width="6.5705657"
+       height="1.8286022"
+       x="15.834251"
+       y="542.58386"
+       id="rect4219-8-6"
+       style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    <path
+       d="M 2.2582467,558.06679 12.614252,553.5736 13.042291,555.88802 z"
+       id="path3402-7-0-4"
+       style="fill:#929292;fill-opacity:1;stroke:none" />
+    <path
+       d="M 2.2916667,558.07593 13.53634,558.20926 13.049721,555.81172 z"
+       id="path3402-8-4-4-2"
+       style="fill:#191919;fill-opacity:1;stroke:none" />
+    <path
+       d="M 16.281044,555.24182 12.582342,553.57206 13.049421,555.8787 z"
+       id="path3402-9-7-8-5"
+       style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+    <path
+       d="M 16.199674,555.25687 13.50443,558.20772 13.035101,555.80672 z"
+       id="path3402-8-9-0-7-7"
+       style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+       transform="matrix(1.1443211,-0.22762015,0.22761962,1.1443238,-47.895948,361.59938)"
+       id="path4221-8-5-2"
+       style="fill:none;stroke:#555555;stroke-opacity:1" />
+    <rect
+       width="6.8182025"
+       height="1.4025966"
+       x="-93.372536"
+       y="547.01453"
+       transform="matrix(0.98078519,-0.19509076,0.19508988,0.98078537,0,0)"
+       id="rect4268-2-5"
+       style="fill:#555555;fill-opacity:1;stroke:none" />
+    <rect
+       width="6.5705662"
+       height="1.8286021"
+       x="-92.990326"
+       y="546.78778"
+       transform="matrix(0.98078519,-0.19509076,0.19508988,0.98078537,0,0)"
+       id="rect4219-8-3-4"
+       style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    <path
+       d="M 2.2916667,574.18969 11.572105,567.76248 12.443443,569.94892 z"
+       id="path3402-7-0-2-3"
+       style="fill:#929292;fill-opacity:1;stroke:none" />
+    <path
+       d="M 2.3262267,574.19215 13.380841,572.12918 12.435843,569.87263 z"
+       id="path3402-8-4-4-7-8"
+       style="fill:#191919;fill-opacity:1;stroke:none" />
+    <path
+       d="M 15.493896,568.6833 11.540505,567.76719 12.448613,569.93841 z"
+       id="path3402-9-7-8-6-6"
+       style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+    <path
+       d="M 15.417026,568.71394 13.349251,572.13389 12.420533,569.8706 z"
+       id="path3402-8-9-0-7-0-9"
+       style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+       transform="matrix(1.0779269,-0.44649298,0.44649193,1.0779294,-85.227629,391.28198)"
+       id="path4221-8-5-0-7"
+       style="fill:none;stroke:#555555;stroke-opacity:1" />
+    <rect
+       width="6.8182039"
+       height="1.4025962"
+       x="-204.32942"
+       y="530.58929"
+       transform="matrix(0.92387922,-0.3826842,0.38268266,0.92387985,0,0)"
+       id="rect4268-2-0-3"
+       style="fill:#555555;fill-opacity:1;stroke:none" />
+    <rect
+       width="6.5705676"
+       height="1.8286016"
+       x="-203.94722"
+       y="530.36255"
+       transform="matrix(0.92387922,-0.3826842,0.38268266,0.92387985,0,0)"
+       id="rect4219-8-3-3-5"
+       style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    <path
+       d="M 2.2916667,593.46239 10.139897,585.34813 11.421044,587.32256 z"
+       id="path3402-7-0-2-4-6"
+       style="fill:#929292;fill-opacity:1;stroke:none" />
+    <path
+       d="M 2.3260366,593.45804 12.765781,589.27806 11.398714,587.24923 z"
+       id="path3402-8-4-4-7-7-9"
+       style="fill:#191919;fill-opacity:1;stroke:none" />
+    <path
+       d="M 14.165978,585.48614 10.109827,585.35892 11.424074,587.31125 z"
+       id="path3402-9-7-8-6-1-9"
+       style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+    <path
+       d="M 14.096558,585.53119 12.735711,589.28885 11.383294,587.25022 z"
+       id="path3402-8-9-0-7-0-8-8"
+       style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+       transform="matrix(0.97010857,-0.64820734,0.64820582,0.97011085,-119.22942,431.14338)"
+       id="path4221-8-5-0-4-1"
+       style="fill:none;stroke:#555555;stroke-opacity:1" />
+    <rect
+       width="6.8182068"
+       height="1.4025956"
+       x="-314.51828"
+       y="493.94922"
+       transform="matrix(0.83146901,-0.55557113,0.55556933,0.83147022,0,0)"
+       id="rect4268-2-0-7-5"
+       style="fill:#555555;fill-opacity:1;stroke:none" />
+    <rect
+       width="6.5705705"
+       height="1.8286009"
+       x="-314.13605"
+       y="493.72247"
+       transform="matrix(0.83146901,-0.55557113,0.55556933,0.83147022,0,0)"
+       id="rect4219-8-3-3-1-5"
+       style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.550463,562.19555 35.664888,552.70611 37.306615,554.39266 z"
+       id="path3402-7-0-2-4-4-3"
+       style="fill:#929292;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.583333,562.1846 39.007011,556.04823 37.270395,554.32509 z"
+       id="path3402-8-4-4-7-7-7-5"
+       style="fill:#191919;fill-opacity:1;stroke:none" />
+    <path
+       d="M 39.640529,552.056 35.637498,552.72254 37.307365,554.38097 z"
+       id="path3402-9-7-8-6-1-5-3"
+       style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+    <path
+       d="M 39.581239,552.11373 38.979621,556.06467 37.255475,554.32906 z"
+       id="path3402-8-9-0-7-0-8-6-0"
+       style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+       transform="matrix(0.82500952,-0.82501146,0.82500952,0.82501146,-121.30241,426.70312)"
+       id="path4221-8-5-0-4-2-3"
+       style="fill:none;stroke:#555555;stroke-opacity:1" />
+    <rect
+       width="6.8182096"
+       height="1.402595"
+       x="-363.35065"
+       y="417.65759"
+       transform="matrix(0.70710595,-0.70710761,0.70710595,0.70710761,0,0)"
+       id="rect4268-2-0-7-9-2"
+       style="fill:#555555;fill-opacity:1;stroke:none" />
+    <rect
+       width="6.5705733"
+       height="1.8286"
+       x="-362.96844"
+       y="417.43085"
+       transform="matrix(0.70710595,-0.70710761,0.70710595,0.70710761,0,0)"
+       id="rect4219-8-3-3-1-4-5"
+       style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.583333,588.28782 33.728983,577.78784 35.668188,579.12171 z"
+       id="path3402-7-0-2-4-4-4-4"
+       style="fill:#929292;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.613432,588.27065 37.658894,580.41373 35.619478,579.06249 z"
+       id="path3402-8-4-4-7-7-7-1-2"
+       style="fill:#191919;fill-opacity:1;stroke:none" />
+    <path
+       d="M 37.501404,576.37462 33.705323,577.80932 35.666638,579.11009 z"
+       id="path3402-9-7-8-6-1-5-9-7"
+       style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+    <path
+       d="M 37.454504,576.44281 37.635244,580.4352 35.605618,579.0693 z"
+       id="path3402-8-9-0-7-0-8-6-7-97"
+       style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+       transform="matrix(0.64820582,-0.97011085,0.97010857,0.64820734,-144.80413,484.82884)"
+       id="path4221-8-5-0-4-2-8-3"
+       style="fill:none;stroke:#555555;stroke-opacity:1" />
+    <rect
+       width="6.818213"
+       height="1.4025944"
+       x="-459.42163"
+       y="350.66275"
+       transform="matrix(0.55556933,-0.83147022,0.83146901,0.55557113,0,0)"
+       id="rect4268-2-0-7-9-0-6"
+       style="fill:#555555;fill-opacity:1;stroke:none" />
+    <rect
+       width="6.5705762"
+       height="1.8285992"
+       x="-459.0394"
+       y="350.436"
+       transform="matrix(0.55556933,-0.83147022,0.83146901,0.55557113,0,0)"
+       id="rect4219-8-3-3-1-4-3-1"
+       style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    <path
+       d="M 51.041667,561.98433 53.059212,550.87732 55.221377,551.80724 z"
+       id="path3402-7-0-2-4-4-4-9-2"
+       style="fill:#929292;fill-opacity:1;stroke:none" />
+    <path
+       d="M 51.067837,561.96162 57.425902,552.68606 55.162067,551.75866 z"
+       id="path3402-8-4-4-7-7-7-1-5-2"
+       style="fill:#191919;fill-opacity:1;stroke:none" />
+    <path
+       d="M 56.483444,548.7553 53.040202,550.90299 55.217597,551.79614 z"
+       id="path3402-9-7-8-6-1-5-9-4-07"
+       style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+    <path
+       d="M 56.450754,548.83133 57.406892,552.71174 55.149797,551.76805 z"
+       id="path3402-8-9-0-7-0-8-6-7-9-9"
+       style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+       transform="matrix(0.44649193,-1.0779294,1.0779269,0.44649298,-140.17881,494.53466)"
+       id="path4221-8-5-0-4-2-8-7-4"
+       style="fill:none;stroke:#555555;stroke-opacity:1" />
+    <rect
+       width="6.8182154"
+       height="1.4025939"
+       x="-486.38693"
+       y="261.44843"
+       transform="matrix(0.38268266,-0.92387985,0.92387922,0.3826842,0,0)"
+       id="rect4268-2-0-7-9-0-7-5"
+       style="fill:#555555;fill-opacity:1;stroke:none" />
+    <rect
+       width="6.5705786"
+       height="1.8285985"
+       x="-486.00473"
+       y="261.22168"
+       transform="matrix(0.38268266,-0.92387985,0.92387922,0.3826842,0,0)"
+       id="rect4219-8-3-3-1-4-3-2-8"
+       style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    <path
+       d="M 51.243386,593.62418 51.055306,582.33697 53.357341,582.8272 z"
+       id="path3402-7-0-2-4-4-4-9-1-5"
+       style="fill:#929292;fill-opacity:1;stroke:none" />
+    <path
+       d="M 51.264626,593.59679 55.690956,583.25907 53.289691,582.79113 z"
+       id="path3402-8-4-4-7-7-7-1-5-8-1"
+       style="fill:#191919;fill-opacity:1;stroke:none" />
+    <path
+       d="M 53.99975,579.58769 51.041667,582.36586 53.351471,582.81705 z"
+       id="path3402-9-7-8-6-1-5-9-4-0-9"
+       style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+    <path
+       d="M 53.98252,579.66863 55.677316,583.28796 53.279491,582.80273 z"
+       id="path3402-8-9-0-7-0-8-6-7-9-3-1"
+       style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+    <path
+       d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+       transform="matrix(0.22761962,-1.1443238,1.1443211,0.22762015,-149.46159,564.77589)"
+       id="path4221-8-5-0-4-2-8-7-7-4"
+       style="fill:none;stroke:#555555;stroke-opacity:1" />
+    <rect
+       width="6.8182173"
+       height="1.4025935"
+       x="-558.93488"
+       y="165.29926"
+       transform="matrix(0.19508988,-0.98078537,0.98078519,0.19509076,0,0)"
+       id="rect4268-2-0-7-9-0-7-7-5"
+       style="fill:#555555;fill-opacity:1;stroke:none" />
+    <rect
+       width="6.5705805"
+       height="1.828598"
+       x="-558.55267"
+       y="165.07253"
+       transform="matrix(0.19508988,-0.98078537,0.98078519,0.19509076,0,0)"
+       id="rect4219-8-3-3-1-4-3-2-7-6"
+       style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    <g
+       transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,-341.09898,203.76145)"
+       id="g4103">
+      <path
+         d="M 66.125025,519.19379 77.158619,516.80729 77.126919,519.16074 z"
+         id="path3402-7-9-3"
+         style="fill:#929292;fill-opacity:1;stroke:none" />
+      <path
+         d="M 66.156025,519.20928 77.158619,521.53378 77.149089,519.08735 z"
+         id="path3402-8-4-8-8"
+         style="fill:#191919;fill-opacity:1;stroke:none" />
+      <path
+         d="M 80.429511,519.15881 77.127629,516.79956 77.135729,519.153 z"
+         id="path3402-9-7-0-0"
+         style="fill:#4a4a4a;fill-opacity:1;stroke:none" />
+      <path
+         d="M 80.346761,519.1577 77.127629,521.52603 77.135729,519.07962 z"
+         id="path3402-8-9-0-1-0"
+         style="fill:#2d2d2d;fill-opacity:1;stroke:none" />
+      <path
+         d="M 29.37953,173.47063 A 1.2385181,1.1444534 0 1 1 26.902494,173.47063 1.2385181,1.1444534 0 1 1 29.37953,173.47063 z"
+         transform="matrix(1.1667397,0,0,1.1667424,55.263341,316.71683)"
+         id="path4221-8-4-8"
+         style="fill:none;stroke:#555555;stroke-opacity:1" />
+      <rect
+         width="6.8182015"
+         height="1.4025967"
+         x="79.410835"
+         y="518.42419"
+         id="rect4268-6-2"
+         style="fill:#555555;fill-opacity:1;stroke:none" />
+      <rect
+         width="6.5705657"
+         height="1.8286022"
+         x="79.793037"
+         y="518.19745"
+         id="rect4219-8-6-8"
+         style="fill:#0e0e0e;fill-opacity:1;stroke:none" />
+    </g>
+  </g>
+</svg>