fix projectile direction

This commit is contained in:
grisel-davy 2020-04-04 00:11:34 -04:00
parent a7a5d7fc0e
commit 6ae0a12010
3 changed files with 191 additions and 73 deletions

View file

@ -25,9 +25,9 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="2.8"
inkscape:cx="-787.46383"
inkscape:cy="200.5935"
inkscape:zoom="1.4"
inkscape:cx="-896.36165"
inkscape:cy="178.40018"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
@ -67,7 +67,7 @@
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#0000b9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect4525"
width="7.9374938"
height="7.9375"
@ -101,7 +101,7 @@
height="7.9375"
width="7.9374938"
id="rect844"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
style="opacity:1;fill:#0000b9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
@ -137,7 +137,7 @@
height="7.9375"
width="7.9374938"
id="rect856"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
style="opacity:1;fill:#0000b9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
@ -146,7 +146,7 @@
height="7.9375"
width="7.9374938"
id="rect862"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
style="opacity:1;fill:#0000b9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
@ -248,7 +248,7 @@
height="7.9375"
width="7.9374938"
id="rect54"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#0000b9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
transform="rotate(45)" />
<rect
inkscape:export-ydpi="96"
@ -271,7 +271,7 @@
inkscape:export-ydpi="96"
transform="rotate(45)" />
<rect
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#0000b9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect60"
width="7.9374938"
height="7.9375"
@ -301,7 +301,7 @@
inkscape:export-ydpi="96"
transform="rotate(45)" />
<rect
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#0000b9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect66"
width="7.9374938"
height="7.9375"
@ -339,7 +339,7 @@
height="7.9375"
width="7.9374938"
id="rect72"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
style="opacity:1;fill:#0000b9;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
@ -417,7 +417,7 @@
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="254.66667"
y="266.02496"
x="-281.78125"
height="10.583325"
width="10.583341"
@ -426,16 +426,16 @@
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="255.98958"
y="267.34787"
x="-280.45831"
height="7.9375"
width="7.9374938"
id="rect102"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
style="opacity:1;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="254.66667"
y="266.02496"
x="-277.8125"
height="1.3229166"
width="2.6458333"
@ -447,16 +447,16 @@
width="10.583341"
height="10.583325"
x="-210.34375"
y="254.66669"
y="266.02496"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect108"
width="7.9374938"
height="7.9375"
x="-209.02083"
y="255.98959"
y="267.34787"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
@ -465,7 +465,7 @@
width="2.6458333"
height="1.3229166"
x="-206.375"
y="263.92706"
y="275.28534"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
@ -474,7 +474,7 @@
width="10.583341"
height="10.583325"
x="-247.38544"
y="254.66667"
y="266.02496"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
@ -483,25 +483,25 @@
width="10.583341"
height="10.583325"
x="-173.30209"
y="254.66666"
y="266.02493"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect116"
width="7.9374938"
height="7.9375"
x="-246.0625"
y="255.98958"
y="267.34787"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect118"
width="7.9374938"
height="7.9375"
x="-171.97916"
y="255.98956"
y="267.34784"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
@ -510,7 +510,7 @@
id="rect120"
width="2.6458333"
height="1.3229166"
x="258.63541"
x="269.99368"
y="236.80208"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
@ -518,7 +518,7 @@
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="171.97917"
x="258.63541"
x="269.99368"
height="1.3229166"
width="2.6458333"
id="rect122"
@ -526,12 +526,12 @@
transform="rotate(90)" />
<rect
transform="rotate(45)"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect124"
width="7.9374938"
height="7.9375"
x="-3.4973354"
y="363.19644"
x="4.5341825"
y="371.22797"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
@ -540,25 +540,25 @@
id="rect126"
width="2.6458333"
height="1.3229166"
x="-0.85152239"
y="361.87354"
x="7.1799955"
y="369.90506"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
transform="rotate(45)"
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="338.87491"
x="20.824186"
y="346.90643"
x="28.855705"
height="7.9375"
width="7.9374938"
id="rect128"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
style="opacity:1;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="-30.084606"
x="341.52075"
y="-38.116123"
x="349.55228"
height="1.3229166"
width="2.6458333"
id="rect130"
@ -568,29 +568,29 @@
transform="rotate(45)"
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="311.97403"
x="47.725075"
y="320.00555"
x="55.756592"
height="7.9375"
width="7.9374938"
id="rect132"
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
style="opacity:1;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
transform="rotate(45)"
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="319.91153"
x="50.370903"
y="327.94305"
x="58.40242"
height="1.3229166"
width="2.6458333"
id="rect134"
style="opacity:1;fill:#ff6600;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
style="opacity:1;fill:#990000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.22474444;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect136"
width="7.9374938"
height="7.9375"
x="-81.85498"
y="-293.71912"
x="-89.886497"
y="-301.75064"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
transform="rotate(-135)" />
@ -600,8 +600,120 @@
id="rect138"
width="2.6458333"
height="1.3229166"
x="-291.07327"
y="72.594566"
x="-299.1048"
y="80.626083"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
inkscape:connector-curvature="0"
id="path1007"
d="m -276.48388,258.63542 a 1.3274933,1.3274933 0 0 0 -1.32749,1.32491 l -0.006,-0.006 0.007,0.0493 a 1.3274933,1.3274933 0 0 0 0.041,0.28935 l 0.21729,1.51988 0.26549,-0.2655 0.2655,0.7965 0.2655,-0.2655 0.2655,1.32749 0.2655,-1.32749 0.2655,0.2655 0.2655,-0.7965 0.26549,0.2655 0.20638,-1.44313 a 1.3274933,1.3274933 0 0 0 0.0648,-0.40706 1.3274933,1.3274933 0 0 0 -1.32749,-1.3275 z"
style="opacity:1;fill:#d40000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
style="opacity:1;fill:#800000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -276.48958,258.90001 a 1.0329675,1.0329675 0 0 0 -1.03297,1.03096 l -0.005,-0.005 0.005,0.0384 a 1.0329675,1.0329675 0 0 0 0.0319,0.22515 l 0.16908,1.18267 0.20659,-0.20659 0.20659,0.61978 0.2066,-0.20659 0.20659,1.03296 0.2066,-1.03296 0.20659,0.20659 0.2066,-0.61978 0.20658,0.20659 0.1606,-1.12294 a 1.0329675,1.0329675 0 0 0 0.0504,-0.31675 1.0329675,1.0329675 0 0 0 -1.03297,-1.03297 z"
id="path1009"
inkscape:connector-curvature="0"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
inkscape:connector-curvature="0"
id="path1061"
d="m -239.08082,261.02377 a 1.3274933,1.3274933 0 0 0 -1.32491,-1.32749 l 0.006,-0.006 -0.0493,0.007 a 1.3274933,1.3274933 0 0 0 -0.28935,0.041 l -1.51988,0.21729 0.2655,0.26549 -0.7965,0.2655 0.2655,0.2655 -1.32749,0.2655 1.32749,0.2655 -0.2655,0.2655 0.7965,0.2655 -0.2655,0.26549 1.44313,0.20638 a 1.3274933,1.3274933 0 0 0 0.40706,0.0648 1.3274933,1.3274933 0 0 0 1.3275,-1.32749 z"
style="opacity:1;fill:#d40000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
inkscape:connector-curvature="0"
id="path1065"
d="m -204.42098,263.4056 a 1.3274933,1.3274933 0 0 1 -1.32749,-1.32491 l -0.006,0.006 0.007,-0.0493 a 1.3274933,1.3274933 0 0 1 0.041,-0.28935 l 0.21729,-1.51988 0.26549,0.2655 0.2655,-0.7965 0.2655,0.2655 0.2655,-1.32749 0.2655,1.32749 0.2655,-0.2655 0.2655,0.7965 0.26549,-0.2655 0.20638,1.44313 a 1.3274933,1.3274933 0 0 1 0.0648,0.40706 1.3274933,1.3274933 0 0 1 -1.32749,1.3275 z"
style="opacity:1;fill:#d40000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
inkscape:connector-curvature="0"
id="path1069"
d="m -171.09058,261.01725 a 1.3274933,1.3274933 0 0 0 1.32491,1.32749 l -0.006,0.006 0.0493,-0.007 a 1.3274933,1.3274933 0 0 0 0.28935,-0.041 l 1.51988,-0.21729 -0.2655,-0.26549 0.7965,-0.2655 -0.2655,-0.2655 1.32749,-0.2655 -1.32749,-0.2655 0.2655,-0.2655 -0.7965,-0.2655 0.2655,-0.26549 -1.44313,-0.20638 a 1.3274933,1.3274933 0 0 0 -0.40706,-0.0648 1.3274933,1.3274933 0 0 0 -1.3275,1.32749 z"
style="opacity:1;fill:#d40000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
inkscape:connector-curvature="0"
id="path1073"
d="m -150.54595,259.33169 a 1.3274933,1.3274933 0 0 0 -0.002,1.87553 h -0.008 l 0.0398,0.0299 a 1.3274933,1.3274933 0 0 0 0.23359,0.17561 l 1.22837,0.92107 -1e-5,-0.37547 0.75095,0.37548 0,-0.37548 1.12641,0.75094 -0.75094,-1.12641 0.37548,0 -0.37548,-0.75095 0.37547,10e-6 -0.87452,-1.16638 a 1.3274933,1.3274933 0 0 0 -0.24201,-0.33366 1.3274933,1.3274933 0 0 0 -1.87736,0 z"
style="opacity:1;fill:#d40000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
inkscape:connector-curvature="0"
id="path1077"
d="m -188.59561,262.70471 a 1.3274933,1.3274933 0 0 0 1.87553,0.002 v 0.008 l 0.0299,-0.0398 a 1.3274933,1.3274933 0 0 0 0.17561,-0.23359 l 0.92107,-1.22836 -0.37546,0 0.37547,-0.75094 h -0.37547 l 0.75094,-1.12642 -1.12642,0.75094 0,-0.37547 -0.75094,0.37547 0,-0.37546 -1.16638,0.87451 a 1.3274933,1.3274933 0 0 0 -0.33365,0.24201 1.3274933,1.3274933 0 0 0 -10e-6,1.87737 z"
style="opacity:1;fill:#d40000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
inkscape:connector-curvature="0"
id="path1081"
d="m -223.0202,262.70933 a 1.3274933,1.3274933 0 0 0 0.002,-1.87553 h 0.008 l -0.0398,-0.0299 a 1.3274933,1.3274933 0 0 0 -0.23359,-0.17561 l -1.22837,-0.92107 1e-5,0.37547 -0.75095,-0.37548 0,0.37548 -1.12641,-0.75094 0.75094,1.12641 -0.37548,0 0.37548,0.75095 -0.37547,-10e-6 0.87452,1.16638 a 1.3274933,1.3274933 0 0 0 0.24201,0.33366 1.3274933,1.3274933 0 0 0 1.87736,0 z"
style="opacity:1;fill:#d40000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
inkscape:connector-curvature="0"
id="path1085"
d="m -256.97501,259.33631 a 1.3274933,1.3274933 0 0 0 -1.87553,-0.002 l 0,-0.008 -0.0299,0.0398 a 1.3274933,1.3274933 0 0 0 -0.17561,0.23359 l -0.92107,1.22836 0.37546,0 -0.37547,0.75094 h 0.37547 l -0.75094,1.12642 1.12642,-0.75094 v 0.37547 l 0.75094,-0.37547 0,0.37546 1.16638,-0.87451 a 1.3274933,1.3274933 0 0 0 0.33365,-0.24201 1.3274933,1.3274933 0 0 0 10e-6,-1.87737 z"
style="opacity:1;fill:#d40000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
style="opacity:1;fill:#800000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -239.34541,261.01807 a 1.0329675,1.0329675 0 0 0 -1.03096,-1.03297 l 0.005,-0.005 -0.0384,0.005 a 1.0329675,1.0329675 0 0 0 -0.22515,0.0319 l -1.18267,0.16908 0.20659,0.20659 -0.61978,0.20659 0.20659,0.2066 -1.03296,0.20659 1.03296,0.2066 -0.20659,0.20659 0.61978,0.2066 -0.20659,0.20658 1.12294,0.1606 a 1.0329675,1.0329675 0 0 0 0.31675,0.0504 1.0329675,1.0329675 0 0 0 1.03297,-1.03297 z"
id="path1063"
inkscape:connector-curvature="0"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
style="opacity:1;fill:#800000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -204.42668,263.14101 a 1.0329675,1.0329675 0 0 1 -1.03297,-1.03096 l -0.005,0.005 0.005,-0.0384 a 1.0329675,1.0329675 0 0 1 0.0319,-0.22515 l 0.16908,-1.18267 0.20659,0.20659 0.20659,-0.61978 0.2066,0.20659 0.20659,-1.03296 0.2066,1.03296 0.20659,-0.20659 0.2066,0.61978 0.20658,-0.20659 0.1606,1.12294 a 1.0329675,1.0329675 0 0 1 0.0504,0.31675 1.0329675,1.0329675 0 0 1 -1.03297,1.03297 z"
id="path1067"
inkscape:connector-curvature="0"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
style="opacity:1;fill:#800000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -170.82599,261.02295 a 1.0329675,1.0329675 0 0 0 1.03096,1.03297 l -0.005,0.005 0.0384,-0.005 a 1.0329675,1.0329675 0 0 0 0.22515,-0.0319 l 1.18267,-0.16908 -0.20659,-0.20659 0.61978,-0.20659 -0.20659,-0.2066 1.03296,-0.20659 -1.03296,-0.2066 0.20659,-0.20659 -0.61978,-0.2066 0.20659,-0.20658 -1.12294,-0.1606 a 1.0329675,1.0329675 0 0 0 -0.31675,-0.0504 1.0329675,1.0329675 0 0 0 -1.03297,1.03297 z"
id="path1071"
inkscape:connector-curvature="0"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
style="opacity:1;fill:#800000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -150.36289,259.52281 a 1.0329675,1.0329675 0 0 0 -0.001,1.45942 l -0.007,0 0.0307,0.0236 a 1.0329675,1.0329675 0 0 0 0.18176,0.13665 l 0.95583,0.71671 0,-0.29216 0.58433,0.29217 1e-5,-0.29217 0.8765,0.58433 -0.58433,-0.8765 h 0.29216 l -0.29216,-0.58434 0.29216,10e-6 -0.68048,-0.9076 a 1.0329675,1.0329675 0 0 0 -0.18834,-0.25961 1.0329675,1.0329675 0 0 0 -1.46084,0 z"
id="path1075"
inkscape:connector-curvature="0"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
style="opacity:1;fill:#800000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -188.40448,262.52165 a 1.0329675,1.0329675 0 0 0 1.45942,0.001 v 0.007 l 0.0236,-0.0307 a 1.0329675,1.0329675 0 0 0 0.13665,-0.18177 l 0.71672,-0.95583 h -0.29216 l 0.29216,-0.58433 -0.29216,-1e-5 0.58433,-0.87649 -0.8765,0.58432 0,-0.29216 -0.58434,0.29216 0,-0.29215 -0.9076,0.68048 a 1.0329675,1.0329675 0 0 0 -0.25961,0.18833 1.0329675,1.0329675 0 0 0 0,1.46084 z"
id="path1079"
inkscape:connector-curvature="0"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
style="opacity:1;fill:#800000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -223.20326,262.51821 a 1.0329675,1.0329675 0 0 0 0.001,-1.45942 h 0.007 l -0.0307,-0.0236 a 1.0329675,1.0329675 0 0 0 -0.18176,-0.13665 l -0.95583,-0.71671 v 0.29216 l -0.58433,-0.29217 -1e-5,0.29217 -0.8765,-0.58433 0.58433,0.8765 h -0.29216 l 0.29216,0.58434 -0.29216,-1e-5 0.68048,0.9076 a 1.0329675,1.0329675 0 0 0 0.18834,0.25961 1.0329675,1.0329675 0 0 0 1.46084,0 z"
id="path1083"
inkscape:connector-curvature="0"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<path
style="opacity:1;fill:#800000;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -257.16614,259.51937 a 1.0329675,1.0329675 0 0 0 -1.45942,-0.001 v -0.007 l -0.0236,0.0307 a 1.0329675,1.0329675 0 0 0 -0.13665,0.18177 l -0.71672,0.95583 0.29216,0 -0.29216,0.58433 0.29216,1e-5 -0.58433,0.87649 0.8765,-0.58432 v 0.29216 l 0.58434,-0.29216 0,0.29215 0.9076,-0.68048 a 1.0329675,1.0329675 0 0 0 0.25961,-0.18833 1.0329675,1.0329675 0 0 0 0,-1.46084 z"
id="path1087"
inkscape:connector-curvature="0"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
</g>

