add diagonal directions

master
grisel-davy 4 years ago
parent f0f90daee0
commit a7a5d7fc0e

@ -25,9 +25,9 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="22.4"
inkscape:cx="-1033.5604"
inkscape:cy="234.95109"
inkscape:zoom="2.8"
inkscape:cx="-787.46383"
inkscape:cy="200.5935"
inkscape:document-units="px"
inkscape:current-layer="layer1"
showgrid="true"
@ -87,8 +87,8 @@
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="238.79167"
x="-264.58334"
y="238.79169"
x="-210.34375"
height="10.583325"
width="10.583341"
id="rect842"
@ -96,8 +96,8 @@
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="240.11458"
x="-263.26041"
y="240.11459"
x="-209.02083"
height="7.9375"
width="7.9374938"
id="rect844"
@ -106,7 +106,7 @@
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="248.05208"
x="-260.61459"
x="-206.375"
height="1.3229166"
width="2.6458333"
id="rect846"
@ -124,7 +124,7 @@
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="238.79166"
x="-230.1875"
x="-173.30209"
height="10.583325"
width="10.583341"
id="rect860"
@ -142,7 +142,7 @@
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="240.11456"
x="-228.86456"
x="-171.97916"
height="7.9375"
width="7.9374938"
id="rect862"
@ -164,128 +164,445 @@
width="2.6458333"
height="1.3229166"
x="242.76042"
y="228.86458"
y="171.97917"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<g
id="g863"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<path
inkscape:connector-curvature="0"
id="path845"
d="m -276.48388,232.17708 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:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
style="opacity:1;fill:#000080;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,232.44167 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="path859"
inkscape:connector-curvature="0" />
</g>
<g
id="g869"
transform="matrix(1,0,0,-1,71.437496,468.5875)"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<path
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -276.48388,232.17708 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"
id="path865"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path867"
d="m -276.48958,232.44167 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"
style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
<g
transform="matrix(0,-1,-1,0,-7.0062473,-41.666663)"
id="g875"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<path
inkscape:connector-curvature="0"
id="path871"
d="m -276.48388,232.17708 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:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
style="opacity:1;fill:#000080;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,232.44167 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="path873"
inkscape:connector-curvature="0" />
</g>
<g
id="g881"
transform="matrix(0,1,1,0,-403.13087,511.11152)"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<path
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -276.48388,232.17708 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"
id="path877"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path879"
d="m -276.48958,232.44167 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"
style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="350.64822"
x="-16.045589"
height="10.583325"
width="10.583341"
id="rect52"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.04628637;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
transform="rotate(45)" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="351.97113"
x="-14.722652"
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"
transform="rotate(45)" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="350.64822"
x="-12.076839"
height="1.3229166"
width="2.6458333"
id="rect56"
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"
transform="rotate(45)" />
<rect
style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.04628637;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect58"
width="10.583341"
height="10.583325"
x="8.2759314"
y="326.32669"
inkscape:export-xdpi="96"
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"
id="rect60"
width="7.9374938"
height="7.9375"
x="9.5988684"
y="327.6496"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
transform="rotate(45)" />
<rect
transform="rotate(135)"
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"
id="rect62"
width="2.6458333"
height="1.3229166"
x="330.29544"
y="-18.859289"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.04628637;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect64"
width="10.583341"
height="10.583325"
x="35.176834"
y="299.42581"
inkscape:export-xdpi="96"
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"
id="rect66"
width="7.9374938"
height="7.9375"
x="36.499756"
y="300.74872"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
transform="rotate(45)" />
<rect
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"
id="rect68"
width="2.6458333"
height="1.3229166"
x="39.145584"
y="308.68622"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
transform="rotate(45)" />
<rect
transform="rotate(-135)"
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="-283.81671"
x="-71.952599"
height="10.583325"
width="10.583341"
id="rect70"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.04628637;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
transform="rotate(-135)"
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="-282.4938"
x="-70.629662"
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" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="61.369251"
x="-279.84796"
height="1.3229166"
width="2.6458333"
id="rect74"
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"
transform="rotate(-45)" />
<g
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="257.31253"
id="g80"
transform="rotate(45,-267.71741,255.73419)">
<path
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -276.48388,232.17708 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"
id="path76"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path78"
d="m -276.48958,232.44167 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"
style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
<g
transform="matrix(0.70710678,-0.70710678,-0.70710678,-0.70710678,135.23304,204.52832)"
id="g86"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<path
inkscape:connector-curvature="0"
id="path82"
d="m -276.48388,232.17708 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:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
style="opacity:1;fill:#000080;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,232.44167 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="path84"
inkscape:connector-curvature="0" />
</g>
<g
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
id="g92"
transform="rotate(-135,-231.7835,215.81778)">
<path
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -276.48388,232.17708 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"
id="path88"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path90"
d="m -276.48958,232.44167 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"
style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
</g>
<g
transform="matrix(-0.70710678,0.70710678,0.70710678,0.70710678,-512.2643,264.20758)"
id="g98"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
<path
inkscape:connector-curvature="0"
id="path94"
d="m -276.48388,232.17708 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:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<path
style="opacity:1;fill:#000080;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,232.44167 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="path96"
inkscape:connector-curvature="0" />
</g>
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="254.66667"
x="-281.78125"
height="10.583325"
width="10.583341"
id="rect868"
id="rect100"
style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.04628637;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="258.63544"
y="255.98958"
x="-280.45831"
height="7.9375"
width="7.9374938"
id="rect870"
style="opacity:1;fill:#ff0000;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="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" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="257.31253"
y="254.66667"
x="-277.8125"
height="1.3229166"
width="2.6458333"
id="rect872"
id="rect104"
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:none;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.04628637;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect874"
id="rect106"
width="10.583341"
height="10.583325"
x="-264.58334"
y="257.31253"
x="-210.34375"
y="254.66669"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:#ff0000;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="rect876"
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"
id="rect108"
width="7.9374938"
height="7.9375"
x="-263.26041"
y="258.63544"
x="-209.02083"
y="255.98959"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
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"
id="rect878"
id="rect110"
width="2.6458333"
height="1.3229166"
x="-260.61459"
y="266.57294"
x="-206.375"
y="263.92706"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.04628637;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect880"
id="rect112"
width="10.583341"
height="10.583325"
x="-247.38544"
y="257.31253"
y="254.66667"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.04628637;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect882"
id="rect114"
width="10.583341"
height="10.583325"
x="-230.1875"
y="257.3125"
x="-173.30209"
y="254.66666"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:#ff0000;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="rect884"
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"
id="rect116"
width="7.9374938"
height="7.9375"
x="-246.0625"
y="258.63544"
y="255.98958"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
style="opacity:1;fill:#ff0000;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="rect886"
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"
id="rect118"
width="7.9374938"
height="7.9375"
x="-228.86456"
y="258.63541"
x="-171.97916"
y="255.98956"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
transform="rotate(90)"
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"
id="rect888"
id="rect120"
width="2.6458333"
height="1.3229166"
x="261.28128"
x="258.63541"
y="236.80208"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="228.86458"
x="261.28128"
y="171.97917"
x="258.63541"
height="1.3229166"
width="2.6458333"
id="rect890"
id="rect122"
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"
transform="rotate(90)" />
<path
style="opacity:1;fill:#5555ff;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.79649597;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m -276.48388,232.17708 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"
id="path845"
inkscape:connector-curvature="0" />
<path
inkscape:connector-curvature="0"
id="path859"
d="m -276.48958,232.44167 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"
style="opacity:1;fill:#000080;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:0.61978054;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
<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"
id="rect124"
width="7.9374938"
height="7.9375"
x="-3.4973354"
y="363.19644"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
<rect
transform="rotate(45)"
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"
id="rect126"
width="2.6458333"
height="1.3229166"
x="-0.85152239"
y="361.87354"
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"
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" />
<rect
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="-30.084606"
x="341.52075"
height="1.3229166"
width="2.6458333"
id="rect130"
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"
transform="rotate(135)" />
<rect
transform="rotate(45)"
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="311.97403"
x="47.725075"
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" />
<rect
transform="rotate(45)"
inkscape:export-ydpi="96"
inkscape:export-xdpi="96"
y="319.91153"
x="50.370903"
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"
id="rect136"
width="7.9374938"
height="7.9375"
x="-81.85498"
y="-293.71912"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
transform="rotate(-135)" />
<rect
transform="rotate(-45)"
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"
id="rect138"
width="2.6458333"
height="1.3229166"
x="-291.07327"
y="72.594566"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 355 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 657 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 630 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 633 B

