solve #6, add background to map
This commit is contained in:
parent
c7a2d52b79
commit
387890a069
5 changed files with 87 additions and 30 deletions
102
asset/asset.svg
102
asset/asset.svg
|
@ -25,9 +25,9 @@
|
||||||
borderopacity="1.0"
|
borderopacity="1.0"
|
||||||
inkscape:pageopacity="0.0"
|
inkscape:pageopacity="0.0"
|
||||||
inkscape:pageshadow="2"
|
inkscape:pageshadow="2"
|
||||||
inkscape:zoom="1.7727083"
|
inkscape:zoom="0.11079427"
|
||||||
inkscape:cx="-995.66764"
|
inkscape:cx="-1017.0394"
|
||||||
inkscape:cy="192.7389"
|
inkscape:cy="-2198.0564"
|
||||||
inkscape:document-units="px"
|
inkscape:document-units="px"
|
||||||
inkscape:current-layer="layer1"
|
inkscape:current-layer="layer1"
|
||||||
showgrid="true"
|
showgrid="true"
|
||||||
|
@ -57,9 +57,55 @@
|
||||||
</rdf:RDF>
|
</rdf:RDF>
|
||||||
</metadata>
|
</metadata>
|
||||||
<g
|
<g
|
||||||
inkscape:label="Layer 1"
|
|
||||||
inkscape:groupmode="layer"
|
inkscape:groupmode="layer"
|
||||||
id="layer1">
|
id="layer2"
|
||||||
|
inkscape:label="back"
|
||||||
|
style="display:inline">
|
||||||
|
<rect
|
||||||
|
style="opacity:1;fill:#d38d5f;fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:4.30875349;stroke-linecap:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
|
id="rect925"
|
||||||
|
width="838.43549"
|
||||||
|
height="520.83234"
|
||||||
|
x="-1316.5852"
|
||||||
|
y="19.51149" />
|
||||||
|
<path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m -1270,353.88542 h 66.1458"
|
||||||
|
id="path936"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m -1270,351.23958 h 66.1458"
|
||||||
|
id="path938"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m -1270,348.59375 h 66.1458"
|
||||||
|
id="path940"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
style="fill:none;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m -1270,345.94792 h 66.1458"
|
||||||
|
id="path942"
|
||||||
|
inkscape:connector-curvature="0" />
|
||||||
|
<path
|
||||||
|
id="path946"
|
||||||
|
style="fill:#008080;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
d="m -1211.7917,106.5 v 2.64583 l 7.9375,-5.29166 -7.9375,-5.29167 v 2.64583 m -18.5208,29.10417 v -15.875 l 7.9375,-7.9375 h 10.5833 v -5.29167 h -13.2291 l -10.5834,10.58334 v 18.52083 z"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
sodipodi:nodetypes="cccccccccccccc" />
|
||||||
|
<path
|
||||||
|
sodipodi:nodetypes="cccccccccccccc"
|
||||||
|
inkscape:connector-curvature="0"
|
||||||
|
d="m -550.33333,402.83337 h -2.64583 l 5.29166,-7.9375 5.29167,7.9375 h -2.64583 m -29.10417,18.5208 h 15.875 l 7.9375,-7.9375 v -10.5833 h 5.29167 v 13.2291 l -10.58334,10.5834 h -18.52083 z"
|
||||||
|
style="fill:#008080;stroke:#000000;stroke-width:0.26458332px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
|
||||||
|
id="path964" />
|
||||||
|
</g>
|
||||||
|
<g
|
||||||
|
inkscape:label="wall"
|
||||||
|
inkscape:groupmode="layer"
|
||||||
|
id="layer1"
|
||||||
|
style="display:inline;opacity:0.218">
|
||||||
<rect
|
<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"
|
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="rect815"
|
id="rect815"
|
||||||
|
@ -124,7 +170,8 @@
|
||||||
id="rect862"
|
id="rect862"
|
||||||
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" />
|
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" />
|
||||||
<g
|
<g
|
||||||
id="g5223">
|
id="g5223"
|
||||||
|
style="">
|
||||||
<rect
|
<rect
|
||||||
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"
|
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="rect856"
|
id="rect856"
|
||||||
|
@ -158,7 +205,8 @@
|
||||||
<g
|
<g
|
||||||
id="g863"
|
id="g863"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96">
|
inkscape:export-ydpi="96"
|
||||||
|
style="">
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path845"
|
id="path845"
|
||||||
|
@ -174,7 +222,8 @@
|
||||||
id="g869"
|
id="g869"
|
||||||
transform="matrix(1,0,0,-1,71.437496,468.5875)"
|
transform="matrix(1,0,0,-1,71.437496,468.5875)"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96">
|
inkscape:export-ydpi="96"
|
||||||
|
style="">
|
||||||
<path
|
<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"
|
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"
|
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"
|
||||||
|
@ -190,7 +239,8 @@
|
||||||
transform="matrix(0,-1,-1,0,-7.0062473,-41.666663)"
|
transform="matrix(0,-1,-1,0,-7.0062473,-41.666663)"
|
||||||
id="g875"
|
id="g875"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96">
|
inkscape:export-ydpi="96"
|
||||||
|
style="">
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path871"
|
id="path871"
|
||||||
|
@ -206,7 +256,8 @@
|
||||||
id="g881"
|
id="g881"
|
||||||
transform="matrix(0,1,1,0,-403.13087,511.11152)"
|
transform="matrix(0,1,1,0,-403.13087,511.11152)"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96">
|
inkscape:export-ydpi="96"
|
||||||
|
style="">
|
||||||
<path
|
<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"
|
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"
|
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"
|
||||||
|
@ -342,7 +393,8 @@
|
||||||
inkscape:export-ydpi="96"
|
inkscape:export-ydpi="96"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
id="g80"
|
id="g80"
|
||||||
transform="rotate(45,-267.71741,255.73419)">
|
transform="rotate(45,-267.71741,255.73419)"
|
||||||
|
style="">
|
||||||
<path
|
<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"
|
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"
|
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"
|
||||||
|
@ -358,7 +410,8 @@
|
||||||
transform="matrix(0.70710678,-0.70710678,-0.70710678,-0.70710678,135.23304,204.52832)"
|
transform="matrix(0.70710678,-0.70710678,-0.70710678,-0.70710678,135.23304,204.52832)"
|
||||||
id="g86"
|
id="g86"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96">
|
inkscape:export-ydpi="96"
|
||||||
|
style="">
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path82"
|
id="path82"
|
||||||
|
@ -374,7 +427,8 @@
|
||||||
inkscape:export-ydpi="96"
|
inkscape:export-ydpi="96"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
id="g92"
|
id="g92"
|
||||||
transform="rotate(-135,-231.7835,215.81778)">
|
transform="rotate(-135,-231.7835,215.81778)"
|
||||||
|
style="">
|
||||||
<path
|
<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"
|
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"
|
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"
|
||||||
|
@ -390,7 +444,8 @@
|
||||||
transform="matrix(-0.70710678,0.70710678,0.70710678,0.70710678,-512.2643,264.20758)"
|
transform="matrix(-0.70710678,0.70710678,0.70710678,0.70710678,-512.2643,264.20758)"
|
||||||
id="g98"
|
id="g98"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96">
|
inkscape:export-ydpi="96"
|
||||||
|
style="">
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path94"
|
id="path94"
|
||||||
|
@ -630,28 +685,28 @@
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path1073"
|
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"
|
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 v -0.37548 l 1.12641,0.75094 -0.75094,-1.12641 h 0.37548 l -0.37548,-0.75095 0.37547,1e-5 -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"
|
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-xdpi="96"
|
||||||
inkscape:export-ydpi="96" />
|
inkscape:export-ydpi="96" />
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path1077"
|
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"
|
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 h -0.37546 l 0.37547,-0.75094 h -0.37547 l 0.75094,-1.12642 -1.12642,0.75094 v -0.37547 l -0.75094,0.37547 v -0.37546 l -1.16638,0.87451 a 1.3274933,1.3274933 0 0 0 -0.33365,0.24201 1.3274933,1.3274933 0 0 0 -1e-5,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"
|
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-xdpi="96"
|
||||||
inkscape:export-ydpi="96" />
|
inkscape:export-ydpi="96" />
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path1081"
|
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"
|
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 10e-6,0.37547 -0.75095,-0.37548 v 0.37548 l -1.12641,-0.75094 0.75094,1.12641 h -0.37548 l 0.37548,0.75095 -0.37547,-1e-5 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"
|
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-xdpi="96"
|
||||||
inkscape:export-ydpi="96" />
|
inkscape:export-ydpi="96" />
|
||||||
<path
|
<path
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
id="path1085"
|
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"
|
d="m -256.97501,259.33631 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 h 0.37546 l -0.37547,0.75094 h 0.37547 l -0.75094,1.12642 1.12642,-0.75094 v 0.37547 l 0.75094,-0.37547 v 0.37546 l 1.16638,-0.87451 a 1.3274933,1.3274933 0 0 0 0.33365,-0.24201 1.3274933,1.3274933 0 0 0 1e-5,-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"
|
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-xdpi="96"
|
||||||
inkscape:export-ydpi="96" />
|
inkscape:export-ydpi="96" />
|
||||||
|
@ -678,14 +733,14 @@
|
||||||
inkscape:export-ydpi="96" />
|
inkscape:export-ydpi="96" />
|
||||||
<path
|
<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"
|
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"
|
d="m -150.36289,259.52281 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="path1075"
|
id="path1075"
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96" />
|
inkscape:export-ydpi="96" />
|
||||||
<path
|
<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"
|
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"
|
d="m -188.40448,262.52165 a 1.0329675,1.0329675 0 0 0 1.45942,10e-4 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,-10e-6 0.58433,-0.87649 -0.8765,0.58432 v -0.29216 l -0.58434,0.29216 v -0.29215 l -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"
|
id="path1079"
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
|
@ -699,7 +754,7 @@
|
||||||
inkscape:export-ydpi="96" />
|
inkscape:export-ydpi="96" />
|
||||||
<path
|
<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"
|
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"
|
d="m -257.16614,259.51937 a 1.0329675,1.0329675 0 0 0 -1.45942,-10e-4 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,10e-6 -0.58433,0.87649 0.8765,-0.58432 v 0.29216 l 0.58434,-0.29216 v 0.29215 l 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"
|
id="path1087"
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
|
@ -724,7 +779,7 @@
|
||||||
inkscape:export-ydpi="133.33333" />
|
inkscape:export-ydpi="133.33333" />
|
||||||
<path
|
<path
|
||||||
style="opacity:1;fill:#7f2aff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.07756615;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
style="opacity:1;fill:#7f2aff;fill-opacity:1;fill-rule:evenodd;stroke:#000000;stroke-width:1.07756615;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
|
||||||
d="M -1142.3163,-27.674654 V 496.18112 h 841.88489 V -27.674654 Z m 327.39963,28.06370188 h 121.60561 V 47.161882 h 159.02271 V 9.7436221 h 196.43983 V 159.41667 h -9.35428 v 102.90026 h 18.70855 v 56.12741 h -28.06284 v 28.06371 h 28.06284 v 121.60936 h -177.73127 v -46.77283 h -74.83421 v -28.06371 h -102.89706 v 28.06371 h -46.77138 v -28.06371 h -112.25134 v 56.12741 H -1104.8992 V 309.08976 h 9.3542 V 9.7436221 h 65.4799 V 28.452751 h 215.14843 z M -1030.0651,75.225584 V 309.08976 h 93.54285 v -84.19111 h -18.70857 v -65.48198 h 140.31415 V 75.225584 Z m 336.75404,37.418276 v 121.60936 h 9.35427 V 355.8626 h 102.89706 v -18.70913 h 102.89706 v 9.35458 h 74.8342 v -28.06371 h -121.60559 v -56.12741 h 18.70854 V 159.41667 h -28.06283 v -46.77281 z m 233.85693,46.77281 v 102.90026 h 65.47995 V 159.41667 Z m -420.94249,65.48198 v 84.19111 h 37.41711 v 46.77284 h 112.25134 v -93.54567 h -84.1885 v -37.41828 z"
|
d="M -1316.4103,20.321616 V 544.17739 h 841.88495 V 20.321616 Z m 327.39969,28.063702 H -867.405 v 46.772834 h 159.02271 v -37.41826 h 196.43983 V 207.41294 h -9.35428 V 310.3132 h 18.70855 v 56.12741 h -28.06284 v 28.06371 h 28.06284 v 121.60936 h -177.73127 v -46.77283 h -74.83421 v -28.06371 h -102.89706 v 28.06371 h -46.77138 v -28.06371 h -112.25139 v 56.12741 h -261.9197 V 357.08603 h 9.3542 V 57.739892 h 65.4799 v 18.709129 h 215.14849 z m -215.14849,74.836532 v 233.86418 h 93.5429 v -84.19111 h -18.7086 v -65.48198 h 140.31419 v -84.19109 z m 336.7541,37.41828 v 121.60936 h 9.35427 v 121.60938 h 102.89706 v -18.70913 h 102.89706 v 9.35458 h 74.8342 V 366.44061 H -699.028 V 310.3132 h 18.70854 V 207.41294 h -28.06283 v -46.77281 z m 233.85693,46.77281 V 310.3132 h 65.47995 V 207.41294 Z m -420.94253,65.48198 v 84.19111 h 37.4171 v 46.77284 h 112.25139 V 310.3132 h -84.1885 v -37.41828 z"
|
||||||
id="rect4612"
|
id="rect4612"
|
||||||
inkscape:connector-curvature="0"
|
inkscape:connector-curvature="0"
|
||||||
inkscape:export-filename="/home/grizzly/Documents/Python/tangledmind/maps/map_1.png"
|
inkscape:export-filename="/home/grizzly/Documents/Python/tangledmind/maps/map_1.png"
|
||||||
|
@ -749,7 +804,8 @@
|
||||||
id="g4628"
|
id="g4628"
|
||||||
transform="rotate(90,-276.48959,244.08333)"
|
transform="rotate(90,-276.48959,244.08333)"
|
||||||
inkscape:export-xdpi="96"
|
inkscape:export-xdpi="96"
|
||||||
inkscape:export-ydpi="96">
|
inkscape:export-ydpi="96"
|
||||||
|
style="">
|
||||||
<path
|
<path
|
||||||
id="path4621"
|
id="path4621"
|
||||||
transform="scale(0.26458333)"
|
transform="scale(0.26458333)"
|
||||||
|
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 48 KiB |
2
main.py
2
main.py
|
@ -22,7 +22,7 @@ WHITE=(255,255,255)
|
||||||
BLUE=(0,0,255)
|
BLUE=(0,0,255)
|
||||||
RED=(255,0,0)
|
RED=(255,0,0)
|
||||||
|
|
||||||
carte = Carte('map_1.png')
|
carte = Carte('map1')
|
||||||
# click = 323
|
# click = 323
|
||||||
perso = Perso('Alice',660,1570,center_screen,pygame.K_z,pygame.K_s,pygame.K_q,pygame.K_d,323,'perso.png','canon.png','projectile1_right.png')
|
perso = Perso('Alice',660,1570,center_screen,pygame.K_z,pygame.K_s,pygame.K_q,pygame.K_d,323,'perso.png','canon.png','projectile1_right.png')
|
||||||
camera = Camera(660,1570,screen_width,screen_height,0.3)
|
camera = Camera(660,1570,screen_width,screen_height,0.3)
|
||||||
|
|
BIN
maps/map1_back.png
Normal file
BIN
maps/map1_back.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
13
models.py
13
models.py
|
@ -49,16 +49,17 @@ class Game():
|
||||||
|
|
||||||
|
|
||||||
class Carte():
|
class Carte():
|
||||||
def __init__(self,texture):
|
def __init__(self,mapname):
|
||||||
self.posx = 0
|
self.posx = 0
|
||||||
self.posy = 0
|
self.posy = 0
|
||||||
self.img = pygame.image.load('maps/'+texture).convert_alpha()
|
self.back = pygame.image.load('maps/'+mapname+'_back.png').convert()
|
||||||
self.rect = self.img.get_rect()
|
self.wall = pygame.image.load('maps/'+mapname+'_wall.png').convert_alpha()
|
||||||
self.mask = pygame.mask.from_surface(self.img)
|
self.mask = pygame.mask.from_surface(self.wall)
|
||||||
|
|
||||||
def draw(self,surface,camera):
|
def draw(self,surface,camera):
|
||||||
offsetx,offsety = camera.get_offset()
|
offsetx,offsety = camera.get_offset()
|
||||||
surface.blit(self.img,(self.posx-offsetx,self.posy-offsety))
|
surface.blit(self.back,(self.posx-offsetx,self.posy-offsety))
|
||||||
|
surface.blit(self.wall,(self.posx-offsetx,self.posy-offsety))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -232,7 +233,7 @@ class Perso():
|
||||||
self.projectiles.append(new_proj)
|
self.projectiles.append(new_proj)
|
||||||
self.last_fire = time()
|
self.last_fire = time()
|
||||||
|
|
||||||
class Projectile(pygame.sprite.Sprite):
|
class Projectile(pygame.sprite.Sprite):
|
||||||
|
|
||||||
def __init__(self,name,texture,position,speed,angle):
|
def __init__(self,name,texture,position,speed,angle):
|
||||||
self.name = name
|
self.name = name
|
||||||
|
|
Loading…
Reference in a new issue