Before

Width:  |  Height:  |  Size: 30 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View file

@ -15,13 +15,13 @@ screen = pygame.display.set_mode((screen_width, screen_height))
done = False
BACKGROUND=(0,0,0)
BACKGROUND=(200,200,200)
WHITE=(255,255,255)
BLUE=(0,0,255)
RED=(255,0,0)
perso1 = Perso('Alice',200,200,pygame.K_o,pygame.K_l,pygame.K_k,pygame.K_m,pygame.K_SPACE,'asset/perso1')
perso2 = Perso('Bjorn',600,600,pygame.K_z,pygame.K_s,pygame.K_q,pygame.K_d,pygame.K_SPACE,'asset/perso2')
perso1 = Perso('Alice',200,200,pygame.K_o,pygame.K_l,pygame.K_k,pygame.K_m,pygame.K_SPACE,'perso1','projectile1')
perso2 = Perso('Bjorn',600,600,pygame.K_z,pygame.K_s,pygame.K_q,pygame.K_d,pygame.K_SPACE,'perso2','projectile2')
speed = 1

View file

@ -7,9 +7,23 @@ import pygame
from time import time
import numpy as np
decision_matrix = np.array([[0,1,2],[3,4,5],[6,7,8]])
suffix_matrix = ['_up_left.png',
'_up.png',
'_up_right.png',
'_left.png',
'_up.png',
'_right.png',
'_down_left.png',
'_down.png',
'_down_right.png',]
img_path = 'asset/'
class Perso():
def __init__(self,name,posx,posy,key_up,key_down,key_left,key_right,key_fire,texture):
def __init__(self,name,posx,posy,key_up,key_down,key_left,key_right,key_fire,texture,texture_proj):
self.name = name
self.posx = posx
self.posy = posy
@ -19,17 +33,17 @@ class Perso():
self.key_left = key_left
self.key_right = key_right
self.key_fire = key_fire
self.imgs = [pygame.image.load(texture+'_up_left.png'),
pygame.image.load(texture+'_up.png'),
pygame.image.load(texture+'_up_right.png'),
pygame.image.load(texture+'_left.png'),
pygame.image.load(texture+'_up.png'),
pygame.image.load(texture+'_right.png'),
pygame.image.load(texture+'_down_left.png'),
pygame.image.load(texture+'_down.png'),
pygame.image.load(texture+'_down_right.png'),]
self.img_matrix = np.array([[0,1,2],[3,4,5],[6,7,8]])
self.imgs = [pygame.image.load(img_path+texture+'_up_left.png'),
pygame.image.load(img_path+texture+'_up.png'),
pygame.image.load(img_path+texture+'_up_right.png'),
pygame.image.load(img_path+texture+'_left.png'),
pygame.image.load(img_path+texture+'_up.png'),
pygame.image.load(img_path+texture+'_right.png'),
pygame.image.load(img_path+texture+'_down_left.png'),
pygame.image.load(img_path+texture+'_down.png'),
pygame.image.load(img_path+texture+'_down_right.png'),]
self.img = self.imgs[0]
self.texture_proj = texture_proj
self.size = self.img.get_size()
self.projectiles = []
@ -86,14 +100,14 @@ class Perso():
del self.projectiles[k]
# select img
index = self.img_matrix[self.direction[1]+1,self.direction[0]+1]
index = decision_matrix[self.direction[1]+1,self.direction[0]+1]
self.img = self.imgs[index]
surface.blit(self.img,(self.posx,self.posy))
#print("Projectiles for {}: {}".format(self.name,len(self.projectiles)))
def fire(self,name,texture):
if (time()-self.last_fire> 0.2):
new_proj = Projectile(name,texture,2,(self.posx+int(self.img.get_height()/2),self.posy+int(self.img.get_width()/2)),self.direction)
new_proj = Projectile(name,self.texture_proj,3,(self.posx+int(self.img.get_height()/2),self.posy+int(self.img.get_width()/2)),[self.direction[0],self.direction[1]])
self.projectiles.append(new_proj)
self.last_fire = time()
@ -107,16 +121,8 @@ class Projectile():
self.position = position
self.direction = direction
if direction[0]!=0:
if direction[0]>0:
self.img = pygame.image.load(texture+'_right.png')
else:
self.img = pygame.image.load(texture+'_left.png')
else:
if direction[1]>0:
self.img = pygame.image.load(texture+'_down.png')
else:
self.img = pygame.image.load(texture+'_up.png')
index = decision_matrix[self.direction[1]+1,self.direction[0]+1]
self.img = pygame.image.load(img_path+texture+suffix_matrix[index])
def move(self):
self.position = (self.position[0]+self.speed*self.direction[0],self.position[1]+self.speed*self.direction[1])