Before

Width:  |  Height:  |  Size: 514 B

After

Width:  |  Height:  |  Size: 514 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 B

Before

Width:  |  Height:  |  Size: 514 B

After

Width:  |  Height:  |  Size: 514 B

Before

Width:  |  Height:  |  Size: 525 B

After

Width:  |  Height:  |  Size: 525 B

Before

Width:  |  Height:  |  Size: 488 B

After

Width:  |  Height:  |  Size: 488 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 566 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 456 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 B

@ -5,6 +5,7 @@
import pygame
from time import time
import numpy as np
class Perso():
@ -12,52 +13,67 @@ class Perso():
self.name = name
self.posx = posx
self.posy = posy
self.direction = (0,-1)
self.direction = [0,-1]
self.key_up = key_up
self.key_down = key_down
self.key_left = key_left
self.key_right = key_right
self.key_fire = key_fire
self.img_up = pygame.image.load(texture+'_up.png')
self.img_down = pygame.image.load(texture+'_down.png')
self.img_right = pygame.image.load(texture+'_right.png')
self.img_left = pygame.image.load(texture+'_left.png')
self.img = self.img_up
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.img = self.imgs[0]
self.size = self.img.get_size()
self.projectiles = []
self.last_fire = time()
def check_keys(self,keystate,screen_width,screen_height,speed):
if keystate[self.key_left]:
self.posx -= speed
if self.posx <0:
self.posx=0
self.img = self.img_left
self.direction = (-1,0)
if keystate[self.key_right]:
self.posx += speed
if self.posx+self.size[0] > screen_width:
self.posx = screen_width-self.size[0]
self.img = self.img_right
self.direction = (1,0)
if keystate[self.key_up]:
self.posy -= speed
if self.posy < 0:
self.posy = 0
self.img = self.img_up
self.direction = (0,-1)
if keystate[self.key_down]:
self.posy += speed
if self.posy+self.size[1] > screen_height:
self.posy = screen_height-self.size[1]
self.img = self.img_down
self.direction = (0,1)
if keystate[self.key_left] or keystate[self.key_right] or keystate[self.key_up] or keystate[self.key_down]:
if keystate[self.key_left]:
self.posx -= speed
if self.posx <0:
self.posx=0
self.direction[0] = -1
if keystate[self.key_right]:
self.posx += speed
if self.posx+self.size[0] > screen_width:
self.posx = screen_width-self.size[0]
self.direction[0] = 1
if keystate[self.key_up]:
self.posy -= speed
if self.posy < 0:
self.posy = 0
self.direction[1] = -1
if keystate[self.key_down]:
self.posy += speed
if self.posy+self.size[1] > screen_height:
self.posy = screen_height-self.size[1]
self.direction[1] = 1
if not keystate[self.key_left] and not keystate[self.key_right]:
self.direction[0] = 0
if not keystate[self.key_up] and not keystate[self.key_down]:
self.direction[1] = 0
if keystate[self.key_fire]:
self.fire('fireball','asset/projectile')
def draw(self,surface):
# Make all projectiles move or disepear and draw them
to_remove = []
for k,proj in enumerate(self.projectiles):
if not proj.is_out(surface):
@ -69,8 +85,11 @@ class Perso():
for k in to_remove[::-1]:
del self.projectiles[k]
# select img
index = self.img_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)))
#print("Projectiles for {}: {}".format(self.name,len(self.projectiles)))
def fire(self,name,texture):
if (time()-self.last_fire> 0.2):

Loading…
Cancel
Save